How to horizontally scale a Wasp backend (Express + PgBoss)
Hi! I’d like to get your advice on the best way to horizontally scale the backend of a Wasp application — including both the Express server and PgBoss jobs.
For example, one option could be to use a Cloudflare load balancer with multiple instances running on a VPS provider like Hetzner, and then modify wasp.main so that only one instance initializes the PgBoss jobs (at least until there’s support for running them in an isolated instance).
What do you think about this approach? Do you see any potential issues with it? And are there any recommended approaches or official guidelines from the Wasp team regarding this?
Thanks!
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
W
Wasp
Rails-like framework for React, Node.js and Prisma. Build your app in a day and deploy it with a single CLI command.