Asynchronous messaging
HTTP/REST provides for a request response mechanism to execute the service. The client waits (or rather, blocks) till the processing is complete and uses the result provided at the end of the service. Therefore, the processing is said to be synchronous.
In asynchronous processing, the client does not wait for the response. Asynchronous processing can be used in two scenarios, such as fire-and-forget and request/response.
In fire and forget, the client sends a command or request to the downstream service, and then does not require a response. It is used typically in pipeline processing architecture, where one service does enrichment and processing of the request and sends it to the other service, which sends to a third ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access