liveBook · Manning

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.

How 2 Manning books explain it

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

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.