Skip to content

Commit b1283be

Browse files
committed
Creating new PR to avoid merge conflicts
1 parent 133bba5 commit b1283be

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/content/partials/durable-objects/do-faq-pricing.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ A Durable Object incurs duration charges as long as the JavaScript object has to
99
Once an object has been evicted from memory, the next time it is needed, it will be recreated (calling the constructor again).
1010

1111
There are several factors that contribute in keeping the Durable Object in memory and keeping it from hibernating or being inactive.
12+
1213
Find more information in [Lifecycle of a Durable Object](/durable-objects/concepts/durable-object-lifecycle/).
1314

1415
### Does an empty table / SQLite database contribute to my storage?

src/content/partials/durable-objects/durable-objects-pricing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ await durableObjectStub.cat(); // billed as a request
3232

3333
<sup>3</sup> Application level auto-response messages handled by [`state.setWebSocketAutoResponse()`](/durable-objects/best-practices/websockets/) will not incur additional wall-clock time, and so they will not be charged.
3434

35-
<sup>4</sup> Duration is billed in wall-clock time as long as the Object is active, but is shared across all requests active on an Object at once. Calling `accept()` on a WebSocket in an Object will incur duration charges for the entire time the WebSocket is connected. It is recommended to use the WebSocket Hibernation API to avoid incurring duration charges once all event handlers finish running. Note that the Durable Object will remain active for 10 seconds after the last client disconnects. For a complete explanation, refer to [When does a Durable Object incur duration charges?](/durable-objects/platform/pricing/#when-does-a-durable-object-incur-duration-charges).
35+
<sup>4</sup> Duration is billed in wall-clock time as long as the Object is active, but is shared across all requests active on an Object at once. Calling `accept()` on a WebSocket in an Object will incur duration charges for the entire time the WebSocket is connected. It is recommended to use the WebSocket Hibernation API to avoid incurring duration charges once all event handlers finish running. For a complete explanation, refer to [When does a Durable Object incur duration charges?](/durable-objects/platform/pricing/#when-does-a-durable-object-incur-duration-charges).
3636

3737
<sup>5</sup> Duration billing charges for the 128 MB of memory your Durable Object is allocated, regardless of actual usage. If your account creates many instances of a single Durable Object class, Durable Objects may run in the same isolate on the same physical machine and share the 128 MB of memory. These Durable Objects are still billed as if they are allocated a full 128 MB of memory.
3838

0 commit comments

Comments
 (0)