Skip to content
This repository has been archived by the owner on Jun 18, 2022. It is now read-only.

handle million of users #25

Closed
MarshalOfficial opened this issue Jan 12, 2022 · 1 comment
Closed

handle million of users #25

MarshalOfficial opened this issue Jan 12, 2022 · 1 comment
Labels
question Further information is requested

Comments

@MarshalOfficial
Copy link

Hi there,

how to handle the load of million of users' messages and process them all without speed lag?

botClient.StartReceiving(
HandleUpdateAsync,
HandleErrorAsync,
receiverOptions,
cancellationToken: cts.Token);

I've used new thread initialization in HandleUpdateAsync and all of my backend services are async, but I have critical speed problems in busy times.

@karb0f0s karb0f0s transferred this issue from TelegramBots/Telegram.Bot Jan 12, 2022
@karb0f0s karb0f0s added the question Further information is requested label Jan 12, 2022
@MarshalOfficial
Copy link
Author

Speed issue solved via threading that I said above.

My main problem is my country that banned Telegram and connecting via proxy is not a good idea for bot in production mode.
so I published the bot on a foreign VPS server.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants