Documentation Index
Fetch the complete documentation index at: https://formbricks.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Running Formbricks as a cluster of multiple instances gives you:- High Availability: surveys remain accessible even if one app pod becomes unavailable
- Load Distribution: traffic can be spread across multiple stateless Formbricks app instances
- Scalability: you can scale app replicas horizontally as usage grows
- Zero-Downtime Updates: rolling deployments are possible with the right orchestration setup
Requirements
For a Formbricks v5 cluster setup, plan for:- shared PostgreSQL for Formbricks and Hub, with
pgvectorsupport if Hub shares the same database - shared Redis/Valkey for caching, rate limiting, and audit-related flows
- shared S3-compatible storage if you use file uploads or organization branding assets
- a load balancer or ingress layer in front of the app
- Formbricks Hub as part of the runtime
- Envoy Gateway or an equivalent external edge rate limiter for the v5-covered public and API-key routes
Architecture
Component Description
-
Formbricks App Replicas
- stateless application instances that serve the UI, APIs, and survey flows
- can be scaled horizontally behind a load balancer
-
Formbricks Hub
- required in Formbricks v5
- stores and serves Hub-backed feedback record data
- can share the same PostgreSQL database as the main app when configured that way
-
PostgreSQL
- primary persistent store for the Formbricks app and, by default, Hub
- should be backed up and monitored like any other stateful production dependency
-
Redis / Valkey
- required for caching, remaining application-enforced rate limits, and audit-related flows
- should be shared across all app replicas
-
S3-Compatible Storage
- used for file uploads and media-related features
- should be shared across all replicas
-
Edge Layer
- terminates or routes incoming traffic
- enforces rate limiting for the route groups that moved out of the application server in v5
Redis Configuration
Redis/Valkey is required for Formbricks to function. The application will not start without
REDIS_URL.env
S3 Configuration
env
- all replicas use the same bucket
- the bucket has the required CORS settings
- the credentials have read/write access for the assets you expect Formbricks to manage
v5 Cluster Notes
Hub Is Mandatory
Formbricks v5 self-hosting requires Hub. Do not plan a cluster upgrade that keeps Hub disabled.Edge Rate Limiting Must Exist Somewhere
You do not have to use the Formbricks Helm chart’s Envoy bundle, but you do need equivalent edge protection for the v5-covered public and API-key routes. Use the rate-limiting guide for the exact route coverage.Cube Is Optional
Cube is only needed for analytics dashboards or other analysis flows that depend on Cube queries. It is not part of the baseline Formbricks v5 cluster runtime.Kubernetes Setup
The current Kubernetes deployment path uses the OCI chart published fromcharts/formbricks: