Database hosting
Published
Updated
🗄️
Database as a Service providers.
A fortrabbit app can use an external database instead of the MySQL component, for Postgres, very large data or access from other places. Store the credentials as ENV vars and pick a database region close to the app.
The app stays on fortrabbit, the database runs elsewhere, and the MySQL component stays off.
Use cases
- Another database type, such as Postgres
- Very large databases
- Access from other places, with read-only users
- More detailed database statistics
Connecting to external databases
- Create the database with the provider.
- Copy the host, user, password and database name.
- Store them as ENV vars of the environment.
The MySQL port 3306 and the Postgres port 5432 are open in the outgoing firewall. Open other ports there.
Latency considerations
Every query travels to the database and back. Create the database in the AWS region of the app: eu-west-1 (Ireland) for EU apps, us-east-1 (Virginia) for US apps. The app shows its region.