Skip to content
Discussion options

You must be logged in to vote

Session affinity is covered here: https://microsoft.github.io/reverse-proxy/articles/session-affinity.html

The default session affinity cookie generator uses a stable algorithm (the destination name) so it should work across instances so long as you have shared data protection keys to read the cookies.
https://docs.microsoft.com/en-us/aspnet/core/security/data-protection/configuration/overview?view=aspnetcore-6.0#persistkeystofilesystem

How is traffic routed across redundant YARP instances? Using an L4 proxy? Those often have an affinity option as well.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by karelz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants