Sharding in Multi-Servers

Hello, So I have a Music Bot and as it's groing exponentially I am in need to use it in a multi-servers way. So I set up an API that will be on my main server and I set up client code that will be on differents serveurs. Between the two there's a websocket connection that will say to the client which shard Ids he will be able to use, then he answer the ones he launched without problem. If a connection is cut or if a shard is down the API will know that and will update the shardList letting others servers the ability to use the ids available. HOWEVER, here's my problem, when a shard is abandoned by its client the servers on the shard willn't be able to use the bot before another client takes the opportunity to launch over these shards. I am here to discuss about a solution that could help me. Thanks !
6 Replies
d.js toolkit
d.js toolkit7mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
✨𝓜𝓪𝓲𝓽𝓻𝓮𝓖𝓔𝓔𝓚ツ✨
If you have any idea share it, that could help me or others to find a solution
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
✨𝓜𝓪𝓲𝓽𝓻𝓮𝓖𝓔𝓔𝓚ツ✨
Don't worry that's not the goal here The fact that I want that is not only because that's a music bot but as I want to build the system for a multi server approach Well I don't as I said in another ticket the bot only plays music from the files provided by users
✨𝓜𝓪𝓲𝓽𝓻𝓮𝓖𝓔𝓔𝓚ツ✨
You think ? Because the link is provided by an user, that a file I provided him Like a user would do Do you think that the bot would need to aknowledge what's on the users files ? Mmh, technically that's difficult to know if a song file is like a copyright one for the name that's right, it looks like it's never gonna give you up from Rick Astley but that could be NCS songs Interesting, I ll keep that in note, thanks for your thoughts Yeah that's not impossible Just a bit different But tough, that's not the goal of my question
Want results from more Discord servers?
Add your server