Skip to content

Commit 79540a6

Browse files
Apply suggestions from code review
Co-authored-by: Lambros Petrou <[email protected]>
1 parent e26cfa0 commit 79540a6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/content/docs/durable-objects/concepts/durable-object-lifecycle.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ A Durable Object can be in one of the following states at any moment:
4040
| Idle in-memory non-hibernateable | The Durable Object waits for the next incoming request/event, but does not satisfy the criteria for hibernation. |
4141
| Idle in-memory hibernateable | The Durable Object waits for the next incoming request/event and satisfies the criteria for hibernation. It is up to the runtime to decide when to hibernate the Durable Object. Currently, it is after 10 seconds of inactivity while in this state. |
4242
| Hibernated | The Durable Object is removed from memory. |
43-
| Evicted | The Durable Object is completely removed from the host process. Might need a cold start. |
43+
| Inactive | The Durable Object is completely removed from the host process. Might need a cold start. This is the initial state of all Durable Objects. |
4444

4545
This is how a Durable Object transitions among these states (each state is in a rounded rectangle).
4646

@@ -68,7 +68,9 @@ If any of the above conditions are false, the Durable Object remains in-memory,
6868

6969
In case of an incoming request or event while in the hibernated state, the `constructor()` will run again, and the corresponding function invoked will run.
7070

71-
Once in hibernated state, or in the idle in-memory non-hibernateable state: after 70-140 seconds of inactivity (no incoming requests or events), the Durable Object will be evicted entirely from memory and potentially from the Cloudflare host.
71+
While in the idle in-memory non-hibernateable state, after 70-140 seconds of inactivity (no incoming requests or events), the Durable Object will be evicted entirely from memory and potentially from the Cloudflare host and transition to the inactive state.
72+
73+
Objects in the hibernated state keep their Websocket clients connected, and the runtime decides it will ever move the object to a different host, thus restarting the lifecycle.
7274

7375
The next incoming request or event starts the cycle again.
7476

0 commit comments

Comments
 (0)