Architecture at a glance

Edge application

Ration’s web app runs as a Cloudflare Worker: server-side rendering with a modern React stack, executed close to users globally, with Smart Placement so database-heavy work stays near the primary database for low latency.

Data services (plain English)

PieceRole
D1Primary SQL database for accounts, orgs, inventory, recipes, plans, credits, keys.
R2Object storage for files like avatars, exports, receipt images.
KVFast key-value cache for rate limits, embedding cache, tier cache, webhook idempotency.
VectorizeSemantic index for ingredient similarity inside each organization’s namespace.
QueuesBackground jobs for long AI tasks (scan, generate, plan week, URL import).
AI Gateway / Workers AIModels for vision, text generation, embeddings—behind credit gates where applicable.

Separate MCP Worker

MCP uses its own Worker entrypoint and hostname but shares the same D1/KV/AI/Vectorize bindings so assistants see consistent data with the web app.

No classic servers

There are no always-on VMs you manage—capacity scales with Cloudflare’s platform. Heavy work is queued so browser requests stay fast.

This is descriptive, not a performance SLA. For contractual uptime, rely on your agreement with Ration.