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?
243 Views Asked by AmjadD At
1
There are 1 best solutions below
Related Questions in TOMCAT
- Best way to pass an environment variable to several config files
- Openshift context path
- KeyStore file is not found in jar, although present in jar
- phpseclib of how to get PID and kill
- Unable to connect database of lamp instance from servlet running on tomcat instance of google cloud
- Spring and Tomcat: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
- How can I get a custom header from the client in Tomcat?
- why lost Mysql connection pool after a period?
- Eclipse Java EE + Bitnami Tomcat Stack
- Service not starting using Spring-boot during integration tests
- Image not loading in web page and says 404 error
- Maven Tomcat plugin - 404 WebServlet not found
- How to deploy a spring boot MVC application in traditional tomcat webapps folder?
- Tomcat Manager is not accessible in multi-domain configuration
- JSP return Jasper Exceptions on my friend's pc's when it works on mine
Related Questions in SESSION-REPLICATION
- com.hazelcast.nio.serialization.HazelcastSerializationException: java.io.NotSerializableException: java.util.WeakHashMap
- Where does Jetty store information about authenticated user?
- Do replicated sessions require sticky-sessions to be enabled?
- Sessions are always recreated after enabling clustering
- What are the different approaches for Java EE session replication?
- Are there issues with using Spring Security's HttpSessionSecurityContextRepository on CloudFoundry?
- Glassfish 3.1.1 cluster session replication
- Is tomcat clustering only way for session replication?
- Tomcat session replication - different machines configuration
- Memcached Session Manager failing in multi-threaded environment
- Tomcat clustering mechanism and session replication is not working on tomcat 8.5.78
- OpenAM (Forgerock) - "ds replication" Session replication problem
- tomcat 8.5 clustering issue on 2 ubuntu vms - skipping state transfer. No members active in cluster group
- Trouble with session attributes getting replicated in Tomcat 6
- Wildfly 8.2 : session attributes disapear, when using mod cluster
Related Questions in STICKY-SESSION
- Does the ws websocket server library requires sticky session when it is used behind a load balancer?
- stick content at the bottom of the page
- How to use sticky sessions in AWS?
- Do replicated sessions require sticky-sessions to be enabled?
- NodeJS Sticky Session for Users sharing same IP Address
- Login in camunda cockpit AKS Cluster
- dynamically provision a container instance and keep it sticky to the user session azure
- How to design a web project using .net core which calls a statefull api
- Usage of NPM sticky-session with Cloudflare
- Sticky Session on Redis of Magento2
- Kubernetes (on-premises) Metallb LoadBalancer and sticky sessions
- Apache as Reverse-Proxy and Load-Balancer need to use sticky session
- Chrome doesn't attach INGRESSCOOKIE in subsequent requests
- what is the difference between consistent hashing and sticky sessions?
- How to test that AWS ELB sticky sessions work as intended?
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)
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?
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.