# Databases

Zaroz offers two kinds of database. Both require TLS on every connection, and both can be reached from your apps and from the API.

| | Included database | Managed PostgreSQL |
|---|---|---|
| What it is | A database on a shared server, bundled with a subscription | A database server of your own, run and patched by Zaroz |
| Good for | A game server's plugins, a small website, trying things out | Production apps, anything that must not lose data or share a server |
| Size | A fixed quota per database | The plan and storage you choose; storage grows when you need it |
| Backups | With the service's backups | Automatic daily backups, restore to any moment of the retention period, undo a restore |
| High availability | No | Optional: a second copy takes over if the server fails |
| Users, network, settings | One user | Several users with presets, public access and allowed sources, parameters, extensions, a connection pooler |
| Metrics, logs, alerts | Storage use | CPU, memory, storage, connections, queries; server logs with filters; alerts that tell you before the disk fills |
| Guide | [PostgreSQL databases](/guides/databases/postgresql) | [Managed PostgreSQL](/guides/databases/managed-postgresql) |

A deployment of Zaroz Cloud can offer fewer engines than another. Ask the API which managed engines it sells, and in which regions and versions:

```bash
curl -sS "$ZAROZ_API/managed-databases/availability" -H "$AUTH"
```

An engine that is not offered is absent from the console, and its routes answer `404 capability-not-available`.

## Next steps

- **Connect.** Every client, ready to paste: [Connect to PostgreSQL](/databases/postgres/connect). Why Zaroz requires TLS and what it sets up in your apps for you: [Connect an app to a managed database](/guides/databases/connect-tls).
- **Automate.** Create, back up, export and rotate from scripts and CI: [Databases from the API and CI](/guides/databases/api-and-ci).
- **When something is wrong.** Every state the console shows and the common connection errors: [Troubleshooting managed databases](/guides/databases/troubleshooting).
