Skip to content

Add workflowId to the http header for workflow request #721

@xwduan

Description

@xwduan

Is your feature request related to a problem? Please describe.

Include workflowId in the header will enable the api gateway/frontend route the workflow request to correct active cluster without having to decode/open the request payload

Describe the solution you'd like

Workflow requests are requests for a specific workflow, i.e. StartWorkflow, RespondWorkflow/Activity, SignalWorkflow etc.

For actions initiated from the SDK (e.g., StartWorkflow, SignalWorkflow, TerminateWorkflow), the SDK needs to add the workflowId to the request header.

For action-after-poll requests (i.e., RespondWorkflow/ActivityTask), SDK only needs to attach the header from the matching poll response to the following API calls.

Additional context

server will add header at the poll response

Per-SDK Tickets

  • Go -
  • Java -
  • Core -
  • TypeScript -
  • Python -
  • .NET -
  • Ruby -
  • PHP -
  • Temporal CLI -

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions