billflare.

WebSocket hibernation with Durable Objects

Cloudflare shows how Durable Objects hibernate WebSocket connections while idle.

Products
Durable Objects
Source
Official docsCloudflare Docs

Key points

  • A Durable Object calls ctx.acceptWebSocket for a server-side socket. When idle, the object can leave memory while the WebSocket connection remains open; a later message recreates the object.
  • In its constructor, the example retrieves hibernating sockets and restores per-connection state from serialized attachments.
  • Hibernation applies only when the Durable Object acts as the WebSocket server; it does not support outbound WebSocket connections.

Original sources

  1. Undated

    WebSocket hibernation with Durable Objects

    Open original source

    Cloudflare shows how Durable Objects hibernate WebSocket connections while idle.

Community resourceWorkers +5

FlareCost: Free plan limits that fail the request (not bill)

FlareCost’s free-plan-limits page lists Workers, KV, D1, R2, Durable Objects and Queues Free meters in one table: daily Free limits reset at 00:00 UTC and fail the request instead of billing, except R2 which bills past its monthly free tier on any plan. Reviewed against official pricing pages on 2026-11-02.

R2

stevemcniven: charged $9 for an R2 Infrequent Access bucket created by mistake and deleted 20 minutes later.

X user @stevemcniven (Steve McNiven-Scott) says that $9 USD was charged for creating an R2 Infrequent Access bucket by mistake, not using it and deleting it about 20 minutes later, with no other interaction, and calls it about $15 CAD for nothing. In a later reply he says support responded in effect that "a CREATE is a CREATE" and that a credit might be considered once the invoice is paid.

Author experienceWorkers +7

WquGuru: a read-only Cloudflare billing audit prompt

WquGuru (@wquguru) shares a read-only audit prompt that checks account usage, D1 query plans, loops and retries, Durable Object wake-ups, high-priced operations and Worker config, then ranks risks by worst-month cost.