You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/application-gateway/for-containers/session-affinity.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,17 +12,17 @@ ms.author: greglin
12
12
13
13
# Application Gateway for Containers session affinity overview
14
14
15
-
Session affinity, also known as *session persistence* or *sticky sessions*, is a technique used in load balancing to ensure a client's requests are always sent to the same server for the duration of a session. This is important for applications that store user data in session variables or in a local cache on a particular server.
15
+
Session affinity, also known as *session persistence* or *sticky sessions*, is a technique used in load balancing to ensure a client's requests are always sent to the same server. This is important for applications that store user data in session variables or in a local cache on a particular server (commonly referred to as a stateful applications).
16
16
17
17
With session affinity, Application Gateway for Containers presents a cookie in the **Set-Cookie** header of the first response. If the client presents the cookie in future requests, Application Gateway for Containers recognizes the cookie and forwards traffic to the same backend target. See the following example scenario:
18
18
19
19

20
20
21
21
The following steps are depicted in the previous diagram:
22
22
1. A client initiates a request to an Application Gateway for Containers' (AGC) frontend
23
-
2. AGC will select one of the many available pods to load balance the request to. In this example, we will assume Pod C is selected out of the four available pods.
23
+
2. AGC selects one of the many available pods to load balance the request to. In this example, we assume Pod C is selected out of the four available pods.
24
24
3. Pod C returns a response to AGC.
25
-
4. In addition to the backend response from Pod C, AGC will add a Set-Cookie header containing a uniquely generated hash used for routing.
25
+
4. In addition to the backend response from Pod C, AGC adds a Set-Cookie header containing a uniquely generated hash used for routing.
26
26
5. The client sends another request to AGC along with the session affinity cookie set in the previous step.
27
27
6. AGC detects the cookie and selects Pod C to serve the request.
0 commit comments