Sticky Sessions / Session Affinity #905
abdallahsamabd
started this conversation in
Ideas
Replies: 1 comment
|
maintainer +1 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Problem
Today Praxis supports session affinity only through stateless consistent hashing — a request header value (or URI path) is hashed to select an endpoint. This works for clients that can send a stable identifier header, but it has significant limitations:
JSESSIONIDfrom a Tomcat backend) to build a mapping.HttpOnly,Secure,SameSite,Path,Domain, orMax-Agefor session cookies.These gaps prevent Praxis from supporting stateful applications (shopping carts, server-side sessions, multi-turn AI inference, chunked uploads) that require true session persistence.
Issue: #108
Epic: #163 (Resilience and Traffic Management)
Proposal PR: #904
Proposal(how ): #922
Proposal
Add cookie-based and header-based session persistence to pin clients to specific upstream endpoints across requests. The feature includes:
domain,path,expires/max-age,httponly,secure,samesite.X-Session-Id) to select and pin to an endpoint, with a server-side mapping (beyond today's stateless hashing).Set-Cookie: JSESSIONID=abc123) and automatically build the session-to-endpoint mapping.Example configuration
All reactions