#How to handle running multiple instances for redundancy and zero-downtime?

3 messages · Page 1 of 1 (latest)

waxen rampart
#

I want to have my bot running on multiple hosts to reduce downtime during restarts and while deploying updates. The issue of course is handling the duplicate events. I've looked into cross-host clustering with https://github.com/meister03/discord-cross-hosting#1-how-does-it-work but I don't think this is exactly what I want since the "clustering" in this example is just a form of sharding. Before I get too far into the weeds, has anyone done a setup like this before?

GitHub

The ultimate package, which allows broadcastEvaling over Machines and effecient Shard Managing - GitHub - meister03/discord-cross-hosting: The ultimate package, which allows broadcastEvaling over M...

blissful charm
#

Hosting on multiple hosts for a single bot isn't really ideal, although if you want you could do cross machine sharding which would make guilds be divided on different machines

ruby dome
#

discord.js and sharding cant do the redundancy/zero downtime you're looking for