Cookies ahead

Our support chat tool "Intercom" would like to collect some more data on you. See the related link for more details.

Docs

Database hosting

🗄️

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.

  1. Provision: Set up your database with the external provider.
  2. Credentials: Get the hostname, username, password, and database name.
  3. 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.

Written by a human. Review, grammar checks and typo fixes by AI.

AI use & editorial processEdit on GitHub ↗