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

api/v2/lumens/ isn't built to be horizontally scalable #179

Closed
piyalbasu opened this issue Oct 22, 2021 · 0 comments · Fixed by #205
Closed

api/v2/lumens/ isn't built to be horizontally scalable #179

piyalbasu opened this issue Oct 22, 2021 · 0 comments · Fixed by #205
Labels

Comments

@piyalbasu
Copy link

Currently, the endpoint api/v2/lumens/ relies on cached data that is stored in memory. This creates an issue when we have multiple instance in kubernetes running the app. Depending on which image you hit, you'll get a slightly different payload as they (likely) all started running at different times and are running on different schedules.

Thoughts on a solution:

  • Do we want to save cached data in a single database and use that as our source of truth? (The current postgresdb in the repo has the above problem of multiple instances)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant