Did that and got an error that it can’t

Did that and got an error that it can’t find the service, anyone have a boilerplate?
1 Reply
Marak
Marak3mo ago
It should be relatively simple. You'll need to ensure that the binding is correct inside the service you are linking from using script_name property
"durable_objects": {
"bindings": [
{
"name": "MY_REMOTE_DO",
"class_name": "MyRemoteDoClass",
"script_name": "name-of-other-worker"
}
]
},
"durable_objects": {
"bindings": [
{
"name": "MY_REMOTE_DO",
"class_name": "MyRemoteDoClass",
"script_name": "name-of-other-worker"
}
]
},
So if you wish to link DO Foo originating from service A to service B, you will need to add a script_name in the binding entry inside service B It's well worth figuring out. We spent a few weeks using HTTP invocations instead of just linking the services via RPC. It should only be a few lines to update.

Did you find this page helpful?