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

[Feature request]add cluster mode #635

Open
LimLex opened this issue Sep 6, 2024 · 7 comments
Open

[Feature request]add cluster mode #635

LimLex opened this issue Sep 6, 2024 · 7 comments

Comments

@LimLex
Copy link

LimLex commented Sep 6, 2024

please,add cluster mode,sir.so we can decrease the delay caused by different datacenter problem.(user's and bot's)

@levlam
Copy link
Contributor

levlam commented Sep 6, 2024

What do you mean?

@LimLex
Copy link
Author

LimLex commented Sep 8, 2024

What do you mean?

There is currently an issue with my local server where it cannot deploy my bot in cluster mode. If you can add compatibility for cluster mode, it will solve the following two problems:

  1. The performance bottleneck caused by a single machine. If I have multiple machines and can use a cluster, I will be able to improve performance at a lower cost.
  2. When I tried to deploy my local server, I found that it can only communicate well with a few specific Telegram data centers, while communication with other data centers is slow. If you support cluster mode, it would allow bot nodes to be deployed near different data centers, improving communication speed.

@levlam
Copy link
Contributor

levlam commented Sep 8, 2024

This is not possible and even it would be possible, it can't improve communication speed with different datacenters. Data transmission speed can't be faster than the speed of light.

@LimLex
Copy link
Author

LimLex commented Sep 9, 2024

This is not possible and even it would be possible, it can't improve communication speed with different datacenters. Data transmission speed can't be faster than the speed of light.

Why is that? Could you explain it for learning purposes? Thank you very much!

@levlam
Copy link
Contributor

levlam commented Sep 9, 2024

Users from multiple locations can be in the same chat.

Also, there is no way to provide consistency guarantees if bot communicates with multiple datacenters without making the bot extremely slow increasing latency multiple times.

@LimLex
Copy link
Author

LimLex commented Sep 11, 2024

Thank you very much! Is there a method that can solve this problem?

@levlam
Copy link
Contributor

levlam commented Sep 12, 2024

There is no way to speed up bot responses for all users around the world.

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

No branches or pull requests

2 participants