Skip to content

architecture

Compile the graph once. Never walk it again.

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.

From save to live

You hit Save editor PostgreSQL blocks + edges Compiler graph → JS NATS KV compiled routes Worker swapped in place Worker swapped in place Worker swapped in place blocks, edges and route settings saved the source of truth; only admin connects walks from Entrypoint, emits one JS module stores the latest build and notifies workers no restart; in-flight requests finish on old code
Steps after Save happen once, automatically, usually in well under a second. Requests never touch the left half of this picture.

why it's fast

An interpreter pays a toll at every block.

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.

interpreted · graph walked per request, per block request find next block look up its type run it wrap the output response ↻ O(N) dispatch loop compiled · standalone JavaScript functions request $block_0 $block_1 $block_2 $block_3 response 0.42 ms total CPU / req
Interpreted engines walk graph nodes per request, paying dynamic lookup tolls. Fluxify compiles flows directly into straight-line JavaScript functions executed natively by Bun workers.

a request on a worker

Four steps, two early exits.

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.

no match schema fails your blocks request GET /users/42 Match route table lookup Validate body · query · params Run compiled module $run(ctx, input) 200 OK your Response block 404 Route not found 400 validation failed DB · KV · HTTP · queues through integrations
Rejections happen before any block runs. Everything after the match is your route's own compiled code.

topology

Control plane, dev worker, and production workers.

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 fluxify-admin ×1 Request workers fluxify-worker ×N store publish cache ✕ no credentials starts & replaces workers Portal visual editor Admin API routes, blocks, settings Compiler graph → JS module AI gateway agent harness · alpha Orchestrator reconciles worker count every 5s PostgreSQL flows, users, settings NATS JetStream compiled routes (KV) Redis sessions, settings cache Worker compiled routes in memory Worker compiled routes in memory Worker compiled routes in memory Proxy Traefik Users Your databases & queues Postgres · Mongo · Redis · Kafka
Lime: compiled routes flowing to workers. Green: your users' requests. Red dashed: a connection that deliberately does not exist.
Control planeDevelopment workerProduction workers
DoesEditor, admin API, compiler, AI gateway & MCP serverRuns working copies, sandboxes, and test suitesServes promoted routes and production workflows
Fluxify's PostgreSQLReads and writes itNever — receives compiled code over NATSNever — receives compiled code over NATS
Scale & LicensingOne is plentyOne built-in (always off the worker license)Add more as traffic grows (Community: 1, Enterprise: no cap)
If it goes downYou can't edit; APIs keep answeringTest suites & sandboxes pause; production unaffectedThat worker stops answering; others carry on

releases & deploys

Hot-reloads on dev. Zero-downtime promote to prod.

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.

time → v2 published you hit Save finishes on v1 finishes on v1 finishes on v1 runs v1 runs v2
A save swaps the route table in place. Nothing restarts, nothing is dropped, and a broken save never replaces the version that's serving.

state

Three stores, three jobs.

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.

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.

NATS JetStream

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.

Redis / Valkey

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

A canvas is two tables.

What you draw is stored as plain rows — easy to back up, diff and migrate.

routes id varchar method varchar path text body_schema jsonb params_schema jsonb timeout_seconds int blocks id varchar type varchar data jsonb position jsonb route_id → routes edges id varchar from → blocks to → blocks from_handle b3-success to_handle b3-success route_id → routes on the canvas If Condition Response 200 1 edge row 2 block rows
A canvas is two tables. A block is a row with its config as JSON; a wire is a row naming two blocks and a socket. Position is layout only — the edges are the program.

benchmarks

Zero code. 1.4× the throughput of Node.js.

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.

Official Benchmark: Fluxify vs Hand-Written Node.js

URL Shortener · 500 concurrent users · PostgreSQL + Valkey · 2 instances @ 1 CPU

500 VUs 60s hold 0 errors (100%)
Fluxify Visual Canvas · 0 Code
6,500 – 7,300 req/s
p95 tail: 109 – 123 ms median: 56 – 61 ms

~1.4× the throughput of hand-written Node.js 24 with 3.8× tighter p95 tail latency.

Node.js 24 + Hono Hand-written TS
4,915 req/s
p95 tail: 448 ms median: 18 ms

Fast median on cached reads (18ms), but p95 spikes to 448ms whenever queries hit PostgreSQL.

Throughput (Requests / second) higher is better · ~1.4× faster
Fluxify
6,500 – 7,300 /s
+40%
Node.js 24
4,915 /s
baseline
p95 Tail Latency (95% of requests completed faster than) lower is better · 3.8× tighter
Fluxify
109 – 123 ms
steady
Node.js 24
448 ms
spikes
Worker memory: ~161 MiB idle · ~207 MiB under 500 VU peak load
0 errors across all runs

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.