metacore Start a pilot

Product · Trust

Every environment keeps its own data.

Development, staging and production are environments of your org. Each has its own records, access grants, connections and secrets. A domain is defined once and deployed into each, so a schema is promoted from one to the next.

One org, three environments

Each environment names the cells where its domains live. Here production lives in cells dedicated to the org, and the others share.

Environments

Define a domain once. Deploy it into each environment.

A schema reaches production by promotion, in the order you choose. Its digest is the same in every environment, so a promotion proves what it deploys.

PartIn each environment
Records and filesIts own. A call names one environment, and reaches no other.
SchemaDeployed into each environment on its own. A version never changes once it is live.
Releases and runsEach environment publishes and rolls back on its own.
Access grantsA person or an app sees only the environments where it holds a grant.
ConnectionsEach environment calls its own instances of your code.
SecretsOne name, a value for each environment. The nearest wins: the domain’s, then the environment’s, then the org’s.

What an environment keeps

People, apps, scopes and profiles belong to the whole org. The rest is each environment’s own.

A promotionRule
Same digestA schema has a digest of its content, the same in every environment.
ProvenA deployment can name the digest it expects and the version it replaces. It is rejected when either differs.
Your orderThe platform fixes no order of environments. You promote as you choose.
Dependencies firstA schema is promoted after the domains it depends on.
A rehearsalA deployment can rehearse: it prepares whole, makes nothing live, and tells what would fail.
ModulesA module is named by the digest of its file, the same in every environment.

From one environment to the next

A reader sees one whole version of a schema, never a mix of two.

Cells

Each environment says where its data rests.

An environment names one pool of cells or more, and each of its domains lives whole in a cell of one of them. So production can rest in cells of its own while the others share.

One environment, in the back office

Here staging is a copy of production, refreshed twice. It names the shared pool, and its domain lives in a cell of that pool. Only an owner creates, protects or removes an environment, and the audit trail records it.

Copies

Develop and test on real data.

An environment can start as a copy of another. The source keeps working while it is copied, and an owner refreshes the copy from it later.

A copyRule
What it takesEvery schema, and the live data you choose: none, the records under some scope values, or all.
One momentThe live state of one moment, never part of a run. No history comes: no runs, jobs, events or audit trail.
Restricted fieldsThey stay empty, unless an owner includes them. The audit trail records it.
Its sourceA copy takes no grant, no connection and no module. So it never calls the code of its source.
In the same cellA copy within one cell copies its rows inside Postgres. They never leave the cell.
RefreshAn owner refreshes a copy from its source. A refresh replaces everything the copy holds.
ProtectionAn owner protects an environment from removal. A protected copy is never refreshed.

What a copy takes

Creating a copy returns at once. Its domains answer once the copy is whole.

Refresh staging from production?

It copies production again, in place of what staging holds: the data, the versions of the schemas, the runs, the jobs, the workflow instances and the events go, with whatever work has not ended, the pause of each trigger and the cursor of each source. The grants stay, and so do the connections, the webhooks and the modules of a domain that both have. A domain that production no longer has leaves.

Until the refresh is whole, the domains of staging refuse every call.

What the copy takes

A refresh, before an owner confirms it

A refresh takes the choices of a copy again. It keeps the copy’s pools and its access grants.

See also

Build your domain.

Declare its schema, and take it to production, self-hosted or in a managed region.

Briefing