When using replicated sessions, is there any requirement to also use sticky sessions? Is there any advantage to using them together, or any disadvantage to using replicated-non-sticky sessions?
Do replicated sessions require sticky-sessions to be enabled?
244 views Asked by AmjadD At
1
There are 1 answers
Related Questions in TOMCAT
- Unable to compile the class for JSP in tomcat 8.5.95
- detect catalina.out log path from a running tomcat on non-Windows
- Tomcat 9.0.80 with Open JDK (JRE only) v16.0.2 crashing/unresponsive several times a day with load: Thread Count hits Max and All Threads are Busy
- JAX-RS webapp deployed to Tomcat returns HTTP 404 error while it works fine in Eclipse
- Illegal access: this web application instance has been stopped already. Could not load [org.apache.logging.log4j.message.SimpleMessage]
- File Upload Handling: Inconsistent HTTP Response Codes for Different File Sizes with Exception in Tomcat
- Don't get any public folder when deployment in svelte kit app
- Accessing solr web interface behind reverse proxy returns "Content Encoding Error"
- java.lang.UnsatisfiedLinkError: org.apache.tomcat.jni.SSL.renegotiatePending(J)I
- Cannot decrypt the password in application.yml properly if war file in the tomcat/webapps
- how to deploy mock json data api's(json-server) and angular 17 application in apache tomcat server 9 version
- version compatibility issue between spring boot, struts2-core and tomcat-embed-jasper in web application
- Is there any possibility to use JTA with Spring Framework 6 and Tomcat or Payara?
- Eclipse issue with publishing to Tomcat server
- null in Camunda variables
Related Questions in SESSION-REPLICATION
- I need to setup session replication on liferay servers
- Memcached Session Manager failing in multi-threaded environment
- Wildfly 26.1 Cluster 'Initial state transfer timed out for cache'
- tomcat cluster: member changes of an existing attribute object not replicated
- java serialization: how to show object references
- Hazelcast tomcat9 on Kubernetes: java.lang.IllegalStateException: Unknown protocol
- hazelcast for tomcat session replication: sticky
- Kubernetes tomcat cluster: no-active members and how to turn on debug logging?
- How to setup Tomcat Session Replication with Spring Boot embedded tomcat
- How do I implement Serializable? For storing my data in Session
- OpenAM (Forgerock) - "ds replication" Session replication problem
- Tomcat clustering mechanism and session replication is not working on tomcat 8.5.78
- Cannot invoke "com.vaadin.flow.server.VaadinService.getContext()", the return value of "com.vaadin.flow.server.VaadinSession.getService()" is null
- Cannot find a working configuration for Http Session replication in Grails 4
- Authentication and session replication in tomcat cluster setup
Related Questions in STICKY-SESSION
- How make sticky sessions path based for ALB, when using it in front of EKS
- Is a single TCP connection going through a load balancer implicitly "sticky"?
- AWS ALB sticky sessions for all accounts in the same workspace
- How to design Websocket load balancing with custom stickiness
- Traefik sticky sessions and WebSockets
- Usage of NPM sticky-session with Cloudflare
- How to design a web project using .net core which calls a statefull api
- dynamically provision a container instance and keep it sticky to the user session azure
- Login in camunda cockpit AKS Cluster
- Nestjs: Unable to implement WebSocketGateway with multiple pods
- Enabling Sticky sessions with Kubernetes Load Balancer
- Creating a new different container for every client connecting to a server - Devops engineering
- How to do correct way to use multer in nodejs cluster server
- Sticky session enabling in nest js
- Is JWT an alternate for sticky session when we implement oAuth
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
You are not required to use sticky-sessions when using session-replication, but you may want to use them anyway.
Since replication takes time to accomplish, there is a chance that a request can arrive at a cluster node while replication is occurring from a previous request. If the second request arrives at the same node where the initial request was handled, then the fact that the replication is still in-progress to other nodes is irrelevant.
On the other hand, if request 1 goes to node A and request 2 goes to node B, the replication after request 1 from A -> B could be incomplete when request 2 arrives at node B and the session state could be incomplete.
The only scenario I can think of where I'd want clustering (session replication) without sticky-sessions would be one where the session is established during login and nothing else of any value is stored in the session, and the session is not modified after login. In that case, a high-throughput cluster would benefit from allowing any node to service the request.
It is not a strict requirement that sticky-sessions be used in a clustered-environment. It's just that most applications (which use the session after login) will probably want sticky-sessions enabled with clustering.