Design: Sticky Sessions Load Balancing
Design the load balancing and session management system to support sticky sessions. Out of scope: detailed backend application logic and database design.
Functional Requirements
Non-Functional Requirements
Client | | HTTP Request with session cookie v Load Balancer (sticky session enabled) |-- Checks session cookie to route to same backend server |-- If no cookie, routes to least loaded server and sets cookie v Backend Servers (App Server 1, App Server 2, ...) | | Store session data in centralized Redis cache v Redis Session Store Health Check Service monitors backend servers and informs Load Balancer
sticky sessions in system design?Pass the test and this pattern moves unknown