Our Journey with GalaxyBot Open Source Projects
About a year ago, we released our Image Classification Tool as open source. It allows you to moderate content uploaded to our dashboard – an essential building block for safe and clean operations. You can find the tool here: https://github.com/GalaxyBotTeam/Image-Classifier
Today, we're taking the next step and sharing an essential component of GalaxyBot – the heart of our system. After five years of challenges, we're now giving you our cluster management tool galactic.ts.
Why Now?
The system we're making available to you now is something we wish we had 4 years ago. It would have saved us a lot of headaches and saved you considerable downtime. Galactic.ts is the result of our years of experience in reliably scaling and maintaining a large Discord bot.
What is galactic.ts?
Galactic is our in-house system that allows us to provide GalaxyBot stably and efficiently despite running on over 80,000 servers.
- It reduces RAM usage by grouping multiple shards into clusters. This means fewer Node.js processes need to run.
- It enables horizontal scaling: Bots can run distributed across multiple servers or Docker containers and remain synchronized.
- The galactic Bridge synchronizes states and communication between instances, enabling coordinated control across multiple machines.
- It supports dynamic scaling, automatic reconnection, and failover protection for individual shards and clusters.
- Fully compatible with discord.js, without changing your existing bot architecture.
Why Horizontal Scaling?
For a project of our scale, running the bot on just one server isn't enough. We need to run GalaxyBot in parallel across multiple servers to ensure stability and availability. Galactic.ts orchestrates this distributed infrastructure.
Why galactic.ts?
We tested various existing solutions, but none met our requirements for performance, stability, and flexibility. Galactic was built from the ground up for large, distributed Discord bot clusters – a system we want to recommend to every bot development community.
Now Open Source: galactic.ts
You can now find and use galactic.ts on GitHub: https://github.com/GalaxyBotTeam/galactic.ts
Try it out, integrate it into your projects, and save yourself a lot of development time and frustration when scaling your bot.
If you have any questions or feedback, feel free to reach out to us!