Components
One database is a deliberate choice. Ingested records are versioned rather than overwritten, and
velocity rules read only the live rows through partial indexes built from your live rules.
Those index builds run in
Server.Worker, so a build that holds a connection for minutes never
does so in the process answering decisions.Environment variables
Each service needs a.env. The ones that matter most:
The time zone and the IP addresses allowed to call the API are not deployment settings: each
organisation sets its own under Settings → Organization. A timestamp sent without an
offset is read in that organisation’s zone.
Bring-up order
1
Start the infrastructure
PostgreSQL and NATS — and Redis if you use it. Wait for health checks to pass.
2
Apply migrations
Schema migrations run at application start; the first boot can take a while.
3
Start the services
Server.Api creates the queue streams and binds its consumers itself; start it alongside
Server.Blazor and Server.Worker.4
Sign in as the administrator
Use the account created on first boot, and change its password immediately.