Overview
Introduction to D.O.R.I.S. — Durable Offloaded Rust Isomorphic Stack
D.O.R.I.S. is a Cloudflare-native architecture pattern for building cloud-native, serverless backends entirely on Cloudflare — no VPS, no containers, no Kubernetes. Everything runs on Cloudflare Workers, Durable Objects, D1, R2/KV, and native Cloudflare primitives.
It was extracted from warden-worker, a Bitwarden-compatible server written in Rust compiled to WASM on Cloudflare Workers.
The 7 Pillars of D.O.R.I.S.
Every pillar is optional. Add or remove bindings as your app grows.
- Rust → WASM via `worker-build` — Rust compiles to WASM using the `worker` crate, Axum for routing inside Workers
- JS Entry Wrapper — Thin JS layer routes WebSocket → NotifyDo, CPU-heavy → HeavyDo, rest → Rust
- HeavyDo CPU Offload — Durable Object with 30s CPU budget reusing the same Axum router
- NotifyDo WebSocket Push — Tags-based fan-out for real-time sync
- D1 Database — SQLite-compatible, serverless, auto-scaling with `first-primary` consistency
- Rate Limiting + Assets — Cloudflare-native rate limiting, edge-served static assets
- One-Click CI/CD — 3 GitHub Actions workflows with idempotent D1 bootstrap