Skip to content

Commit 52ab40d

Browse files
Acrolinx
1 parent c967c9d commit 52ab40d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/application-gateway/for-containers/session-affinity.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ ms.author: greglin
1212

1313
# Application Gateway for Containers session affinity overview
1414

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).
1616

1717
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:
1818

1919
![A diagram depicting Application Gateway for Containers session affinity.](./media/session-affinity/session-affinity.png)
2020

2121
The following steps are depicted in the previous diagram:
2222
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.
2424
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.
2626
5. The client sends another request to AGC along with the session affinity cookie set in the previous step.
2727
6. AGC detects the cookie and selects Pod C to serve the request.
2828
7. Pod C responds to AGC.

0 commit comments

Comments
 (0)