Skip to content

Commit 51021ba

Browse files
committed
Improving definition for namespace
1 parent 5b679d5 commit 51021ba

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/content/glossary/durable-objects.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ entries:
99
general_definition: |-
1010
A container for a collection of Durable Objects that all share the same Durable Object (class) definition. A single namespace can have (tens of) millions of Durable Objects. Metrics are scoped per namespace.
1111
12+
- The namespace is defined in the Wrangler file under the `durable_objects.bindings.name` key.
13+
- You can create a single instance of theDurable Object class using [`idFromName`](/durable-objects/api/namespace/#idfromname), which creates a unique ID for the Durable Object.
14+
- You can then create a [stub](/durable-objects/api/stub/) for the Durable Object using the [`get`](/durable-objects/api/namespace/#get) method.
15+
16+
1217
- term: "Durable Object"
1318
general_definition: |-
1419
A Durable Object is an individual instance of a Durable Object class. A Durable Object is globally unique (referenced by ID), provides a global point of coordination for all methods/requests sent to it, and has private, persistent storage that is not shared with other Durable Objects within a namespace.

0 commit comments

Comments
 (0)