QuestionQ46

VerifiedResilient Cloud Solutions

A company is testing a web application that runs on Amazon EC2 instances behind an Application Load Balancer. The instances run in an Auto Scaling group spanning multiple Availability Zones. The company uses a blue/green deployment process with immutable instances to deploy new software.

During testing, users are automatically logged out of the application at random times. Testers also report that all users are logged out when a new application version is deployed. The development team needs a solution that ensures users stay logged in through scaling events and application deployments.

What is the MOST operationally efficient way to ensure users remain logged in?

Explanation

Application session state must be stored outside the ephemeral EC2 instances so that every instance, including instances introduced during Auto Scaling or immutable blue/green deployments, can retrieve the same session. An Amazon ElastiCache cluster provides a shared, low-latency session store. Application Load Balancer stickiness only maintains affinity to a specific target and cannot preserve a session after that target is replaced.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!