-
Notifications
You must be signed in to change notification settings - Fork 10k
Durable Objects getByName API changelog #24664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
src/content/changelog/durable-objects/2025-08-21-durable-objects-get-by-name.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| --- | ||
| title: New getByName() API to access Durable Objects | ||
| description: Get a Durable Object client with a single line of code. | ||
| products: | ||
| - durable-objects | ||
| - workers | ||
| date: 2025-08-21 | ||
| --- | ||
|
|
||
| You can now create a client (a [Durable Object stub](/durable-objects/api/stub/)) to a Durable Object with a single line of code. | ||
|
|
||
| ```js | ||
| const stub = env.MY_DURABLE_OBJECT.getByName("foo"); | ||
| // Now the request is sent to the remote Durable Object. | ||
| const rpcResponse = await stub.sayHello(); | ||
| ``` | ||
vy-ton marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| Each Durable Object has a globally-unique name, which allows you to send requests to a specific object from anywhere in the world. Thus, a Durable Object can be used to coordinate between multiple clients who need to work together. You can have billions of Durable Objects, providing isolation between application tenants. | ||
|
|
||
| For more information, check out: | ||
|
|
||
| - [API Documentation](/durable-objects/api/namespace/#getbyname) | ||
vy-ton marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.