Does Sharding take advantage of multiple CPUS?

I've read through the docs on Sharding and have performed the basic Sharding Manager implementation. I'm hoping to take advantage of it when my bot is larger, and would like to plan for that. To me, that means understanding how I would need to add resources so the bot can serve more guilds effectively. The main question I had is if it does something to take advantage of multiple CPUs. ie when it spawns a shard, is that new shard going to live on a new thread/CPU, or just add more work for the existing process the sharding manager was created on?
2 Replies
d.js toolkit
d.js toolkit8mo 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! - Marked as resolved by OP
DaveY
DaveY8mo ago
I’ll look more into internal sharding as well then.