Grokking Modern API Design Interview
Vote

0% completed

Async APIs for Long Running Work

A partner requests an account export. The server answers 202 Accepted.

Two hours later, the partner still cannot answer any of these questions. Did the export start? Is it still running? Did it fail? Is the result ready? Should the request be sent again? Can the work be cancelled?

202 Accepted is not a complete asynchronous contract. It says only that the request was accepted for processing. The response must name the resource through which the caller observes that processing.

**Slow work becomes a resource with identity, states, a result or named failure, cancellation behavior, and a

.....

.....

.....

Like the course? Get enrolled and start learning!