You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/workers/development-testing/index.mdx
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -319,21 +319,21 @@ If `experimental_remote: true` is specified in Wrangler configuration for any of
319
319
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).
320
320
:::
321
321
322
-
#### Durable Objects Usage with Remote Resources
322
+
#### Using remote resources with Durable Objects and Workflows
323
323
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.
325
325
326
-
There are two main approaches for this:
326
+
There are two recommended patterns for this:
327
327
328
-
-**Local Durable Objects with remote bindings:**
328
+
-**Local Durable Objects/Workflows with remote bindings:**
329
329
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.
331
332
332
-
-**Connection to remote Durable Objects via remote Workers:**
333
+
-**Accessing remote Durable Objects/Workflows via service bindings:**
333
334
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.
0 commit comments