Skip to content

Build a message correlation to service request #61

Open
@tejash-jl

Description

@tejash-jl

When a downstream service is sending back the response to claim for the ASYNC step, instead of storing and sending the service request id it will be good to have a custom key that can correlate to the service request in execution.

Ex:
Workflow: Create Order (SYNC)-> Dispatch Order(ASYNC)
Since the dispatch order step is ASYNC, the downstream service need to respond back (via HTTP/KAFKA/AMQP). While sending back the response it needs to send the service request-id which initiated this step. In certain circumstance for domain constrain it cannot store the service request-id, in that scenario we can have a correlation key which can be used instead. In this scenario, we can have a correlation key as order_id. Clamp should map the response back to the service request based on the correlation key defined while creating the workflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions