How can the user bind the session of the requestor with a particular instance?

Prev Question
Next Question

A user has hosted a website on AWS and uses ELB to load balance the multiple instances. The user application does
not have any cookie management. How can the user bind the session of the requestor with a particular instance?

A.
Bind the IP address with a sticky cookie

B.
Create a cookie at the application level to set at ELB

C.
Use session synchronization with ELB

D.
Let ELB generate a cookie for a specified duration

Explanation:
The key to manage the sticky session is determining how long the load balancer should route the user’s request to the
same application instance. If the application has its own session cookie, then the user can set the Elastic Load Balancing
to create the session cookie to follow the duration specified by the application’s session cookie. If the user’s application
does not have its own session cookie, then he can set the Elastic Load Balancing to create a session cookie by specifying
his own stickiness duration.
http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/US_StickySessions.html

Prev Question
Next Question

Leave a Reply

Your email address will not be published. Required fields are marked *