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

Have client calculate dependencies and pass to API #2756

Merged
merged 3 commits into from
Aug 1, 2024

Conversation

IanPhilips
Copy link
Collaborator

This has the client calculate its deps, letting us avoid the case where the API bricks bc it can't get a pg connection from the pool bc of too many concurrent website users. This doesn't handle the case where the API server is being hammered from bots/API users and runs out of connections trying to simulate the deps. We could use the cache from the bet-cache branch if we think this case is worth handling now with the extra complexity.

Screenshot 2024-07-31 at 3 37 33 PM

Copy link

vercel bot commented Jul 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dev ❌ Failed (Inspect) Jul 31, 2024 10:53pm
prod ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 31, 2024 10:53pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) Jul 31, 2024 10:53pm

Copy link
Collaborator

@jahooma jahooma left a comment

Choose a reason for hiding this comment

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

LGTM! This is a nice idea

@IanPhilips IanPhilips merged commit 9f5a7e8 into main Aug 1, 2024
5 of 6 checks passed
@IanPhilips IanPhilips deleted the client-calculate-bet-deps branch August 1, 2024 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants