0
0
HLDsystem_design~5 mins

Sticky sessions in HLD - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What are sticky sessions in load balancing?
Sticky sessions ensure that a user's requests are always sent to the same server during a session, maintaining session state on that server.
Click to reveal answer
beginner
Why are sticky sessions used in web applications?
They are used to keep user session data consistent by routing all requests from the same user to the same server, avoiding session data loss.
Click to reveal answer
intermediate
Name two common methods to implement sticky sessions.
1. Using cookies to track the server assigned to a user.<br>2. Using IP address affinity to route requests.
Click to reveal answer
intermediate
What is a major drawback of sticky sessions?
They can cause uneven load distribution because some servers may get more users than others, leading to potential performance issues.
Click to reveal answer
advanced
How can sticky sessions affect scalability?
Sticky sessions can limit scalability since users are tied to specific servers, making it harder to distribute load evenly and add or remove servers seamlessly.
Click to reveal answer
What does a sticky session ensure in a load balanced system?
AUser requests are encrypted end-to-end
BUser requests are distributed randomly
CUser requests are sent to the least busy server
DUser requests go to the same server during a session
Which method is commonly used to implement sticky sessions?
AUsing cookies to track server assignment
BEncrypting user data
CRandom server selection
DCaching static content
What is a potential problem caused by sticky sessions?
AIncreased network latency
BUneven load distribution across servers
CLoss of user data
DData encryption failure
Sticky sessions can limit scalability because:
AThey require more bandwidth
BThey encrypt data too much
CUsers are tied to specific servers
DThey use random server selection
Which of these is NOT a way to implement sticky sessions?
ARandom load balancing
BUsing cookies
CIP address affinity
DSession tokens
Explain what sticky sessions are and why they are used in load balanced systems.
Think about how a website remembers you during your visit.
You got /3 concepts.
    Describe the advantages and disadvantages of using sticky sessions.
    Consider both user experience and system performance.
    You got /2 concepts.