liveBook · Manning

Idempotency

Idempotency is the property of an operation whereby repeating it has the same effective result or externally observable effect as performing it once.

How 17 Manning books explain it

Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform

Idempotency is the property that applying an infrastructure operation repeatedly produces the same resulting state as applying it once.

How it is used
Guides infrastructure-as-code automation toward safe repeated execution, stable operations, and controlled changes.
How deep it goes
Explains conditional checks, CRUD testing, dependency handling, migrations, and refactoring safeguards without detailing migration-specific implementations.
Examples
Uses switch configuration, server creation, firewall dependencies, database migration, unit tests, Terraform dry runs, and IAM refactoring.
What you can do after
Apply it via conditional automation, dependency-aware modules, unit tests, dry runs, and drift checks to preserve infrastructure state.

Read how Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform explains idempotency →

Building Web APIs with ASP.NET Core

Idempotency is the property that repeating an operation produces the same intended effect as performing it once.

How it is used
Guides HTTP method selection for CSV seeding, board-game updates, and deletion in an ASP.NET Core API.
How deep it goes
Defines repeated-request effects and works through three method choices, including the database conditions that make each operation idempotent or not.
Examples
Uses a CSV seed action, a timestamped board-game update, and a repeatable DELETE request tested in SwaggerUI.
What you can do after
Build it from scratch by choosing PUT, POST, or DELETE according to an action’s repeated effect and checking repeated deletion in SwaggerUI.

Read how Building Web APIs with ASP.NET Core explains idempotency →

Amazon Web Services in Action, Third Edition: An in-depth guide to AWS

An idempotent operation produces the same effective result when performed multiple times as when performed once.

How it is used
Makes retries and repeated SQS message delivery safer when building fault-tolerant applications.
How deep it goes
Defines the property and works through duplicate-key handling in a multistep blog-post workflow, without detailing every step’s implementation.
Examples
Uses duplicate blog posts, repeatable S3 image uploads, and repeated emails to distinguish safe retries from unwanted side effects.
What you can do after
Build it from scratch by assigning a client-generated UUID and treating an existing database primary key as a completed insert.

Read how Amazon Web Services in Action, Third Edition: An in-depth guide to AWS explains idempotency →

API Design Patterns

An idempotent method is an API operation whose repeated execution has the same effect as executing it once.

How it is used
Guides predictable behavior for standard resource-oriented API methods and their repeated requests.
How deep it goes
Explains repeated-request semantics, side effects, declarative versus imperative designs, and validation trade-offs without implementation internals.
Examples
Uses email creation, SMTP delivery, request counters, ChatRoom deletion, undelete requests, and validation-only queries.
What you can do after
Evaluate repeated-request behavior, identify harmful side effects, and choose declarative or imperative semantics for API methods.

Read how API Design Patterns explains idempotency →

Data Pipelines with Apache Airflow, Second Edition

An idempotent task produces the same effective result when rerun with the same inputs and state.

How it is used
Makes Airflow tasks safe to retry, rerun, and backfill without duplicating output or other unwanted effects.
How deep it goes
Defines repeatable results and works through file overwrites and transactional database replacement; defers the details of data transformation.
Examples
Contrasts daily event-file overwrites with duplicate-producing appends, then replaces PostgreSQL rows for an execution-date batch.
What you can do after
Build it from scratch by choosing repeatable file writes or transactional database replacement and checking side effects before rerunning tasks.

Read how Data Pipelines with Apache Airflow, Second Edition explains idempotency →

ScyllaDB in Action

Idempotency is the property of an operation whereby repeating it produces the same resulting state as performing it once.

How it is used
Uses idempotency to make collection updates safer to retry after client timeouts.
How deep it goes
Explains repeated set additions and removals, contrasts list mutation risks, and stops short of broader distributed-systems treatment.
Examples
Demonstrates duplicate insertion, repeated set updates, absent-value removal, list mutation, and image-gallery modeling.
What you can do after
Apply idempotent CQL set updates and choose sets over lists when retry safety and uniqueness matter.

Read how ScyllaDB in Action explains idempotency →

Apache Kafka in Action

An idempotent write operation can be retried or applied repeatedly without producing effects beyond those of a single application.

How it is used
Prevents retries from duplicating Kafka records and supports repeated database writes during consumer processing.
How deep it goes
Explains sequence IDs, leader responses, producer settings, and database alternatives without detailing their underlying implementation.
Examples
Shows a Kafka console-producer command, duplicate-detection diagram, and PostgreSQL insert using `ON CONFLICT DO NOTHING`.
What you can do after
Operate/configure it with Kafka producer properties and apply it to repeatable PostgreSQL inserts.

Read how Apache Kafka in Action explains idempotency →

MongoDB 8.0 in Action, Third Edition

An idempotent operation produces the same resulting state when applied repeatedly as when applied once.

How it is used
Supports reliable asynchronous replication by making oplog operations safe to apply repeatedly.
How deep it goes
Explains idempotency through oplog internals, replay behavior, write filtering, and concrete delete and insert records.
Examples
Uses sample_mflix.sessions delete and insert oplog documents, including identifiers, timestamps, namespaces, and payloads.
What you can do after
Evaluate how MongoDB replays writes consistently across replica-set members.

Read how MongoDB 8.0 in Action, Third Edition explains idempotency →

Kafka for Architects

Idempotency is the property that repeating an operation produces the same effective result as performing it once.

