Database hosting
Reviewedbyfl
🗄️
Database as a Service providers.
fortrabbit provides an optional MySQL component. Some applications require specialized database solutions. That's where an external database provider can come in handy.
Keep your app on fortrabbit, disable the database component, and use an external database provider.
Use cases
- Readonly users
- Different database type
- Very large size
- Access from different sources
- Deeper performance insights
Connecting to external databases
Since fortrabbit allows outgoing connections, you can connect your app to any external database service accessible over the internet by provisioning your database with an external provider, obtaining connection credentials, and storing them as environment variables.
- Provision: Set up your database with the external provider.
- Credentials: Get the hostname, username, password, and database name.
- Env Vars: Store credentials in environment variables.
The standard MySQL port 3306 for making outgoing connections is open by default. If your external database uses a different port, open it up by using the outgoing firewall setting.
Latency considerations
When using an external database, the physical distance between your application hosted on fortrabbit AWS eu-west-1 and your database matters significantly, so you should always provision your external database in the same AWS region (eu-west-1 / Ireland) to minimize latency and improve application performance.