Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve nginx/anonymous endpoint performance #303

Open
1 of 2 tasks
elpablos opened this issue Oct 12, 2023 · 1 comment
Open
1 of 2 tasks

Improve nginx/anonymous endpoint performance #303

elpablos opened this issue Oct 12, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@elpablos
Copy link
Contributor

elpablos commented Oct 12, 2023

Why?
If the endpoint /cookie/nginx/anonymous is under heavy load, MongoDB is suffering because of a big bunch of write operations into audit collection. Especially for one event: ANONYMOUS_SESSION_CREATED. We found out that this information is not so important to us and it is not necessary to put it into the audit.

Another place that generates big traffic is the synchronous cookie webhook. We found out that the important information is only when the anonymous user fulfills the login process and becomes a fully logged user. So it makes sense to avoid calls when an anonymous session is just built.

DoD

EDIT:

@elpablos elpablos added the enhancement New feature or request label Oct 12, 2023
@elpablos
Copy link
Contributor Author

#304 - It's just a draft but it really helps 😅
Do with the PR whatever you want. I thought about config variables 🤔

@elpablos elpablos changed the title Improve nginx - anonymous endpoint performance Improve nginx/anonymous endpoint performance Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant