-
Notifications
You must be signed in to change notification settings - Fork 10k
Description
Existing documentation URL(s)
https://developers.cloudflare.com/durable-objects/platform/pricing/
What changes are you suggesting?
As hibernation takes 10s to trigger this should be 43,200,000 seconds? With the rest of the numbers 10x?
Example 4
Clients send one message per minute, and it takes 10ms to process a single message in the webSocketMessage() handler. Since each Durable Object handles 100 WebSockets, cumulatively each Durable Object will be actively executing JS for 1 second each minute (100 WebSockets * 10ms).
- 100 Durable Objects * 1 second2 * 60 minutes * 24 hours * 30 days = 4,320,000 seconds
- 4,320,000 seconds * 128 MB / 1 GB = 552,960 GB-s
- (552,960 GB-s - included 400,000 GB-s) x $12.50 / 1,000,000 = $1.91
Estimated total: $3.09 (requests) + $1.91 (compute duration) + minimum $5/mo usage = $10.00 per month
As the example occurs before this note it can be misleading for anyone not reading further.
Once a Durable Object has been in a hibernatable state for 10 consecutive seconds, it hibernates, and duration billing stops.
Additional information
No response