8000 Update proxy guide with information about session stickness by pedroigor · Pull Request #16893 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Update proxy guide with information about session stickness - #16893

Merged
pedroigor merged 1 commit into
keycloak:mainfrom
pedroigor:issue-16892
Feb 7, 2023
Merged

pedroigor merged 1 commit into
keycloak:mainfrom
pedroigor:issue-16892

Conversation

@pedroigor
Copy link
Copy Markdown
Contributor

Closes #16892

@vmuzikar vmuzikar left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks.

CC @keycloak/cloud-native @keycloak/store

@slominskir slominskir left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So if cluster only has two nodes then both nodes should be holding identical state. This sounds like sticky sessions is more important if you have more than 2 nodes. I assume there is still some time to sync between nodes so session affinity could potentially avoid sync latency

@pedroigor
pedroigor merged commit 7582492 into keycloak:main Feb 7, 2023
@pedroigor
pedroigor deleted the issue-16892 branch February 7, 2023 19:42
@pedroigor
Copy link
Copy Markdown
Contributor Author

@slominskir Yeah, but data availability and their distribution are related to the number of owners you set to our caches (by default, 2 owners) not the number of nodes.

It should also be useful if you have only 2 nodes. As you said, you avoid latency if subsequent requests go through the same node during the session lifecycle.

Note that this is mainly important for browser-based flows such as authorization code grant type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update proxy guide with information about session stickness

3 participants

0