Hey everyone, trying to understand

Hey everyone, trying to understand hibernated websocket pricing with DOs. My idea was to process something for 10ms, send a message, and do nothing but once every second. I'm wondering if that means that I will get billed for every second, or if I take less than a second to do work, there is fractional billing? Example 4 seems to indicate so, but I wanted to confirm my understanding
3 Replies
Milan
Milan4mo ago
Yup, for hibernatable websockets you're only charged for the duration your code is executing. If it takes 10ms to run your webSocketMessage handler and you do it once per second, then your monthly duration charge would be (10ms * number of seconds per month)
xeon06
xeon06OP4mo ago
Thank you Milan!
Milan
Milan4mo ago
If you find anything confusing (docs/examples) or feel the API is missing something while you're working with it, definitely let us know!
Want results from more Discord servers?
Add your server