QuestionQ105

VerifiedCloud Computing Fundamentals

A stateful web application keeps session data in the memory of each server. To support additional users by adding servers, which common approach enables horizontal scaling, and what trade-off does it have?

Explanation

Load-balancer sticky sessions (session affinity) keep a user’s requests directed to the same server that holds that user’s in-memory session, allowing other sessions to be served by added servers. Session affinity can create an uneven distribution of connections because some servers may retain disproportionately more client sessions. AWS documents that sticky sessions route client traffic to the same target and can lead to uneven connection and flow distribution.

Learn more

Community Discussion

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