Counters and cache · facts read November 9, 2026
Cloudflare Durable Objects
Single-instance stateful objects on Cloudflare's network, each with its own SQLite storage and WebSockets. Strongly consistent state and WebSockets in one place, next to your Workers.
- Free plan
- On Workers Free (SQLite-backed objects only): 100,000 requests a day, 13,000 GB-s of duration a day, 5 million rows read and 100,000 rows written a day, 5 GB stored in total. Past any limit, further operations fail with an error until 00:00 UTC.
- Paid from
- On Workers Paid ($5/month account minimum): 1M requests a month, then $0.15 per million; 400,000 GB-s, then $12.50 per million GB-s; 50M rows written, then $1.00 per million; 5 GB-month, then $0.20 per GB-month.
- Monthly cost at 1,000 users
- $0/month 100,000 requests a month fits the free 100,000 a day.
- Free plan allows commercial use
- Not stated
- Open source
- No
- Self-hostable
- No
Source: Cloudflare Durable Objects pricing, read November 9, 2026. Prices change; check the vendor's page before you commit.
Best for
- Everything on Cloudflare
- Pushing live updates over WebSockets
- Per-room or per-question state
Watch out for
- You write the counting, sharding and leaderboard code yourself; there are no Redis-style commands.
- One object has a soft limit of 1,000 requests a second, so a big spike needs counters split across objects.
How Cuely scores Cloudflare Durable Objects
The published scores, from −3 to +3, that decide when Cuely picks it. Method
- +2votes, scores, leaderboards or streaks (many writes to the same numbers). One object per question counts votes with strong consistency in its own SQLite storage.
- +2realtime features. The same object can hold players' WebSockets; with the Hibernation API idle connections aren't billed for duration, and incoming messages bill at 20:1.
- +2global low latency. Runs on Cloudflare's network beside your Workers.
- +2keep costs as low as possible. Included on Workers Free: 100,000 requests and 100,000 rows written a day.
- −1Next.js or React. Lives on Cloudflare Workers; an app on Vercel has to call it over HTTP.
Cloudflare Durable Objects alternatives
Recipes with Cloudflare Durable Objects
- Casual or daily web game that survives viral spikes · an alternative