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

Shard Management #58

Open
paperclover opened this issue Jul 16, 2022 · 0 comments
Open

Shard Management #58

paperclover opened this issue Jul 16, 2022 · 0 comments
Labels
enhancement New feature or request help wanted i need other people's opinion, skill, and/or knowledge. pkg:gateway our gateway client and anything related
Milestone

Comments

@paperclover
Copy link
Member

paperclover commented Jul 16, 2022

currently, there is no system in place for shards: calculating them, and also spawning them. we should do this through the /gateway/bot route, but it should also have some API to allow user defined behavior with this when you intend to run on multiple threads/instances/computers. (edit, Gateway supports a shard property but this is only for one instance and you must manually spawn multiple instances of it)

idk the proper API for this or the exact implementation of a shard manager, and would like some feedback frol others. one idea I have is a simple property/env with a machine id+total count can be given, then each instance of the shard manager would equally login with the specified shards (aka the same system actual shards use but abstracted). I'll have to look into existing systems for how it works.

@paperclover paperclover added help wanted i need other people's opinion, skill, and/or knowledge. pkg:gateway our gateway client and anything related enhancement New feature or request labels Jul 16, 2022
@paperclover paperclover added this to the post 2.0 milestone Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted i need other people's opinion, skill, and/or knowledge. pkg:gateway our gateway client and anything related
Projects
None yet
Development

No branches or pull requests

1 participant