Deployment model
EdgeKit runs in one of two deployment models: EdgeKit hosted or EdgeKit managed. You choose one before EdgeKit opens your organization’s account, and you cannot change it later: moving to the other model means a new setup and a data migration.
In both models EdgeKit deploys every release and runs every database migration. Your organization gets its own database, its own sign-in instance and its own tenant host, and shares none of them with any other organization. The console and the APIs work the same in both.
EdgeKit hosted
Section titled “EdgeKit hosted”EdgeKit runs everything on its own infrastructure. Each organization gets its own database, which EdgeKit creates and operates. You set up nothing in a cloud account of your own.
Your tenant host answers on an EdgeKit hostname from the start. To serve it on your own domain, such as
edgekit.example.com, add the DNS records EdgeKit gives you.
EdgeKit managed
Section titled “EdgeKit managed”EdgeKit installs into your organization’s own cloud account and operates the install for you, with the credentials that takes. Your organization owns the account and the database. The analytics archive, where your events are stored, is in your account too.
For a managed install you give EdgeKit:
- an API token, the account id and the zone id of your Cloudflare account
- an admin connection string for the database EdgeKit will use
- the signing key and event key of your Inngest Cloud environment, one environment per EdgeKit environment, for the background jobs. See Background jobs
- optionally, the hosts in that zone your site is served from. EdgeKit mounts
/edgekit/on them, so you neither forward the path yourself nor run the site proxy
Architecture
Section titled “Architecture”| Part | What it is | Where it runs |
|---|---|---|
| Control plane | The EdgeKit console, where your team authors, stages and deploys changes. EdgeKit rolls out releases and migrations from it too. | EdgeKit |
| Tenant APIs and decide APIs | The tenant API, the decide API and analytics ingest, on your tenant host. | Your CDN account |
| Database | Your organization’s own PostgreSQL database. | Your database provider |
| Background jobs | Publishing deployed changes, content sync, billing sync, grant updates, checkout recovery and newsletter sends. | Your Inngest account |
Database
Section titled “Database”PostgreSQL 18 or later. PlanetScale and Neon are preferred, and any other PostgreSQL works if it meets these conditions:
- It accepts connections from Cloudflare’s published IP ranges. EdgeKit has no fixed outbound address, so a firewall allowlist has to admit all of those ranges.
- The admin role is a superuser, or it can create roles and owns the database. EdgeKit creates two roles of its own,
appandmigrator, and runs on those. - No other workload runs on the database.
Background jobs
Section titled “Background jobs”Publishing deployed changes, content sync, billing sync, grant updates, checkout recovery and newsletter sends run as background jobs on Inngest. In a managed install they run on your organization’s own Inngest Cloud account, so their run history stays with you. While that account cannot run them, a deploy from the console is recorded but does not go live. Before EdgeKit installs:
- Create one Inngest environment for each EdgeKit environment: your Production environment for production, and a custom environment for QA. Branch environments do not work: they share keys and archive themselves.
- Invite the address EdgeKit gives you as an Admin of your Inngest organization. EdgeKit uses it to watch and rerun jobs for you.
- Give EdgeKit each environment’s signing key and event key.
EdgeKit checks the keys before it stores them, and refuses a key that another of your environments already uses. To rotate a key, send EdgeKit the new one; the next deploy uses it. Jobs fail from the moment Inngest retires the old key until that deploy, so agree the time with EdgeKit first.
You can instead run the jobs on EdgeKit’s Inngest. Then you need no Inngest account, but your install holds a key that every other organization in that EdgeKit environment also holds.
Supported CDNs
Section titled “Supported CDNs”| CDN | Support |
|---|---|
| Cloudflare | Fully supported |
| Fastly | Experimental |
| Akamai | Experimental |
| Bunny | Experimental |
| AWS CloudFront | Experimental |
Talk to EdgeKit before you plan a managed install on an experimental CDN.