#Is this a good design for a scalable bot?

13 messages · Page 1 of 1 (latest)

spark star
#

I operate a quickly growing discord bot that has recently started sharding quickly. I am looking to compeletely redesign the architecture around the bot as it is currently not optimally designed for sharding and just wanted to see if anyone sees an issue with this design

#

and yes you can insert the shoutout for #1085231189541011576 in your response

worn lichen
#

What does this mean?

recently started sharding quickly

spark star
worn lichen
#

Also, from your "design" it is hard to say if that is good or bad. One thing that sort of sticks out is why the bot is connected to Redis directly.

spark star
#

Ah okay, discord bots call them shards. Basically you run several instances of your bot and each instace of your bot handles a couple thousand servers

spark star
worn lichen
#

So, you are in control of the "Bots"? If yes, then it makes sense to me. 🙂

What is the role of RabbitMQ between the cron/queue worker? Why not use Redis for the queueing of work?

spark star
worn lichen
#

Ok. You noted Cron on the worker. Rabbit won't do Cron Jobs out of the box. BullMQ does and it is built for job-queues, which Rabbit isn't. Just sayin. 😊 I'd go with BullMQ, with the little knowledge I have of your needs.

tardy wing