This page covers a production-ready deployment that requires multiple servers. If you want to deploy Hyvor Relay on for hobby or small to medium-sized projects (less than 100,000 emails/day), refer to the Easy Deploy page.
Hyvor Relay uses PostgreSQL as the database and also as the message queue. Set up a PostgreSQL server in a production-ready manner. Hyvor Relay has been tested with PostgreSQL 16. If your cloud provider offers a managed PostgreSQL service, feel free to use it. It will make backups, failover, and scaling easier. Otherwise, self-host PostgreSQL with high availability in mind.
Since setting up a PostgreSQL server depends a bit on how your infrastructure is set up, we will not go into details here. Whichever option you choose, make sure that:
hyvor_relay.The number of app servers you need depends on your expected email volume. Here are some rough guidelines, which are mostly on the safer side:
See the Scaling & HA page for more insights to make a better estimate.