Skip to content

Commit 63f135c

Browse files
update changes to also include workflows
1 parent 4a6b9db commit 63f135c

File tree

1 file changed

+9
-9
lines changed
  • src/content/docs/workers/development-testing

1 file changed

+9
-9
lines changed

src/content/docs/workers/development-testing/index.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -319,21 +319,21 @@ If `experimental_remote: true` is specified in Wrangler configuration for any of
319319
If you have use-cases for connecting to any of the remote resources above, please [open a feature request](https://github.com/cloudflare/workers-sdk/issues) in our [`workers-sdk` repository](https://github.com/cloudflare/workers-sdk).
320320
:::
321321

322-
#### Durable Objects Usage with Remote Resources
322+
#### Using remote resources with Durable Objects and Workflows
323323

324-
While Durable Object bindings cannot currently be remote, you can still use them during local development and have them interact with remote resources.
324+
While Durable Object and Workflow bindings cannot currently be remote, you can still use them during local development and have them interact with remote resources.
325325

326-
There are two main approaches for this:
326+
There are two recommended patterns for this:
327327

328-
- **Local Durable Objects with remote bindings:**
328+
- **Local Durable Objects/Workflows with remote bindings:**
329329

330-
When you enable remote mode for a binding in your [Wrangler configuration](/workers/wrangler/configuration), both your main Worker and any local Durable Objects can make use of it. This allows Durable Objects to interact with remote resources during local development.
330+
When you enable remote bindings in your [Wrangler configuration](/workers/wrangler/configuration), your locally running Durable Objects and Workflows can access those remote resources.
331+
This allows such bindings, although run locally to interact with remote resources during local development.
331332

332-
- **Connection to remote Durable Objects via remote Workers:**
333+
- **Accessing remote Durable Objects/Workflows via service bindings:**
333334

334-
Although remote bindings for Durable Objects are not currently supported, you can still interact with remote Durable Objects during local development by using remote service bindings.
335-
336-
To do this, deploy a Worker that has a binding to the target Durable Object. Then, configure a remote service binding in your local Worker to point to this deployed Worker. Your local Worker will be able to interact with the Durable Object via the remote service binding, effectively using the deployed Worker as a proxy interface to the Durable Object during local development.
335+
To interact with remote Durable Object or Workflow instances, deploy a Worker that defines those. Then, in your local Worker, configure a remote [service binding](/workers/runtime-apis/bindings/service-bindings/) pointing to the deployed Worker.
336+
Your local Worker will be then able to interact with the remote deployed Worker which in turn can communicate with the remote Durable Objects/Workflows. In such a manner you can create a communication channel via the remote service binding, effectively using the deployed Worker as a proxy interface to the remote bindings during local development.
337337

338338

339339
### Important Considerations

0 commit comments

Comments
 (0)