Skip to content

Add support for the local RPC endpoint #597

@davidmrdavid

Description

@davidmrdavid

The Durable Extension recently introduced a local rpc endpoint feature that enables Durable SDKs to communicate directly to the Durable Functions API, whereas before this communicate would occur via HTTP calls. Without this feature, we cannot integrate Durable Functions for PowerShell with EasyAuth, as framework-internal HTTP calls will fail due to authentication requirements.

Implementation Requirements
Thankfully, it appears that supporting this feature is relatively simple: it simply means that we call a different URI in places where we used to make HTTP requests. Also, it appears that this feature is only used for durable clients bindings, which potentially limits the scope of this refactor.

Judging by its usage in the JavaScript SDK, I expect the following APIs need to be revised:

  • purgeInstanceHistory
  • raiseEvent
  • startNew
  • terminate
  • getStatusBy

I've omitted the entity APIs that make use of this feature as I believe PowerShell doesn't support those yet. If needed, let me know and I can list those JS examples as well 😄

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions