System Design Space
Knowledge graphSettings

Updated: June 6, 2026 at 7:02 PM

API Design Patterns (short summary)

hard

API design patterns matter most where generic REST advice is no longer enough and the contract has to survive for years.

In real design work, the chapter shows how resource modeling, pagination, filtering, errors, and idempotency become platform rules that keep the API surface coherent across services.

In interviews and engineering discussions, it frames service growth through breaking-change risk, contract ownership, and shared design rules.

Practical value of this chapter

Design in practice

Apply resource-oriented patterns to keep API surface coherent across services.

Decision quality

Standardize pagination, filtering, errors, and idempotency as platform-level rules.

Interview articulation

Explain API choices through consumer experience and long-term maintainability.

Failure framing

Reduce the risk of breaking changes as the service portfolio grows.

Primary source

Book Cube: API Design Patterns

The original post used as the basis for this chapter.

Open post

API Design Patterns

Authors: JJ Geewax
Publisher: Manning Publications, 2021
Length: 480 pages

JJ Geewax's book on resource-oriented API design: standard methods, idempotency, contract evolution, compatibility, and API governance.

Original

This chapter treats resource-oriented API design, standard API methods, idempotency, contract compatibility, and API deprecation as a language for long-lived contracts, not as a loose set of REST tips.

Why this book matters for API governance

The book complements API Governance at Scale and AIP practices: instead of abstract guidance, it provides repeatable patterns you can turn into an operating standards system.

01

Author and context

JJ Geewax contributed to API governance practices at Google, helped shape AIP, and co-founded aip.dev.

02

Book focus

The book explains resource-oriented API design in a structured way: entities, actions, errors, and contract evolution.

03

Practical value

Useful for platform and product teams that want to reduce API sprawl and make design rules enforceable.

What is inside the book: content map

1Foundation: API as product and contract

The book starts with contract discipline rather than HTTP details: why teams need a shared resource language and how to treat APIs as long-lived interfaces.

  • Contract as product: consumers, API boundaries, and product-level decisions.
  • Resource modeling instead of designing every API endpoint as a one-off exception.
  • Consistent URI patterns and naming rules as a way to reduce cognitive load.

2Operations and behavior

The next part explains how to keep operations predictable: what should be standard by default and when custom actions are justified.

  • Standard API methods: List/Get/Create/Update/Delete and consistent semantics.
  • Long-running operations, asynchronous work, and explicit operation status.
  • Idempotency, retry safety, and side-effect control.

3API evolution and compatibility

A central section focuses on changing contracts without breaking clients: field evolution, compatibility rules, and migration discipline.

  • Backward-compatible change as the default versioning strategy.
  • API deprecation: announce, measure usage, and retire old fields safely.
  • Breaking-change criteria and compatibility matrices without version chaos.

4API governance and organizational scaling

Final chapters move from team-level patterns to organization-level execution via standards, reviews, and automation.

  • Where style guides end and API governance begins.
  • Policy checks as code: what to validate automatically in CI/CD before publishing a contract.
  • API owners, design reviews, and API catalogs as an organizational control loop.

Core ideas from the book

A unified resource model beats convenient one-off decisions

Locally optimized APIs quickly become a fragmented contract landscape. A resource model keeps behavior predictable across domains and teams.

Practical application: Define consistent collection/resource naming, identifier types, and parent-child hierarchy rules.

Method semantics must stay stable across the platform

If Create updates-or-inserts in one service and performs a strict insert in another, clients become brittle and expensive to maintain.

Practical application: Set platform-level rules for List/Get/Create/Update/Delete and handle deviations through design review.

Idempotency and standardized errors improve client experience

Retries, timeouts, and duplicate calls are unavoidable. Without consistent machine-readable errors, client retry logic degrades quickly.

Practical application: Adopt request identifiers and idempotency keys for critical writes, with a shared structured error format.

API evolution must be a managed process

Most API problems appear on the second and tenth change, not on release day. Teams need migration rules and lifecycle discipline.

Practical application: Introduce change proposals, compatibility matrices, and explicit deprecation windows for API consumers.

API governance scales only through automation

Manual review alone becomes a bottleneck. The book’s patterns can be translated into enforceable policy checks.

Practical application: Run contract linting, breaking-change detection, and mandatory policy gates for public APIs in CI.

API ownership and catalog hygiene are part of API design

Without clear owners and catalog visibility, even well-designed contracts degrade after team rotations.

Practical application: Maintain an API catalog with owner, maturity status, changelog, and links to specs and decision records.

Frequently reused patterns

Standard methods first

Problem: Each team invents its own verbs and lifecycle behavior instead of starting from standard API methods.

Why it matters: Reduces variability, simplifies SDKs, and speeds up client integration.

Idempotent write operations

Problem: Retries after network failures create duplicates or inconsistent state.

Why it matters: Enables safe retries and predictable behavior under partial failure.

Long-running operation contract

Problem: Heavy operations get stuck in synchronous flows and degrade API stability for consumers.

Why it matters: Separates operation start from result retrieval through explicit status semantics.

Governed deprecation lifecycle

Problem: Old fields live forever while migrations happen without a clear owner or timeline.

Why it matters: Lets teams retire technical debt safely through managed API deprecation.

Whitepaper

API Governance at Scale

Context on API decision-making and governance at scale.

Open

How to implement these ideas in a real organization

Weeks 1-2: baseline standards

Create a minimal style guide for resource modeling, naming rules, required error shape, and idempotency.

Weeks 3-4: API review workflow

Introduce lightweight design review for new and changed contracts, and capture contentious decisions in ADRs.

Weeks 5-8: automation

Add compatibility checks and contract rules to CI/CD so policies are enforced by default rather than memory.

Weeks 9-10: catalog and ownership

Launch an API catalog with clear owners, maturity status, changelog, and team/domain mapping.

Weeks 11-12: API governance metrics

Track breaking-change frequency, consumer migration speed, and first-pass policy gate success.

What to do immediately after reading

  • Audit 2-3 critical APIs for consistency in methods, errors, and idempotency behavior.
  • Pick 5-7 mandatory rules that can be validated automatically, not only in manual reviews.
  • Align teams on deprecation notice format and migration calendars.
  • Assign explicit API owners and publish a contract-change agreement in the catalog.

Who should read it first

  • API Guild members, platform engineers, and architects building organization-wide standards.
  • Microservice team leads with a growing set of internal and external APIs.
  • Engineers preparing for senior/staff roles with an architecture quality focus.

Related chapters

Where to find the book

Enable tracking in Settings