Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build a message correlation to service request #61

Open
tejash-jl opened this issue Oct 17, 2020 · 0 comments
Open

Build a message correlation to service request #61

tejash-jl opened this issue Oct 17, 2020 · 0 comments

Comments

@tejash-jl
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant