Skip to content

Commit 8681f0d

Browse files
committed
Durable Objects getByName API changelog
1 parent 03fc84f commit 8681f0d

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
title: New getByName() API to access Durable Objects
3+
description: Get a Durable Object client with a single line of code.
4+
products:
5+
- durable-objects
6+
- workers
7+
date: 2025-08-21
8+
---
9+
10+
Users can now create a client (a [Durable Object stub](/durable-objects/api/stub/)) to a Durable Object with a single line of code.
11+
12+
```js
13+
const stub = env.MY_DURABLE_OBJECT.getByName("foo");
14+
// Now the request is sent to the remote Durable Object.
15+
const rpcResponse = await stub.sayHello();
16+
```
17+
18+
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.
19+
20+
For more information, checkout:
21+
22+
- [API Documentation](/durable-objects/api/namespace/#getbyname)

0 commit comments

Comments
 (0)