How it is used
Manages duplicate and out-of-order events when event-driven systems replace fragile chains of synchronous calls.
How deep it goes
Explains producer identifiers, sequence numbers, retries, ordering, and configuration, while stopping short of consumer implementation.
Examples
Uses lost acknowledgments, retried batches, partition ordering, and duplicate consumer processing as concrete failure cases.
What you can do after
Operate/configure Kafka producer idempotence with sequence-aware retries, bounded in-flight requests, and replicated acknowledgments.

Read how Kafka for Architects explains idempotency →

Think Distributed Systems

Idempotence is the property of an operation that applying it multiple times has the same effect as applying it once.

How it is used
Makes repeated message processing safe when failures, delays, duplication, or retries prevent reliable one-time execution.
How deep it goes
Defines the algebraic property, contrasts inherent and application-built cases, and outlines key-based transactional deduplication without offering a universal solution.
Examples
Uses write-once registers, credit-card charging, airline-ticket checkout, idempotence keys, and transactional request recording.
What you can do after
Apply it via idempotence keys, receiver-side deduplication, and transactional recording when designing retryable distributed operations.

Read how Think Distributed Systems explains idempotency →

Architecting an Apache Iceberg Lakehouse

The property that repeating an operation produces the same effective result as performing it once.

How it is used
Makes ingestion, maintenance, and orchestration workflows safe to retry and operate autonomously.
How deep it goes
Explains retry semantics and execution boundaries, but stops short of implementation recipes or formal guarantees.
Examples
Uses retried compaction jobs, mutable batch inputs, and tracked micro-batch offsets, state, and commit boundaries.
What you can do after
Design retry-safe ingestion and orchestration workflows that limit duplication, corruption, and recovery ambiguity.

Read how Architecting an Apache Iceberg Lakehouse explains idempotency →

Refactoring to Rust

An idempotent system produces the same externally relevant result when the same task is performed more than once.

How it is used
Prevents horizontally scaled workers from overwriting shared outputs when repeated tasks run concurrently.
How deep it goes
Distinguishes mathematical idempotence from service-level output safety, but stops short of specifying a full coordination protocol.
Examples
Uses repeated Mandelbrot renders that overwrite single.png, then proposes unique IDs or timestamps for filenames.
What you can do after
Operate/configure concurrent services with distinct task outputs that remain safe when processes repeat work.

Read how Refactoring to Rust explains idempotency →

100 Java Mistakes and How to Avoid Them

An idempotent operation is an operation whose repeated application has the same resulting effect as applying it once, even though it may produce a side effect.

How it is used
Diagnoses loops whose bodies, conditions, or updates fail to make progress toward termination.
How deep it goes
Explains repeated effects, loop outcomes, redundant-loop replacement, and a production-style infinite loop.
Examples
Uses assignments, arithmetic updates, a unique-ID generator, and string-scanning tests to expose repeated-state failures.
What you can do after
Diagnose infinite or redundant loops by checking whether each iteration changes the condition’s relevant state.

Read how 100 Java Mistakes and How to Avoid Them explains idempotency →

DuckDB in Action

Idempotence is the property that repeating an operation produces the same effective result as performing it once.

How it is used
Protects repeatable SQL inserts and DuckDB extension setup from avoidable duplicate-operation errors.
How deep it goes
Explains duplicate-key failure, conflict suppression, and conflict updates, but stops short of general workflow design.
Examples
Demonstrates duplicate price inserts, DO NOTHING, business-key updates, and repeated INSTALL and LOAD commands.
What you can do after
Apply it via DuckDB SQL by selecting conflict behavior that either ignores duplicates or updates existing business-keyed rows.

Read how DuckDB in Action explains idempotency →

Latency

Idempotency is the property that repeating an operation produces the same externally relevant result as performing it once.

How it is used
Supports safe retries, asynchronous recovery, synchronization, and request hedging when duplicate execution is possible.
How deep it goes
Defines repeatable outcomes and gives implementation patterns, but stops short of specifying a universal idempotency protocol.
Examples
Uses profile reads, payment processing, duplicate message delivery, and synchronized database updates as concrete cases.
What you can do after
Design retryable operations that preserve results under duplicate execution and select identifiers or conditional updates for synchronization.

Read how Latency explains idempotency →

Acing the Certified Kubernetes Administrator Exam, Second Edition

The property that repeating the same operation produces no further change after the first successful application.

How it is used
Uses Kubernetes API calls to keep resource state unchanged across repeated applications.
How deep it goes
Defines repeated-call behavior and contrasts create, apply, and replace, but stops short of API internals.
Examples
Contrasts kubectl create, apply, and replace, including replacement-triggered Deployment rollouts.
What you can do after
Operate/configure Kubernetes resources by repeating an API call while expecting stable state.

Read how Acing the Certified Kubernetes Administrator Exam, Second Edition explains idempotency →

Automating API Delivery

Idempotency is the property of an operation whose repeated execution produces the same resulting server state as a single execution.

How it is used
Uses idempotency to review whether API retries can safely avoid duplicate server-side state changes.
How deep it goes
Defines repeated execution, distinguishes HTTP verbs, and prescribes idempotency keys without detailing their implementation.
Examples
Uses a payment endpoint to illustrate why POST may require an idempotency key.
What you can do after
Evaluate API operations and identify when an idempotency key is required for safe duplicate-request handling.

Read how Automating API Delivery explains idempotency →

Related concepts

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.