Advice on microservice architecture
Hi!
I am planning a discord.js bot for a private community with a small userbase. I have been looking at microservice for its scalability as I don't know how many features it will have.
Thinking about heading straight to monolithic scares me a bit due to not knowing the final size.
The bot as of now will have slash commands, a web dashboard and your typical features like reaction roles, polls etc.
I am aware of discordjs/(rest, ws, core) packages.
What would be the best ways to utilize them without introducing not needed strain on compute power and discord api?
If anyone has built one before and can share some of their learnings/mistakes/architecture designs, I would appreciate it!
1 Reply
- 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!