D.O.R.I.S.

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.

  1. Rust → WASM via `worker-build` — Rust compiles to WASM using the `worker` crate, Axum for routing inside Workers
  2. JS Entry Wrapper — Thin JS layer routes WebSocket → NotifyDo, CPU-heavy → HeavyDo, rest → Rust
  3. HeavyDo CPU Offload — Durable Object with 30s CPU budget reusing the same Axum router
  4. NotifyDo WebSocket Push — Tags-based fan-out for real-time sync
  5. D1 Database — SQLite-compatible, serverless, auto-scaling with `first-primary` consistency
  6. Rate Limiting + Assets — Cloudflare-native rate limiting, edge-served static assets
  7. One-Click CI/CD — 3 GitHub Actions workflows with idempotent D1 bootstrap

On this page