Long-running operations pattern
The long-running operations pattern is an API interaction pattern in which work continues asynchronously after the initial request and is completed through later status checks or notifications.
API Design Patterns
The long-running operations pattern is an API structure for representing work that continues after the initial request and exposing its status or result asynchronously.
- How it is used
- Structures asynchronous import and export work so consumers can track progress and receive a later result or error.
- How deep it goes
- Defines a generic operation interface and progress metadata, but stops short of detailing every operational mechanism.
- Examples
- Demonstrates exporting messages to hosted files or Amazon S3 with optional Gzip compression and encryption.
- What you can do after
- Apply it by modeling asynchronous API responses with operation identifiers, completion state, typed results, errors, and progress metadata.
Read how API Design Patterns explains long-running operations pattern →
The Design of Web APIs, Second Edition
A long operation is an API interaction pattern in which work that exceeds normal request latency is initiated asynchronously and completed through later status checking or notification.
- How it is used
- Handles API work that outlasts normal request latency by separating initiation from completion.
- How deep it goes
- Compares polling, callbacks, and execution modes, then details polling requests, responses, progress data, and timing guidance.
- Examples
- Uses video analysis and stock market simulations to illustrate work that exceeds normal request latency.
- What you can do after
- Build asynchronous API flows that return an operation reference and let consumers check status without waiting on an open request.
Read how The Design of Web APIs, Second Edition explains long-running operations pattern →
Related concepts
- import/export patternused by · The import/export pattern is a reusable API structure for transferring substantial amounts of data into or out of a service while accommodating destinations, transformations, and asynchronous processing.
- pollinguses · Polling is a technique in which a system repeatedly checks or queries a resource or condition at intervals to detect available information, events, or state changes.
- patternkind of · A pattern is a reusable approach to addressing a recurring problem in a particular context.
- callbackused by · A callback is a function or other callable supplied or registered with a component for invocation at a specified event, condition, or point in execution.
- workflow jobuses · A workflow job is an executable unit of work that groups tasks or steps with the logic and requirements needed to run them.
Questions about long-running operations pattern
What is long-running operations pattern?
The long-running operations pattern is an API interaction pattern in which work continues asynchronously after the initial request and is completed through later status checks or notifications.
Which Manning books explain long-running operations pattern?
API Design Patterns and The Design of Web APIs, Second Edition.
What is the difference between long-running operations pattern and one-call design?
The long-running operations pattern is an API interaction pattern in which work continues asynchronously after the initial request and is completed through later status checks or notifications. An API interaction pattern that attempts to initiate and complete an operation, including its result retrieval, in a single call.
What is long-running operations pattern a kind of?
Long-running operations pattern is a kind of pattern. A pattern is a reusable approach to addressing a recurring problem in a particular context.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

