Skip to content

Asynchronous Operations

Asynchronous operations are the practice of processing requests in the background, rather than blocking the response to the client until the operation is complete.

If client application:

  • needs one big result at the end
  • nothing meaningful can be provided before the entire operation finishes

Examples of such operations can be:

  • running a big report requiring our system to talk to many databases
  • big data analysis that scans a lot of records/log files
  • compression of network model data

The pattern used for these situtations is an Asynchrononous API A client application receives a response immediately without having to wait for the final result.

That response includes some kind of identifier that allows:

  • to track the progress and status of the operation
  • receive the final result