PostgreSQL
source of truth · control plane only
Projects, users and roles, routes and workflows, version snapshots, triggers, test suites, orchestration state and the license. Read by the compiler at save and promote time, never by a worker.
architecture
Your flow is a directed acyclic graph of blocks. Fluxify turns it into JavaScript when you save, so the work done per request is the work your blocks actually do — not the bookkeeping of interpreting them.
why it's fast
Walking a graph at runtime means, for every block of every request: find what comes next, look up how that block type behaves, run it, wrap its output for the next one. Compiling removes the loop — a wire becomes a direct function call.
a request on a worker
Matching a path is a lookup, so adding routes doesn't slow the ones you have. Bad input is rejected before a single block runs.
topology
The control plane is where you build. Development workers run your live working copy, test suites, and private sandboxes. Production workers run strictly promoted, verified versions.
| Control plane | Development worker | Production workers | |
|---|---|---|---|
| Does | Editor, admin API, compiler, AI gateway & MCP server | Runs working copies, sandboxes, and test suites | Serves promoted routes and production workflows |
| Fluxify's PostgreSQL | Reads and writes it | Never — receives compiled code over NATS | Never — receives compiled code over NATS |
| Scale & Licensing | One is plenty | One built-in (always off the worker license) | Add more as traffic grows (Community: 1, Enterprise: no cap) |
| If it goes down | You can't edit; APIs keep answering | Test suites & sandboxes pause; production unaffected | That worker stops answering; others carry on |
releases & deploys
Edits hot-reload on the development worker instantly. Promoting a version runs compiler checks, environment validation, and automated test suites before swapping the module into production in place with zero dropped requests.
state
It's easy to assume the graph is cached somewhere and re-read on every request. It isn't: workers hold compiled code in memory.
source of truth · control plane only
Projects, users and roles, routes and workflows, version snapshots, triggers, test suites, orchestration state and the license. Read by the compiler at save and promote time, never by a worker.
compiled routes · change events · required
Compiled routes live in separate NATS KV buckets for development and production, so a worker never needs a Postgres connection. The same bus carries hot-reload events and triggers. If NATS is down, Fluxify fails loudly instead of limping.
control-plane cache · and your KV store
Admin caches sessions, project settings and generated OpenAPI docs in Redis. Separately, Redis (or Memcached, Valkey, DragonflyDB) can be an integration your own flows use — like the cache-aside route on the home page.
database schema
What you draw is stored as plain rows — easy to back up, diff and migrate.
benchmarks
Official load test results for a production URL shortener built in Fluxify without code, compared with the same application hand-written in Node.js 24. 500 concurrent users against PostgreSQL and Valkey.
URL Shortener · 500 concurrent users · PostgreSQL + Valkey · 2 instances @ 1 CPU
~1.4× the throughput of hand-written Node.js 24 with 3.8× tighter p95 tail latency.
Fast median on cached reads (18ms), but p95 spikes to 448ms whenever queries hit PostgreSQL.
Tested with 500 concurrent users against PostgreSQL (680k+ records) and cold cache. Published in official documentation: docs/architecture/performance.md.
| Metric | Fluxify | Fluxify (baseline) | Node.js 24 |
|---|---|---|---|
| Throughput | 6,500 – 7,300 /s | 4,755 /s | 4,915 /s |
| Failed requests | 0 (0.00%) | 0 (0.00%) | 0 (0.00%) |
| Median latency | 56 – 61 ms | 81 ms | 18 ms |
| 95th percentile (p95) | 109 – 123 ms | 171 ms | 448 ms |
| Worker memory (idle) | ~161 MiB | ~270 MiB | — |
| Worker memory (500 VUs) | ~207 MiB | — | — |
Outperforms hand-written Node.js: With no code written, Fluxify delivers 6,500 to 7,300 req/s, exceeding hand-written Node.js 24's 4,915 req/s (~1.4× throughput).
3.8× tighter tail latency: Fluxify's slowest 5% of requests stay tightly bound under 125 ms. While Node.js 24 is quick on cache hits, its p95 spikes to 448 ms under PostgreSQL load.
Lean, predictable memory: Worker memory footprint dropped from ~270 MiB to ~161 MiB idle, and stays near 207 MiB under full 500-VU load.
Full methodology and reproducible scripts in our performance documentation.