Requirements
A minimal production deployment is one fc-server container and one PostgreSQL database. Everything
else on this page is needed only for a particular feature or for high availability.
At a glance
Section titled “At a glance”| Component | Needed for | Version or form |
|---|---|---|
fc-server |
Everything | A static Linux binary in an Alpine image you build from the repository’s Dockerfile (see images) |
| PostgreSQL | Everything | 16 or later. CI runs against 16 and local development (fcdev) against 18. No extensions |
| A dispatch queue | Delivering dispatch jobs | SQS FIFO (AWS), or the built-in Postgres broker (any platform) |
| Redis or Valkey | High availability (leader election); optional distributed rate limits; optional push log driver | Any supported version for election and rate limits; 6.2 or later for the push gateway’s Redis driver |
| SMTP server | Password-reset links, email PINs, invitations | Any; without one, mail is written to the log instead of sent |
| Object storage | Function artifacts | S3, or a file system every platform replica shares |
| Java 25 runtime | The ingestor runtime (ingestion, JVM functions) | The ingestor image is built on eclipse-temurin:25-jre |
| A TLS-terminating load balancer or ingress | Public HTTPS | Any. The platform listens on plain HTTP |
PostgreSQL
Section titled “PostgreSQL”The platform keeps all of its state in one database. It needs:
- A database and a role that owns its objects. Migrations run automatically every time a
database-backed process starts (
fc-serverapplies the embedded goose migrations, then seeds the built-in roles and permissions), and the stream processor’s partition manager creates and drops monthly partitions at runtime. The role therefore needs to create, alter and drop tables in the database, not just read and write rows. - No extensions. Partitioning is done by the platform itself, so
pg_partman,pg_cronand the like are not used, and a managed service’s extension allow-list does not matter. See no PostgreSQL extensions. - Enough connections. Each
fc-serverprocess opens a main pool, plus a separate pool for the dispatch scheduler (12 connections by default) and one for the push gateway (10). The main pool defaults to the larger of 4 and the number of CPUs the process sees; set it explicitly withpool_max_connsin the connection URL. See database operations. - Time. Partitions are monthly by
created_atin UTC; nothing depends on the server’s time zone.
What runs against the database, and what does not: a process with only the router enabled, or only the function runner, needs no database connection at all and skips migrations. With the Postgres broker, though, the router reads its queues from the platform database, so a router-only process then needs network access to PostgreSQL.
A dispatch queue
Section titled “A dispatch queue”The dispatch scheduler publishes a small pointer message for each job it claims; the router consumes
those messages and calls the platform back to deliver the job. Two backends exist for the platform’s
own dispatch jobs, chosen with FC_DISPATCH_QUEUE_TYPE:
| Value | Backend | Notes |
|---|---|---|
| unset (default) | Postgres broker: rows in a queue_messages table of the platform database, one logical queue per client and priority |
Nothing extra to run. It is what fcdev uses, and what any non-AWS deployment uses today |
SQS |
SQS FIFO queues, one per client and priority, named <prefix>-<client>-<priority>.fifo and created on first publish |
Needs FC_DISPATCH_QUEUE_PREFIX and an account and region (from FC_DISPATCH_QUEUE_URL, or FC_DISPATCH_QUEUE_REGION). The server refuses to start without them |
The router can also consume NATS JetStream queues, but only queues that some configuration document names; the platform’s scheduler publishes to SQS or Postgres only. Google Pub/Sub, RabbitMQ and other brokers are not supported for dispatch.
Redis holds no data the platform needs to keep. It is used for:
| Use | Setting | Without it |
|---|---|---|
| Leader election for the single-active subsystems (router, dispatch scheduler, stream processor, outbox processor, scheduled-job scheduler) | FC_STANDBY_ENABLED=true, FC_STANDBY_REDIS_URL |
Run exactly one copy of each of those subsystems |
| Distributed rate-limit counters (OAuth token and authorize endpoints, password reset) | FC_REDIS_URL |
The counters live in a PostgreSQL table instead |
| The push gateway’s Redis log driver | FC_PUSH_DRIVER=redis, FC_REDIS_URL |
The default postgres driver |
With standby enabled, election fails closed: a process that cannot reach Redis is never leader, so a Redis outage pauses every single-active subsystem until Redis is back. Size and protect Redis accordingly. See leader failover.
Object storage for functions
Section titled “Object storage for functions”Function artifacts (WebAssembly modules, JavaScript bundles, jars) are stored by content digest in
the store named by FC_FUNCTIONS_ARTIFACT_STORE:
s3://bucket/prefix: S3, with credentials from the standard AWS chain.file:///absolute/path: a directory. Every platform replica must see the same directory, so with more than one replica it has to be a shared file system.
Unset, the store falls back to /var/lib/flowcatalyst/functions/artifacts, which does not exist and
is not writable in the published image. Set the variable in any deployment that uses functions.
The ingestor runtime
Section titled “The ingestor runtime”Optional. It is needed to run ingestions (FC_INGESTION_ENABLED=true on the platform) or functions
written in Java. It is a Java 25 application with its own image, talks to the platform only over the
platform’s HTTP API as a service account, and needs no database of its own. The platform never calls
it, except to deliver to JVM functions it hosts. See running ingestor runtimes.
Network paths
Section titled “Network paths”| From | To | Why |
|---|---|---|
| Load balancer | Platform API port (FC_API_PORT, 8080) |
API, console, OAuth and OIDC endpoints |
| Monitoring | Metrics port (FC_METRICS_PORT, 9090) |
Prometheus scraping; keep it private |
| Router | Platform API (internal URL) | The router-config document and the delivery callback /api/dispatch/process |
| Platform | Consumer endpoints, function runners | Webhook deliveries (outbound HTTPS) |
| Platform | Customers’ identity providers | OIDC discovery, token exchange, JWKS |
| Platform, router | SQS, Secrets Manager, Parameter Store (read, and write when credential publishing is on), S3 | AWS deployments only |
| Ingestor | Platform API, and every source it reads | Polls, reports, jobs; SFTP, databases, APIs and so on |
| Function runner | Platform API | Desired state, artifacts, tokens |
Outbound deliveries to private, loopback and cloud-metadata addresses are refused by default; see the outbound guard.
Platform notes
Section titled “Platform notes”Everything is supported. A typical layout:
- Compute: ECS on Fargate or EKS.
- Database: RDS for PostgreSQL or Aurora PostgreSQL. Credentials can come from Secrets Manager
(
DB_SECRET_ARN+DB_HOST) with in-place rotation. - Dispatch queue: SQS FIFO (
FC_DISPATCH_QUEUE_TYPE=SQS). - Redis: ElastiCache for Redis or Valkey.
- Secrets: Secrets Manager or Parameter Store, injected as environment variables; platform
configuration secrets may also hold
aws-sm://oraws-ps://references the platform resolves. - Artifacts: S3.
- Credentials: a task or pod role. The platform calls SQS (
CreateQueue,SendMessage,SendMessageBatch,ReceiveMessage,DeleteMessageBatch,ChangeMessageVisibilityBatch,GetQueueAttributes), S3 (PutObject,GetObject,HeadObject,DeleteObject), Secrets Manager (GetSecretValue) and Parameter Store (GetParameter), pluskms:Decryptwhere those are encrypted with a customer key. If you turn on credential publishing (FC_CREDENTIAL_PUBLISH=aws-ps, off by default), the role also needs Parameter Store write access under the publishing prefix (PutParameter,DeleteParameter,AddTagsToResource,ListTagsForResource) and, with a customer key set inFC_CREDENTIAL_PUBLISH_KMS_KEY,kms:Encrypt.
Supported, without the AWS-specific features:
- Compute: GKE. Cloud Run can host the stateless API tier, but the background subsystems need an always-running process with CPU always allocated and at least one instance; GKE is simpler for them.
- Database: Cloud SQL for PostgreSQL, with the connection string in
FC_DATABASE_URL. The database secret refresher supports AWS only. - Dispatch queue: the Postgres broker (leave
FC_DISPATCH_QUEUE_TYPEunset). There is no Pub/Sub backend. - Redis: Memorystore for Redis or Valkey.
- Secrets: Secret Manager values injected as environment variables or mounted files. The
platform cannot resolve
gcp-sm://references (writing one is refused withSECRET_REFERENCE_UNSUPPORTED); store configuration secrets as encrypted platform values instead. - Artifacts: there is no Google Cloud Storage backend. Use a
file://store on a shared file system (Filestore, for example) mounted into every platform replica. - Ingestion: every source kind works except
s3andsqs, which read AWS services.
Any Kubernetes cluster or set of VMs that can run containers:
- Database: PostgreSQL 16 or later, managed or self-run.
- Dispatch queue: the Postgres broker.
- Redis: any Redis or Valkey, if you want high availability.
- Secrets: environment variables or mounted files, from whatever secret store you use.
- Artifacts: a
file://store on a volume every platform replica shares (a ReadWriteMany volume on Kubernetes). An S3-compatible store has not been tested: the store has no endpoint or path-style setting of its own. - Local development is a different thing entirely: fcdev runs everything in one process with an embedded PostgreSQL and needs none of the above.
Read next
Section titled “Read next”- Deployment topologies: how to lay these pieces out.
- Configuring a deployment: the settings every production deployment needs.
- Environment variables: every setting, with defaults.