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

Enhancement/rate limit api switcher #476

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

mrms123
Copy link

@mrms123 mrms123 commented Jun 5, 2021

This PR implements an alternate query mechanism as discussed in #449

When rate limits per session kicks in - then the code is essentially given an upper bound on number of refreshes by CoWIN. To improve the odds, we implement checks in between / more frequent than what the ratelimit allows us, using the Public API.

This way - the performance is no worse off than the max capability in the usual protected API method. But just in case the public API lists that slot - we're going to lap it up.

I tested a couple of cases, esp when slots were being released. When slots are being released - this is a hit or miss - it may show availability immediately on the public API, or it may not show up at all (directly being listed as fully booked).

@Nakul93 @6mxo89sqh

@6mxo89sqh
Copy link
Collaborator

i m yet to test but i see one thing missing. in public apis, vaccine filter is not working, we will need to filter by code.

@bombardier-gif
Copy link
Owner

@shailesh @BumpyKnuckls @Nakul93 FYI

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.

4 participants