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

Server uses pubsub queue for high load resilience #13

Open
nang-dev opened this issue Jun 20, 2024 · 1 comment
Open

Server uses pubsub queue for high load resilience #13

nang-dev opened this issue Jun 20, 2024 · 1 comment

Comments

@nang-dev
Copy link

nang-dev commented Jun 20, 2024

We will put requests into a pubsub queue (Kafka or RabbitMQ), and consumer workers will handle the requests off the queue. This is for resilience to high loads. I

@nang-dev nang-dev assigned nang-dev and Alexx1105 and unassigned nang-dev Jun 20, 2024
@nang-dev
Copy link
Author

basically right now

we receive the request in flask, and just processs it . this is fine, but if we have high load spike, llike 5000 reqs in 1 sec, it'll probably fail some of them

so we should RabbitMQ. I've only used Kafka, but the idea is that

request comes in (see flask endpoint) -> put on a queue -> workers consume from the queue to process the request

this will allow us to handle 5000 reqs that come in in 1 second

@nang-dev nang-dev changed the title Server uses pubsub queue for resilience Server uses pubsub queue for high load resilience Jul 2, 2024
@Fryingpannn Fryingpannn transferred this issue from another repository Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

2 participants