We have a requirement where we need to route the message to an API and return the response back to the consumer immediately and later Publish the same message to a JMS Topic. The first API call should be independent of the second JMS Publish call and any failure in JMS Publishing should not affect the consumer.
I am using the "Return Template Response to Requester" with Send Response Immediately Checked . But Still i see the latency in returning the response. How ever the response is quicker if i disable the Assertions after the Return Template Response. Is there any way to handle these kind of scenario.
I have attached the screenshot of the policy