Fraktalio Logo{Restaurant}

{Restaurant} Demo

Event Sourcing & Dynamic Consistency Boundary on the Edge

A restaurant order management demo built with TanStack Start, deployed to CloudflareWorkers via the Vite plugin, backed by PostgreSQL through Hyperdrive, and powered byfmodel-decider for pure functional event sourcing with DCB.

Event Sourcing

Every state change is captured as an immutable event. Full audit trail, time-travel debugging, and reliable replay built in.

Dynamic Consistency Boundary

DCB pattern with tag-based event streams. Optimistic concurrency control without rigid aggregate boundaries.

Cloudflare Workers & Workflows

Deployed to the edge via @cloudflare/vite-plugin. SSR, server functions, and durable Workflows running globally.

Hyperdrive + PostgreSQL

Postgres as the event store, accelerated by Cloudflare Hyperdrive for connection pooling and low-latency queries.

TanStack Start

Full-stack React framework with type-safe file-based routing, server functions, and streaming SSR.

Fmodel Decider

Pure functional domain modeling with deciders, projections, and command/query handlers from the fmodel library.

Event Modeling blueprint showing the restaurant order management system's commands, events, and views