Cost Models & Sizing
Modeling In-App SDK Polling Traffic Across 5k–500k Monthly Active Users
Calculate client SDK state-check QPS, Redis allkeys-lru cache sizing, and why memory caching prevents Postgres 16 CPU saturation.
500k MAUs = ~512 MB Redis LRU + 20% Postgres Connection Reduction
How In-App Survey SDKs Poll Environment State
Every active user session initializes the Formbricks JS SDK to fetch active survey triggers, display frequency rules, and user segment attributes. Without Redis caching, 300k–500k MAUs turn into millions of repetitive SQL reads.
Configuring Redis maxmemory & Eviction Policy
Pinning redis-server with --maxmemory 256mb to 512mb and --maxmemory-policy allkeys-lru keeps hot environment JSON keys in RAM while bounding cache memory tightly inside your Docker Compose budget.
36-Month Cost & Capacity Breakdown
| SDK MAU Tier | Est. Daily SDK Syncs | Recommended Redis Maxmemory | App Container Limit |
|---|---|---|---|
| 5k – 50k MAUs | 20k – 200k / day | 256 MB | 2,048 MB |
| 100k – 250k MAUs | 400k – 1.0M / day | 256 MB – 512 MB | 3,072 MB |
| 300k – 500k MAUs | 1.2M – 2.2M / day | 512 MB | 4,096 MB |