Functionality to pass request context in performRequestAsync and retrieve it from the listener's response

Currently, if I call performRequestAsync() method then I won't be able to pass request context to it to map request and response by retrieving the request context from the response provided by the listener.

There should be support for it so that it becomes feasible to map request and response and execute appropriate logic for the request and response.

Let's say for a request I call Elasticsearch asynchronously and on receiving the response I want to call another service which takes this response and original request context. For this, I need to know the request context at the time of response.

Request context could be anything which we want to pass on further like order_id, user_id, request_id etc.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.