Async API Callback

In Asynchronous API callback option, the client application makes a call to API/Service and doesn’t wait for the response but registers a callback (endpoint address) to API/Service where API/Service sends the response later.

Request with callback
When to use
  • To process long running tasks in background.
  • When request processing logic is dependent on other task which cannot execute immediately.
  • When external service is responsible for executing of background task and external service not respond immediately
  • To process long running task.
Patterns to be considered
  • If required then ProcessLongTask() method shown in the above image might implement the event based communication with related patterns.
Please share this

Leave a Reply