Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

What's the best way to build a bot balancing between 429 limits and fast responses? #551

FordSmh started this conversation in Ideas
Discussion options

Single queue is throttling answers to a user, while dealing with other users' messages

You must be logged in to vote

Replies: 1 comment 2 replies

Comment options

Hi, I think we could work on it on one of the next releases

You must be logged in to vote
2 replies
Comment options

I was not explicit enough, what I wanted is to get some recommendations and/or Best Practices doc section for building Telegram bots

Comment options

Just use multiple queues.

My case:

  1. Telegram sends a request;
  2. The request is written to the database;
  3. The record triggers an event that starts Job;
  4. Job initializes WebhookHandler;
  5. WebhookHandler is executed in multiple threads.

Laravel Horizon + autobalancing

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /