QuestionQ91

VerifiedResilient Cloud Solutions

A company is testing a web application that runs on Amazon EC2 instances behind an Application Load Balancer. The instances operate 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 whenever a new version of the application is deployed. The development team needs a solution that ensures users stay logged in through scaling events and application deployments.

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

Explanation

Session state must be externalized from the individual EC2 instances so that any replacement or newly deployed instance can retrieve it. Amazon ElastiCache provides a shared, low-latency store for session information, allowing the application tier to remain stateless across Auto Scaling events and blue/green immutable deployments. AWS Well-Architected guidance specifically identifies Amazon ElastiCache as a destination for offloaded session state and notes that this design permits servers to be replaced without availability impact.

Learn more

Community Discussion

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