The hosted service
What the hosted service runs for you, what it stays out of, and how organizations, databases, credentials and regions fit together.
The hosted service runs Mimic DB databases for you. It runs the same open-source engine, mimicd, that you can host yourself, unmodified, and adds what a managed service needs around it: accounts and teams, provisioning, credentials, backups, usage metering, a dashboard and a management API.
If you are new to Mimic DB itself, start with the introduction. These pages cover only the hosted service.
What it is made of
There are two separate parts, and it matters which one a request goes to.
- The cluster holds your database. A cluster is a group of
mimicdservers in one region. Your application sends every read, write and realtime session straight to its database's cluster. - The control plane is the dashboard and the management API. It creates databases, issues and revokes credentials, takes backups and reports usage. It tells clusters what to do, and it is never between your application and its data.
Because your application talks to the cluster directly, the dashboard and the management API are not on its data path. If the control plane is unavailable you cannot create a database or a key until it is back, but applications that are already connected keep working.
How it is organized
organization
├── members people, each with one role
├── API keys credentials for the management API
└── databases
├── database keys credentials for your backend
├── token keys public keys for tokens your backend signs
└── backups- An organization is the unit everything belongs to: its members, its databases, its plan and its audit log. Every account gets one when it signs up, and can create or join more. See organizations.
- A database belongs to one organization and lives in one region, chosen when it is created. It holds collections of documents. See databases.
- A region is where a database's cluster runs, and so where its data is stored. See regions.
- Credentials come in three kinds, each for a different caller. See credentials.
| Credential | Who uses it | What it reaches |
|---|---|---|
Database key (mk_…) | Your backend | One database, in its cluster |
| Document token | Your application's users | One document, for a short time |
API key (mc_sk_…) | CI, scripts, infrastructure as code | The management API |
What it is not
- It is not a different engine. Anything your application does against a hosted database it can do against
mimicdyou run yourself. - It is not a proxy. The dashboard shows a database's collections and usage by asking the cluster; it does not read, relay or store documents.
- An API key for the management API cannot read or write documents, and a database key cannot call the management API.