-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Sessions Storage for CookieStickySessions #1408
Copy link
Copy link
Open
Labels
Load BalancerOcelot feature: Load BalancerOcelot feature: Load BalancerSummer'26Summer 2026 releaseSummer 2026 releaseacceptedBug or feature would be accepted as a PR or is being worked onBug or feature would be accepted as a PR or is being worked onproposalProposal for a new functionality in OcelotProposal for a new functionality in Ocelot
Milestone
Metadata
Metadata
Labels
Load BalancerOcelot feature: Load BalancerOcelot feature: Load BalancerSummer'26Summer 2026 releaseSummer 2026 releaseacceptedBug or feature would be accepted as a PR or is being worked onBug or feature would be accepted as a PR or is being worked onproposalProposal for a new functionality in OcelotProposal for a new functionality in Ocelot
Type
Fields
Give feedbackNo fields configured for issues without a type.
Problem to solve
The current implementation of
CookieStickySessionscontainsConcurrentDictionary<string, StickySession> _storedwhere all the sessions are stored.We faced a situation when we need to have a few Ocelot instances on-premise of the customer
and we have some services that enforces us to use
CookieStickySessionsfor our Load Balancer (https://ocelot.readthedocs.io/en/latest/features/loadbalancer.html#cookiestickysessions).Having several instances of Ocelot push us to add the ability to use
CookieStickySessionsfor load balancing across these several Ocelot instances.To do so we need to have an ability to inject our own session storage implementation for
CookieStickySessionsNew Feature
Sessions storage implementations for
CookieStickySessionsload balancer.Add the ability to use
CookieStickySessionsfor Load Balancer across these several Ocelot instancesSteps to Reproduce the Problem
CookieStickySessionsCookieStickySessionsCreatorto inject intoCookieStickySessionsown storage mechanism