#aws #asg #sticky #session #stickiness

Sticky session is the feature that allows the client to connect, and redirect to one EC2 instance over time.

Specifications:

  • This is feature of ALB, CLB
  • The cookie is created by server and re-sent from client, and that’s how the session work.
  • Use case: Prevent losing customer session data.
  • This feature can be impact to the balance feature of ELB.

Type of cookies

  • Application based cookies
    • Custom cookie: cookie is generated by target group and can be customized the name
    • Application cookie: Generated by LB
  • Duration based cookies: Cookie is generated by LB