Moving session storage to Durable Objects: storage is cheap, duration decides
Rain (@sakurain_ai) estimates that 10k sessions (~3 GB) and 100k turns cost $0.60 in requests on Durable Objects, while duration varies 60× between hibernating and pinned objects.
- Products
- Durable Objects
- Source
- Author experience𝕏
- Author
- Rain (@sakurain_ai)
Key points
- The author moved session storage from Postgres to Durable Objects and quotes three pricing facts: idle objects eligible for hibernation are not billed for duration, duration is charged on the 128 MB allocated regardless of use, and stored data is billed until removed.
- His estimate: 10k sessions (~3 GB) plus 100k turns → storage $0, row writes $0, row reads $0, requests $0.60. Duration: about 0.6 GB-s per turn when hibernating (~640k free turns a month) versus 37.5 GB-s when pinned (~10k free, then about $43 per 100k turns). These are the author's estimates.
- Official Durable Objects pricing (rechecked 2026-10-20): Workers Paid includes 400,000 GB-s of duration per month, then $12.50 per million GB-s, and 5 GB-month of SQLite storage, then $0.20 per GB-month; billable usage is rounded up to the next billing unit.
Original sources
Published
Original post
Read on 𝕏Rain (@sakurain_ai) estimates that 10k sessions (~3 GB) and 100k turns cost $0.60 in requests on Durable Objects, while duration varies 60× between hibernating and pinned objects.
Rain
@sakurain_ai · Original 𝕏 post
Talk to my codex 1 hour to switch session storage from pg to cf do. 3 facts: - Durable Objects that are idle and eligible for hibernation are not billed for duration. - charges for the 128 MB of memory your Durable Object is allocated, regardless of actual usage - Durable Objects will be billed for stored data until the data is removed why cf do is trustable and affordable: Cloudflare Durable Objects cost: storage is free, duration is everything. 10k sessions (~3 GB) + 100k turns → storage $0, row writes $0, row reads $0, requests $0.60. Duration varies 60x: hibernating 0.6 GB-s/turn (~640k turns free/mo); pinned 37.5 GB-s (~10k free, then ~$43/100k).
More to read
Workers Free: SQLite Durable Object row-write quota can still block after the 00:00 UTC reset
Two Workers Free users with SQLite-backed Durable Objects report that after exceeding the 100,000 daily row-write allowance, storage still threw “Exceeded allowed rows written in Durable Objects free tier” after the documented 00:00 UTC reset, even though GraphQL analytics already showed 0 rows written for the new UTC day. @vendasecoplast1 saw 114,211 rows written and 399,088 rows read on 2026-11-16 UTC, then a failure at 2026-11-17 00:17:32 UTC during CREATE TABLE IF NOT EXISTS in the constructor. @dimoncheck2020 saw 103,558 rows written on 2026-11-18 UTC and 24 failed Durable Object invocations with 0 rows written between 00:00:00 and 00:35:27 UTC on 2026-11-19, with the same constructor exception at 00:35:21 UTC. No Cloudflare staff reply as of 2026-11-19.
igorrizzom: a forgotten Durable Object alarm billed US$ 2,038; Support refunded US$ 1,533.29, leaving US$ 505.
X user @igorrizzom (Igor Rizzo), who also posted on Cloudflare Community as igorarm (urnaaovivo.com), says a personal, non-commercial prototype that collected public election data in Brazil was left running after the October 25 runoff. A Durable Object kept rescheduling itself via alarm every ~5 seconds and writing to SQLite, and the invoice reached US$ 2,038, almost all from DO rows written, with about 10k pageviews. The author says budget alerts were set up but went to an old inbox that was never checked, and that alerts do not stop usage. Spend limits for Workers and Durable Objects were only announced on November 13, after almost all of the usage; the author then set a US$ 1 spend limit, turned the collector off, and removed Cron Triggers. The author says Support refunded US$ 1,533.29 as a one-time courtesy. The remaining US$ 505, which the author later described as US$ 500 of usage plus the US$ 5 Workers Paid fee, was closed as final; the author asked for a supervisor review in case #02442826 (follow-up to #02435308) and also asked @SidChatterjee whether any goodwill path remained for pre-launch cases. There is no Cloudflare staff reply on the public X thread or the Community thread. Public Support actions are reported by the author.
How to cap your Cloudflare Workers bill, and what you cannot cap
CostHex concludes there is no dollar cap that stops a Worker, and lays out what can contain a bill instead: per-invocation limits, keeping abusive traffic away, and earlier warnings.