FlowFrame Engine/v2.0 Declarative Simulator

Build, run, and understand
distributed systems.

FlowFrame is an interactive visual simulator and learning environment for distributed architectures. Design systems on a canvas, configure components, run real requests, and watch execution unfold — frame by frame.

Sign in →
Deterministic routing engineFrame-by-frame packet inspectionMonaco DSL editor (.flow)In-browser runtime, zero setup
api-gateway-mesh.flow
Simulated Runtime
Active Request: POST /api/orders/checkout
Route: /api/orders/*|Target: Order Service|Hop: 14ms
Live Execution Trace4 hops recorded
00:00.090[CLIENT]POST /api/orders/checkout dispatched to API Gateway
00:00.150[GATEWAY]Validated session Bearer token via Auth Service [200 OK]
00:00.220[GATEWAY]Matched path /api/orders/* → Forwarded to Order Service
00:00.310[ORDER_SVC]Published event to RabbitMQ topic 'orders.created' [202 Accepted]
FlowFrame DSL (.flow) — Declarative architecture compiler & engine·Monaco Code Editor — Real-time syntax highlighting & autocompletion·API Gateway — Path-based routing to Server & LoadBalancer clusters·Load Balancing — Round Robin & IP Hash traffic distribution·RabbitMQ Queue — Asynchronous message buffering & consumer prefetch·PubSub Broker — Multi-subscriber event fan-out & topic channels·Cache-Aside — Redis hit/miss & PostgreSQL database fallback·Interactive Docs (/docs) — Comprehensive language reference & API schemas·FlowFrame DSL (.flow) — Declarative architecture compiler & engine·Monaco Code Editor — Real-time syntax highlighting & autocompletion·API Gateway — Path-based routing to Server & LoadBalancer clusters·Load Balancing — Round Robin & IP Hash traffic distribution·RabbitMQ Queue — Asynchronous message buffering & consumer prefetch·PubSub Broker — Multi-subscriber event fan-out & topic channels·Cache-Aside — Redis hit/miss & PostgreSQL database fallback·Interactive Docs (/docs) — Comprehensive language reference & API schemas·

The Core Experience

From architecture to running system in four steps.

No static mockups. FlowFrame compiles your topology into an executable simulation graph.

Step 01

Build

Drag components onto the visual canvas or write FlowFrame DSL in the Monaco editor. Place clients, gateways, load balancers, caches, databases, and queues.

Step 02

Configure

Set capacity limits, accepted endpoints, cache TTLs, routing algorithms, Postgres connection pools, and custom HTTP request payloads in the node inspector.

Step 03

Run

Hit play. The engine simulates real request routing: REST calls hop through your topology following deterministic rules that mirror production infrastructure.

Step 04

Understand

Watch packets animate in real time. Pause at any frame, inspect live node states, verify cache hit rates, inspect connection queues, and read execution logs.

Why FlowFrame

Not a diagram tool. A running system.

Most system design tools let you draw static boxes and arrows. FlowFrame executes the actual runtime behavior, captures every hop, and plays it back.

Real simulation engine

Requests actually route through your architecture. Client → Load Balancer → Server → Redis → Postgres — with real rules, not just animated arrows.

Frame-by-frame playback

Every request hop becomes an inspectable frame. Pause at any moment, scrub backwards, or step forward through the execution graph.

Inspect live node state

Click any node's inspector. See Redis key snapshots, Postgres TCP connection pool depths, and load queues updating live as the simulation runs.

Learn as you simulate

Every core concept has guided learning. Read theory, trigger node overload or failure, and watch recovery mechanisms — all on one screen.

Templates

Pick a scenario. Hit play.

Pre-wired architectures with real engine logic. Select one and watch the system run.

View all scenarios →

Load Balancing

Beginner

Round Robin and IP Hash distributing requests across 3 servers. Set server capacity to 0 to watch automatic failover.

Round RobinIP HashFailover
Run simulation

Cache-Aside

Beginner

Cache hit, cache miss → PostgreSQL fallback, and TTL invalidation. Redis snapshots update frame-by-frame.

Redis Hit/MissDB FallbackTTL Expiry
Run simulation

API Gateway

Intermediate

Path-based routing to microservices & load balancers. Simulates route matching and 503 gateway timeouts.

Path RoutingCluster Targets503 Failover
Run simulation

Valet Key Pattern

Intermediate

Client requests a signed upload token from the server, then uploads directly to cloud storage bypassing proxies.

Token IssuanceDirect UploadCloud Storage
Run simulation

Explore

Three ways to use FlowFrame

DSL Reference

Complete syntax guide, component node specifications, and copy-pasteable architecture scripts.

Read Docs →

Guided Learning

Theory on the left, live simulation on the right. Understand cache-aside, load balancing, and queues interactively.

Start Learning →

Free Visual Sandbox

Write DSL or drag & drop nodes. Build and run any distributed architecture in your browser with zero setup.

Open Workspace →

Engine Architecture

Deterministic simulation rules & behavior

Every distributed system in FlowFrame executes according to deterministic rules that mirror real-world production infrastructure.

01
Data Access

Cache-First Precedence

When a Server is connected to both Redis and PostgreSQL, it always queries Redis first. Only upon CACHE_MISS does it fallback to PostgreSQL.

02
Database Pool

Postgres TCP Pool Limits

Server's tcpConnectionsToPostgres sets maximum active connections. Saturated requests wait in a POSTGRES_POOL_WAIT queue until freed.

03
Traffic Routing

Load Balancer Health Filter

Balancers evaluate server capacity and filter out overloaded targets. If all downstream servers are at capacity, it returns a 503 error.

04
REST Contracts

Endpoint & Method Matching

Servers validate incoming requests against declared acceptedEndpoints and HTTP verbs. Unmatched paths immediately trigger 404 or 405.

05
Async Messaging

Message Queue & 202 Ack

Publishing to a MessageQueue returns an immediate 202 Accepted ack to the client while consumer servers process messages in the background.

06
Event Streaming

PubSub Event Fan-Out

When an event is published to a PubSub broker, it broadcasts to all microservice workers registered to that topic channel.

07
Security

Valet Key Pre-Signed Uploads

Clients request a pre-signed token from the auth server, then upload heavy media assets directly to Cloud Storage bypassing server proxies.

08
Flow Control

Queue Overflow Handling

When MessageQueue reaches capacity, overflow behavior dictates execution: BLOCK halts producer until space frees, or REJECT fails fast.

Featured Deep Dive

Building Event-Driven Microservices From Scratch

Complete event-driven microservices architecture — routing through API Gateways, load balancers, RabbitMQ message queues, and Postgres connection pools.

Complete producer-consumer & PubSub fan-out pipeline
Cache-aside with Redis hits vs misses
TCP connection pool exhaustion & waiting queues
Step-by-step live simulation frame playback

Open Source · Noncommercial License

Free for education, personal learning, and non-commercial research. Released under PolyForm Noncommercial 1.0.0.

Star on GitHub