Skip to content
Tagged articles

Idempotency

417 articles · Page 3 of 5
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 24, 2024 · Backend Development

Preventing Duplicate Order Submissions with Token Mechanism and Redis in Spring Boot

This article explains how to prevent duplicate order submissions in e‑commerce systems by using a token mechanism and Redis‑based distributed locks within a Spring Boot backend, detailing the workflow, code implementation, and best‑practice optimizations for idempotent processing.

IdempotencySpring Bootbackend development
0 likes · 11 min read
Preventing Duplicate Order Submissions with Token Mechanism and Redis in Spring Boot
Architecture Digest
Architecture Digest
Nov 19, 2024 · Backend Development

Implementing Idempotency in Spring Boot Using Redis and Custom Annotations

This article explains the concept of idempotency, identifies which HTTP operations are naturally idempotent, describes why idempotency is needed in scenarios like timeout retries, async callbacks and message queues, and provides a complete Spring Boot implementation using a custom annotation, Redis storage, AOP interception, token generation and example controllers.

BackendIdempotencyredis
0 likes · 8 min read
Implementing Idempotency in Spring Boot Using Redis and Custom Annotations
IT Services Circle
IT Services Circle
Nov 15, 2024 · Backend Development

Best Practices for Designing Secure and Robust API Controller Interfaces

This guide outlines comprehensive techniques for building safe, repeatable, and maintainable API controller interfaces, covering signature generation, encryption, IP whitelisting, rate limiting, parameter validation, unified responses, exception handling, logging, idempotency, request size limits, stress testing, asynchronous processing, data masking, and complete documentation.

APIIdempotencyLogging
0 likes · 15 min read
Best Practices for Designing Secure and Robust API Controller Interfaces
Programmer XiaoFu
Programmer XiaoFu
Nov 14, 2024 · Backend Development

Designing Elegant API Controllers: Security, Idempotency, and Best Practices

This guide walks through building robust API controller interfaces by covering request signing, RSA encryption, IP whitelisting, rate limiting, parameter validation, unified response formats, exception handling, logging, idempotent design, request size limits, stress testing, asynchronous processing, data masking, and comprehensive documentation.

API designBackendIdempotency
0 likes · 15 min read
Designing Elegant API Controllers: Security, Idempotency, and Best Practices
Architecture Digest
Architecture Digest
Oct 15, 2024 · Backend Development

Preventing Order Loss and Duplicate Submissions in Payment Systems

This article explains the typical order‑submission and payment workflow, identifies external and internal order‑loss issues, and provides practical backend strategies such as intermediate payment states, timeout queries, retry mechanisms, idempotent handling, and Redis‑based duplicate‑submission prevention.

Idempotencyorder managementpayment
0 likes · 5 min read
Preventing Order Loss and Duplicate Submissions in Payment Systems
Su San Talks Tech
Su San Talks Tech
Oct 5, 2024 · Backend Development

Mastering Idempotency: Design Patterns and Code Solutions for Reliable APIs

Idempotency ensures that repeated API calls produce the same result without side effects, and this guide explains its principles, common scenarios like payments and messaging, root causes of idempotency failures, and multiple implementation strategies—including unique constraints, optimistic and pessimistic locks, distributed locks, token mechanisms, state machines, and deduplication tables—with practical code examples.

API designBackendDistributed Systems
0 likes · 14 min read
Mastering Idempotency: Design Patterns and Code Solutions for Reliable APIs
Architect
Architect
Sep 23, 2024 · Backend Development

Ensuring Idempotency in Order Services: Preventing Duplicate Orders and Solving the ABA Problem

This article explains how to achieve idempotent order creation and updates by using unique request identifiers, database primary‑key constraints, Redis flags, and optimistic locking with version columns, thereby preventing duplicate orders and solving the ABA problem in distributed backend systems.

ABA problemIdempotencyOptimistic Locking
0 likes · 11 min read
Ensuring Idempotency in Order Services: Preventing Duplicate Orders and Solving the ABA Problem
Java Backend Full-Stack
Java Backend Full-Stack
Sep 21, 2024 · Backend Development

How a Full‑Stack Charging‑Station Project Can Boost Your Interview Portfolio

This article walks through a zero‑to‑one charging‑station system built with Spring Cloud microservices, Vue front‑end, and a suite of enterprise features such as distributed locks, idempotency, multi‑level caching, and custom starters, providing concrete design documents and module breakdowns to help candidates showcase real project experience in interviews.

Charging StationDesign PatternsIdempotency
0 likes · 9 min read
How a Full‑Stack Charging‑Station Project Can Boost Your Interview Portfolio
Architect
Architect
Sep 20, 2024 · Backend Development

18 Essential API Design Rules Every Backend Engineer Should Follow

This article presents a comprehensive checklist of 18 practical API design rules—including signature, encryption, IP whitelisting, rate limiting, validation, unified responses, exception handling, logging, idempotency, pagination, stress testing, async processing, data masking, documentation, request methods, headers, batch operations, and single‑responsibility principles—to help developers build secure, maintainable, and high‑performance services.

API designBackendIdempotency
0 likes · 18 min read
18 Essential API Design Rules Every Backend Engineer Should Follow
Bilibili Tech
Bilibili Tech
Sep 10, 2024 · Backend Development

Design and Implementation of a Scalable Reward System for Bilibili Live Platform

The paper presents a scalable, message‑queue‑driven reward system for Bilibili Live that unifies diverse reward types and distribution scenarios through standardized APIs, layered fast/slow queues, idempotent processing, multi‑stage retries, and comprehensive monitoring to ensure low latency, no over‑issuance, and reliable delivery.

BilibiliHigh AvailabilityIdempotency
0 likes · 16 min read
Design and Implementation of a Scalable Reward System for Bilibili Live Platform
Su San Talks Tech
Su San Talks Tech
Aug 11, 2024 · Backend Development

Mastering Idempotency: Design Patterns and Code Examples for Reliable APIs

This article explains the concept of idempotency, outlines scenarios where it is essential, analyzes common causes of idempotency issues, and presents multiple practical solutions—including unique constraints, optimistic and pessimistic locks, distributed locks, token mechanisms, state machines, deduplication tables, and global request IDs—accompanied by concrete code examples.

Distributed SystemsIdempotencyOptimistic Lock
0 likes · 14 min read
Mastering Idempotency: Design Patterns and Code Examples for Reliable APIs
Software Development Quality
Software Development Quality
Aug 9, 2024 · Fundamentals

Mastering Idempotency Testing: Scenarios, Detection, and Real-World Test Cases

This article explains idempotency testing, outlines common scenarios such as network requests and financial transactions, describes methods to detect duplicate requests, provides comprehensive coverage strategies, offers practical test‑case examples, lists relevant testing tools, and includes a JUnit code sample for implementation.

IdempotencyJUnitsoftware testing
0 likes · 11 min read
Mastering Idempotency Testing: Scenarios, Detection, and Real-World Test Cases
Lobster Programming
Lobster Programming
Aug 2, 2024 · Backend Development

Ensuring Idempotent Consumption in MQ: Strategies and Code Examples

To prevent duplicate processing when integrating message queues for rate limiting and decoupling, this article explains idempotency concepts, common pitfalls, and five practical solutions—including query checks, pessimistic and optimistic locking, deduplication tables, and non‑transactional approaches—complete with code snippets and diagrams.

IdempotencyMessage Queuedatabase locking
0 likes · 11 min read
Ensuring Idempotent Consumption in MQ: Strategies and Code Examples
Architect
Architect
Aug 1, 2024 · Backend Development

How a Structured Refactor Cut Game Service MQ Calls by Up to 80%

Facing a 600k/min rate‑limit alert on a game’s product‑update MQ, the team analyzed scattered consumers, designed a new Flyweight‑Strategy architecture with Spring AOP idempotency, executed a three‑phase migration, and achieved a 50‑80% reduction in downstream interface calls.

Backend ArchitectureIdempotencyMQ Refactor
0 likes · 12 min read
How a Structured Refactor Cut Game Service MQ Calls by Up to 80%
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 1, 2024 · Backend Development

Backend API Design Best Practices

This article outlines comprehensive backend API design guidelines, covering parameter validation, extensibility, idempotency, logging, thread‑pool isolation, third‑party error handling, asynchronous processing, parallel queries, rate limiting, security, lock granularity, and strategies to avoid long‑running transactions.

API designBackendIdempotency
0 likes · 11 min read
Backend API Design Best Practices
DeWu Technology
DeWu Technology
Jul 24, 2024 · Backend Development

Mastering Unique Identifiers and Distributed Locks: From UUIDs to CAS

This article explores how various unique identifier schemes—random UUIDs, sequential numbers, hierarchical paths, and distributed ID generators—are applied across programming languages, file systems, databases, and networks, and explains when and how to enforce uniqueness using pre‑validation, database constraints, or distributed locks such as Redis and Zookeeper, while also linking these mechanisms to CAS‑based concurrency control.

CASDatabase IndexingDistributed Systems
0 likes · 23 min read
Mastering Unique Identifiers and Distributed Locks: From UUIDs to CAS
DevOps
DevOps
Jun 26, 2024 · Backend Development

Understanding Distributed Transaction Challenges and Practical Solutions in Microservices

This article analyzes why distributed transactions are difficult in large‑scale microservice architectures, explains the importance of unique transaction IDs, idempotency, and timeout handling, and presents pragmatic approaches such as local logging, undo‑log tables, NoSQL ID arrays, and selective locking to achieve reliable consistency.

IdempotencyTransaction IDdatabase
0 likes · 15 min read
Understanding Distributed Transaction Challenges and Practical Solutions in Microservices
Tencent Cloud Developer
Tencent Cloud Developer
Jun 25, 2024 · Backend Development

Understanding the Challenges of Distributed Transactions in Microservices

The article explains that distributed transactions in micro‑service architectures are difficult because they must guarantee atomicity across heterogeneous services, handle time‑outs, and reconcile results using unique transaction IDs, undo‑logs, or NoSQL strategies, while balancing locking, availability, and consistency trade‑offs.

IdempotencyTransaction IDdistributed transactions
0 likes · 18 min read
Understanding the Challenges of Distributed Transactions in Microservices
Top Architect
Top Architect
Jun 22, 2024 · Backend Development

Understanding Idempotency and Its Implementation with Custom Annotations in Java

This article explains the concept of idempotency, identifies which HTTP requests are naturally idempotent, discusses why idempotency is essential for retries, async callbacks, and message queues, and demonstrates a practical Java implementation using custom annotations, AOP, and Redis for token management.

AOPAnnotationsIdempotency
0 likes · 11 min read
Understanding Idempotency and Its Implementation with Custom Annotations in Java
Architect's Guide
Architect's Guide
Jun 1, 2024 · Backend Development

Implementing API Idempotency with Spring Boot, Redis, and Custom Annotations

This article explains how to achieve reliable API idempotency in Spring Boot applications by using Redis for token storage, defining a custom @AutoIdempotent annotation, implementing token generation and validation services, configuring an interceptor, and providing test cases to demonstrate the workflow.

IdempotencyInterceptorJava
0 likes · 11 min read
Implementing API Idempotency with Spring Boot, Redis, and Custom Annotations
Su San Talks Tech
Su San Talks Tech
May 24, 2024 · Backend Development

18 Must‑Know API Design Rules for Secure and Scalable Backends

This article presents 18 essential API design rules covering signature verification, encryption, IP whitelisting, rate limiting, parameter validation, unified responses and error handling, logging, idempotency, request size limits, stress testing, asynchronous processing, data masking, comprehensive documentation, proper HTTP methods, header usage, batch operations, and single‑responsibility principles.

API designIdempotencyrate limiting
0 likes · 17 min read
18 Must‑Know API Design Rules for Secure and Scalable Backends
Java Tech Enthusiast
Java Tech Enthusiast
Apr 30, 2024 · Backend Development

How to Prevent Message Loss and Duplication in Message Queues

This article examines why messages can be lost or duplicated in typical queue systems, explains the failure points from producer to broker to consumer, and provides practical techniques such as synchronous flushing, broker clustering, database unique constraints, and Redis deduplication to achieve reliable, idempotent processing.

BackendIdempotencyKafka
0 likes · 7 min read
How to Prevent Message Loss and Duplication in Message Queues
Selected Java Interview Questions
Selected Java Interview Questions
Mar 31, 2024 · Backend Development

Understanding API Idempotency: Concepts, Necessity, and Practical Implementation Strategies

This article uses a relatable story to illustrate a real‑world incident caused by missing API idempotency, explains what idempotency is, why it is essential, which interfaces require it, and presents practical backend and frontend solutions such as unique indexes, optimistic/pessimistic locks, token mechanisms, and distributed locks.

APIBackendIdempotency
0 likes · 13 min read
Understanding API Idempotency: Concepts, Necessity, and Practical Implementation Strategies
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Feb 24, 2024 · Backend Development

Comprehensive Distributed Architecture Topics: Load Balancing, Message Queues, Microservices, Redis Cache, Idempotency, Distributed ID, SSO, Database Sharding and More

This article presents a systematic overview of essential distributed architecture concepts—including load‑balancing principles, message‑queue mechanisms, microservice design, Redis cache challenges, idempotency solutions, distributed ID generation, single sign‑on, and database sharding—offering practical insights for building high‑performance, scalable backend systems.

IdempotencyLoad Balancing
0 likes · 9 min read
Comprehensive Distributed Architecture Topics: Load Balancing, Message Queues, Microservices, Redis Cache, Idempotency, Distributed ID, SSO, Database Sharding and More
Java Captain
Java Captain
Feb 4, 2024 · Backend Development

Understanding and Implementing Idempotency in Backend Services with Java and Redis

This article explains the concept of idempotency, identifies which API requests are naturally idempotent, discusses why idempotency is essential for retries, asynchronous callbacks, and message queues, and provides a step‑by‑step Java Spring implementation using custom annotations, AOP, and Redis for token management.

AOPBackendIdempotency
0 likes · 9 min read
Understanding and Implementing Idempotency in Backend Services with Java and Redis
Selected Java Interview Questions
Selected Java Interview Questions
Feb 2, 2024 · Backend Development

Comprehensive Guide to API Request Retry Mechanisms and Spring Boot Implementation

This article examines why API requests fail, explains the importance of retry mechanisms, compares linear, exponential and randomized back‑off strategies, discusses maximum attempt considerations and idempotency, and provides a detailed Spring Boot implementation using Spring Retry along with alternative approaches.

API RetryBackendIdempotency
0 likes · 21 min read
Comprehensive Guide to API Request Retry Mechanisms and Spring Boot Implementation
JavaEdge
JavaEdge
Jan 13, 2024 · Backend Development

Ensuring Consistency, Idempotency, and Reliable Retries in Payment Systems

The article explains how payment systems should link related documents to maintain status and amount consistency, implement idempotency through unique keys, and use progressive retry mechanisms with message queues to handle network glitches and ensure reliable transaction processing.

ConsistencyIdempotencyRetry
0 likes · 5 min read
Ensuring Consistency, Idempotency, and Reliable Retries in Payment Systems
IT Niuke
IT Niuke
Jan 8, 2024 · Backend Development

Implementing Idempotent APIs in SpringBoot

This article explains the concept of idempotency, why it matters for HTTP APIs, the impact on system design, RESTful method characteristics, and compares four practical implementation strategies—including database primary keys, optimistic locking, Redis token, and downstream sequence numbers—followed by a complete SpringBoot example with code and tests.

BackendIdempotencyJava
0 likes · 26 min read
Implementing Idempotent APIs in SpringBoot
Architect
Architect
Dec 25, 2023 · Backend Development

Implementing API Idempotency Checks with Design Patterns in Java

This article explains the concept of idempotency, why it is essential for API reliability, and demonstrates four practical idempotency strategies—including database primary keys, optimistic locking, token validation, and Redis caching—implemented via custom annotations and the Strategy pattern in a Spring‑Boot Java project.

APIDesign PatternsIdempotency
0 likes · 23 min read
Implementing API Idempotency Checks with Design Patterns in Java
DaTaobao Tech
DaTaobao Tech
Dec 20, 2023 · Backend Development

Designing a Unified Structural Template for Multi‑Module Business Applications

The article proposes a unified structural template that links business and technical architectures for multi‑module applications, revisiting the VSEF framework with client and business‑logic modules, handling concerns such as exceptions, idempotency and concurrency, using a simple Request/Result model, and demonstrating its reuse through price‑insurance and Groupon case studies, enabling rapid, container‑like service initialization while preserving clear separation of logic and infrastructure.

Business LogicExtensionIdempotency
0 likes · 7 min read
Designing a Unified Structural Template for Multi‑Module Business Applications
Selected Java Interview Questions
Selected Java Interview Questions
Dec 18, 2023 · Backend Development

Implementing API Idempotency with Spring Boot, Redis, and Custom Annotations

This article explains the concept of idempotency, presents several strategies to achieve it, and provides a complete Spring Boot implementation using Redis, a custom @AutoIdempotent annotation, token generation and verification, interceptor configuration, and test cases to ensure only the first request succeeds.

AnnotationsBackendIdempotency
0 likes · 10 min read
Implementing API Idempotency with Spring Boot, Redis, and Custom Annotations
Architecture Digest
Architecture Digest
Dec 12, 2023 · Backend Development

Ensuring Idempotency and Solving the ABA Problem in Order Services

This article explains how to achieve idempotent order creation and updates in backend services by using database transactions, unique request identifiers, Redis flags, and optimistic locking with a version column to prevent duplicate submissions and solve the ABA problem.

ABA problemIdempotencyOptimistic Locking
0 likes · 10 min read
Ensuring Idempotency and Solving the ABA Problem in Order Services
Su San Talks Tech
Su San Talks Tech
Nov 23, 2023 · Backend Development

Mastering Idempotency in Distributed Java Services: Strategies & Code

Idempotency ensures that repeated requests produce the same outcome without side effects, and this article explains its concepts, necessity in microservices, relationship with concurrency, and presents six practical implementation methods—unique indexes, token, pessimistic and optimistic locks, distributed locks, and state machines—complete with Java Spring Boot code examples.

BackendIdempotencydistributed-systems
0 likes · 23 min read
Mastering Idempotency in Distributed Java Services: Strategies & Code
Meituan Technology Team
Meituan Technology Team
Oct 12, 2023 · Operations

Pattern-Based Reliability Governance for Billion-Scale Traffic Systems

The article analyzes reliability governance challenges in Meituan's billion‑traffic systems, introduces pattern mining as a way to uncover common reliability issues, and presents three concrete case studies—idempotency, dependency, and over‑privilege governance—demonstrating how large‑scale traffic data and environment isolation enable low‑cost, automated reliability solutions.

Idempotencyaccess controldependency-governance
0 likes · 19 min read
Pattern-Based Reliability Governance for Billion-Scale Traffic Systems
macrozheng
macrozheng
Sep 18, 2023 · Backend Development

Secure & Scalable API Design: Signatures, Encryption, Rate Limiting, and More

This article outlines comprehensive best‑practice guidelines for building robust API interfaces, covering signature mechanisms, data encryption, IP whitelisting, rate limiting, parameter validation, unified responses, exception handling, logging, idempotency, request limits, performance testing, asynchronous processing, data masking, and documentation standards.

API designBest PracticesIdempotency
0 likes · 15 min read
Secure & Scalable API Design: Signatures, Encryption, Rate Limiting, and More
Shepherd Advanced Notes
Shepherd Advanced Notes
Sep 15, 2023 · Backend Development

How to Prevent Duplicate Order Submissions in Flash‑Sale Systems: An Idempotency Guide

The article explains the concept of idempotency, outlines common duplicate‑submission scenarios such as form resubmission, malicious voting, client retries, and message re‑consumption, and details three practical implementation methods—database constraints, token‑based middleware, and state‑machine logic—complete with code examples and trade‑off considerations.

IdempotencyOptimistic Lockbackend development
0 likes · 13 min read
How to Prevent Duplicate Order Submissions in Flash‑Sale Systems: An Idempotency Guide
Senior Tony
Senior Tony
Aug 30, 2023 · Backend Development

How to Prevent Duplicate Order Submissions in High‑Traffic E‑Commerce Systems

The article examines why duplicate order submissions occur in e‑commerce, outlines four practical solutions—including button disabling, pre‑generated UUIDs, client‑side ID generation, and Redis‑based idempotency—compares their pros and cons, and explains why a Redis key approach was ultimately chosen for production.

BackendIdempotencyOrder Processing
0 likes · 7 min read
How to Prevent Duplicate Order Submissions in High‑Traffic E‑Commerce Systems
Su San Talks Tech
Su San Talks Tech
Aug 17, 2023 · Backend Development

Ensuring API Idempotency with Spring, Redis, and Custom Annotations

This article explains the concept of idempotency, identifies which HTTP methods are naturally idempotent, and demonstrates a complete Java Spring solution—including custom annotations, AOP handling, token generation, and Redis storage—to guarantee safe retry and duplicate‑request protection.

AOPBackendIdempotency
0 likes · 11 min read
Ensuring API Idempotency with Spring, Redis, and Custom Annotations
Java Backend Technology
Java Backend Technology
Aug 15, 2023 · Backend Development

How to Ensure Order Service Idempotency and Prevent Duplicate Orders

This article explains how to achieve idempotent order creation and updates in backend services by using unique request identifiers, database unique constraints, Redis flags, and optimistic locking with version columns, while also addressing the ABA problem with practical code examples and diagrams.

ABA problemIdempotencyOptimistic Locking
0 likes · 10 min read
How to Ensure Order Service Idempotency and Prevent Duplicate Orders
Top Architect
Top Architect
Aug 13, 2023 · Backend Development

Implementing Idempotency in Spring Boot with Custom Annotations and Redis

This article explains the concept of idempotency, identifies naturally idempotent HTTP methods, discusses why idempotency is essential for retries, async callbacks, and message queues, and provides a complete Spring Boot implementation using a custom @Idempotent annotation, AOP, and Redis for token storage.

BackendIdempotencyJava
0 likes · 12 min read
Implementing Idempotency in Spring Boot with Custom Annotations and Redis
Top Architect
Top Architect
Jul 27, 2023 · Backend Development

Preventing Order Loss and Duplicate Submissions in Payment Systems: Best Practices

This article explains the typical order‑payment flow, identifies external and internal causes of lost orders, and provides concrete backend strategies—such as adding a "payment‑in‑progress" state, timeout‑based query retries, idempotent handling, and Redis‑based duplicate‑submission protection—to ensure reliable order processing and avoid duplicate payments.

BackendBest PracticesIdempotency
0 likes · 6 min read
Preventing Order Loss and Duplicate Submissions in Payment Systems: Best Practices
Java Interview Crash Guide
Java Interview Crash Guide
Jul 26, 2023 · Backend Development

Ensuring API Idempotency: 4 Proven Strategies with SpringBoot & Redis

This article explains why API idempotency is crucial in real‑world systems, outlines which operations need it, discusses the trade‑offs of adding idempotency, and presents four practical implementation patterns—including unique primary keys, optimistic locking, anti‑duplicate tokens, and downstream sequence numbers—complete with SpringBoot code examples.

APIIdempotencyJava
0 likes · 23 min read
Ensuring API Idempotency: 4 Proven Strategies with SpringBoot & Redis
Java Architect Essentials
Java Architect Essentials
Jul 19, 2023 · Backend Development

Preventing Order Loss and Duplicate Submissions in Payment Systems

This article explains the typical order‑payment flow, identifies causes of order loss and duplicate submissions, and provides practical backend strategies such as intermediate payment states, timeout queries, idempotent handling, Redis‑based duplicate checks, and WeChat Pay best practices to ensure reliable order processing.

IdempotencyWeChat Payduplicate-submission
0 likes · 5 min read
Preventing Order Loss and Duplicate Submissions in Payment Systems
ITPUB
ITPUB
Jul 1, 2023 · Fundamentals

Mastering Distributed Systems: CAP, BASE, Locks, Transactions, Paxos & Raft Explained

This article provides a comprehensive overview of core distributed‑system concepts—including the CAP theorem, BASE model, common distributed‑lock implementations, multiple distributed‑transaction patterns such as 2PC, 3PC, TCC, local‑message tables, MQ transactions and Seata, as well as consistency algorithms like Paxos and Raft, idempotency techniques, and rate‑limiting algorithms—explaining their motivations, trade‑offs, and practical usage.

BASECAP theoremIdempotency
0 likes · 30 min read
Mastering Distributed Systems: CAP, BASE, Locks, Transactions, Paxos & Raft Explained
JD Retail Technology
JD Retail Technology
Jun 30, 2023 · Fundamentals

Fundamentals of Distributed Systems: CAP Theory, ACID, BASE, Idempotency, and Distributed Transaction Protocols

This article explains core distributed‑system concepts such as the CAP theorem, ACID and BASE transaction models, idempotent design, and various distributed transaction mechanisms including two‑phase and three‑phase commit, TCC/Saga compensation, message‑based transactions, and popular frameworks like JDTS and Seata.

2PC3PCACID
0 likes · 6 min read
Fundamentals of Distributed Systems: CAP Theory, ACID, BASE, Idempotency, and Distributed Transaction Protocols
政采云技术
政采云技术
Jun 8, 2023 · Backend Development

Idempotency Design Principles and Practices in Distributed Systems

This article explains the definition, importance, and practical design guidelines for achieving idempotency in distributed systems, especially in financial and payment scenarios, by detailing key elements, principles, common pitfalls, and implementation patterns with code examples.

IdempotencyRPC
0 likes · 12 min read
Idempotency Design Principles and Practices in Distributed Systems
DeWu Technology
DeWu Technology
Jun 7, 2023 · Backend Development

Ensuring Data Consistency Across Microservices: Strategies and Design Principles

This article examines why data consistency between microservices is critical, defines key terminology, and presents two practical approaches—business‑side final consistency and platform‑side final consistency—detailing their core ideas, design principles, workflow diagrams, and real‑world implementation considerations such as idempotency, storage choices, latency tolerance, state‑machine design, concurrency control, and observability.

ConcurrencyData ConsistencyDistributed Systems
0 likes · 17 min read
Ensuring Data Consistency Across Microservices: Strategies and Design Principles
IT Services Circle
IT Services Circle
May 24, 2023 · Backend Development

Ensuring API Idempotency: Concepts and the “One Lock, Two Check, Three Update” Method

The article explains the concept of idempotency for APIs, distinguishes request and business idempotency, highlights the risk of idempotent breakdown under high concurrency, and presents a practical solution using a three‑step process—lock, check, and update—often implemented with Redis distributed locks and database uniqueness constraints.

APIBackendIdempotency
0 likes · 5 min read
Ensuring API Idempotency: Concepts and the “One Lock, Two Check, Three Update” Method
Su San Talks Tech
Su San Talks Tech
May 23, 2023 · Backend Development

How to Prevent Duplicate Payments in E‑Commerce: Proven Strategies

This article explains the e‑commerce payment flow, identifies why duplicate payments occur—such as missing idempotency, lost orders, and multi‑channel issues—and presents practical backend solutions like distributed locking, result caching, in‑progress flow cancellation, refund handling, active polling, and push/pull synchronization.

Idempotencydistributed-lockduplicate payment
0 likes · 11 min read
How to Prevent Duplicate Payments in E‑Commerce: Proven Strategies
dbaplus Community
dbaplus Community
May 1, 2023 · Fundamentals

Master Distributed Systems: CAP, Locks, Transactions, Paxos & Raft

This comprehensive guide explains the core concepts of distributed systems—including the CAP theorem, practical implementations of distributed locks, various distributed transaction patterns, consistency algorithms such as Paxos and Raft, idempotency techniques, and rate‑limiting strategies—providing clear examples, code snippets, and visual diagrams for each topic.

CAP theoremIdempotencyPaxos
0 likes · 27 min read
Master Distributed Systems: CAP, Locks, Transactions, Paxos & Raft
Sohu Tech Products
Sohu Tech Products
Apr 26, 2023 · Backend Development

Designing Robust and Idempotent APIs: Principles and Practices

This article explores essential API design principles—idempotency, robustness, and security—by discussing practical techniques such as request locks, database unique constraints, Redis distributed locks, token‑based authentication, JWT, and defensive coding practices to ensure reliable, safe, and maintainable backend services.

API designBackendIdempotency
0 likes · 36 min read
Designing Robust and Idempotent APIs: Principles and Practices
Baidu Geek Talk
Baidu Geek Talk
Apr 17, 2023 · Operations

Baidu DuoLiXiong Platform Stability Construction: Practices and Insights

Baidu's DuoLiXiong platform, a SaaS suite for local services, achieves stability through comprehensive technical and business specifications, microservice best practices, rigorous code reviews, automated monitoring, eventual consistency, idempotency, and future automated scaling and intelligent fault tolerance for critical operations.

DevOpsIdempotencycode review
0 likes · 11 min read
Baidu DuoLiXiong Platform Stability Construction: Practices and Insights
Code Ape Tech Column
Code Ape Tech Column
Mar 30, 2023 · Backend Development

How to Ensure No Message Loss in MQ Systems – Interview Guide and Practical Solutions

This article explains the common interview question of guaranteeing 100% message reliability in MQ middleware such as Kafka or RabbitMQ, outlines the three lifecycle stages of a message, discusses detection mechanisms, id generation, idempotent consumption, and handling message backlog, providing concrete design patterns and practical examples.

Distributed SystemsIdempotencyInterview
0 likes · 12 min read
How to Ensure No Message Loss in MQ Systems – Interview Guide and Practical Solutions
ITPUB
ITPUB
Mar 14, 2023 · Fundamentals

Master Distributed Systems: CAP, BASE, Locks, Transactions, Paxos & Raft

This comprehensive guide explores core distributed system concepts—including the CAP theorem and its trade‑offs, BASE consistency, various distributed lock strategies, multiple transaction patterns such as 2PC, 3PC, TCC and Seata, as well as consensus algorithms Paxos and Raft, while also covering idempotency and rate‑limiting techniques.

CAP theoremDistributed SystemsIdempotency
0 likes · 29 min read
Master Distributed Systems: CAP, BASE, Locks, Transactions, Paxos & Raft
Architecture & Thinking
Architecture & Thinking
Dec 28, 2022 · Backend Development

Ensuring Idempotency in Message Queues: Strategies for Reliable Messaging

This article explains the concept of idempotency, illustrates why repeated operations must yield identical results, and details how RocketMQ’s components—NameServer, Broker, Producer, and Consumer—can be designed with unique message IDs and acknowledgment mechanisms to achieve reliable, duplicate‑free messaging in backend systems.

BackendDistributed SystemsIdempotency
0 likes · 10 min read
Ensuring Idempotency in Message Queues: Strategies for Reliable Messaging
Top Architect
Top Architect
Dec 25, 2022 · Backend Development

Why Use Message Queues? Benefits, Challenges, and Practical Solutions

This article explains why message queues are essential for decoupling services, enabling asynchronous processing, and smoothing traffic spikes, then details the new challenges they introduce—such as availability, complexity, duplicate consumption, ordering, and data consistency—and offers concrete mitigation strategies for each issue.

Asynchronous ProcessingData ConsistencyDecoupling
0 likes · 15 min read
Why Use Message Queues? Benefits, Challenges, and Practical Solutions
macrozheng
macrozheng
Dec 12, 2022 · Backend Development

Designing Secure, Reliable APIs: Signatures, Encryption, Rate Limiting & More

Learn how to design robust, secure API interfaces by implementing signatures, encryption, IP whitelists, rate limiting, parameter validation, unified responses, exception handling, logging, idempotency, request size limits, load testing, asynchronous processing, data masking, and comprehensive documentation to ensure stability and safety.

API designIdempotencyLogging
0 likes · 15 min read
Designing Secure, Reliable APIs: Signatures, Encryption, Rate Limiting & More
Su San Talks Tech
Su San Talks Tech
Dec 12, 2022 · Backend Development

Designing Secure and Robust APIs: Signatures, Encryption, Rate Limiting, and More

This article outlines essential practices for building secure, reliable API interfaces—including request signing, data encryption, IP whitelisting, rate limiting, parameter validation, unified responses, exception handling, logging, idempotency, payload limits, performance testing, asynchronous processing, data masking, and comprehensive documentation—to help developers meet safety, stability, and maintainability requirements.

API designIdempotencyLogging
0 likes · 15 min read
Designing Secure and Robust APIs: Signatures, Encryption, Rate Limiting, and More
Top Architect
Top Architect
Nov 20, 2022 · Backend Development

Key Topics in Backend Architecture: Product Positioning, Microservice Design, Real‑time Messaging, Idempotency, and Service Governance

The article presents a comprehensive overview of backend architecture, covering product analysis, microservice design principles, real‑time messaging evolution, load‑balancing migration from HAProxy to Nginx, request idempotency techniques using AOP and Redis, and a detailed discussion of service governance challenges and solutions.

IdempotencyLoad BalancingService Governance
0 likes · 5 min read
Key Topics in Backend Architecture: Product Positioning, Microservice Design, Real‑time Messaging, Idempotency, and Service Governance
Architect's Guide
Architect's Guide
Nov 19, 2022 · Backend Development

Product Analysis, Microservice Architecture Design, Real-Time Messaging Evolution, Idempotency, and Service Governance

This article outlines product analysis and positioning, microservice architecture principles, the evolution of real‑time message push technologies, strategies for ensuring request idempotency, and comprehensive service governance practices, providing practical guidelines for building robust backend systems.

Backend ArchitectureIdempotencyLoad Balancing
0 likes · 6 min read
Product Analysis, Microservice Architecture Design, Real-Time Messaging Evolution, Idempotency, and Service Governance
Java High-Performance Architecture
Java High-Performance Architecture
Oct 14, 2022 · Backend Development

How to Guarantee Zero Message Loss in MQ Systems – Interview Mastery

Interviewers frequently probe candidates on ensuring 100% message reliability in MQ systems like Kafka or RabbitMQ, and this guide walks through the underlying concepts, potential loss points, detection mechanisms, idempotent design, handling backlog, and practical ID generation strategies to ace such questions.

IdempotencyKafkaMQ reliability
0 likes · 13 min read
How to Guarantee Zero Message Loss in MQ Systems – Interview Mastery
Top Architect
Top Architect
Sep 20, 2022 · Backend Development

Ensuring No Message Loss in MQ Systems: Interview Guide and Practical Solutions

This article explains how interviewers assess candidates on MQ reliability by discussing system decoupling, traffic control, the three stages of message flow, detection of loss, id generation, idempotent consumption, handling backlog, and scaling strategies for Kafka and similar brokers.

IdempotencyInterview TipsMQ reliability
0 likes · 12 min read
Ensuring No Message Loss in MQ Systems: Interview Guide and Practical Solutions
Architect
Architect
Sep 8, 2022 · Backend Development

Ensuring No Message Loss in MQ Systems: Interview Guide and Practical Solutions

This article explains how to answer interview questions about guaranteeing 100% message delivery in MQ middleware such as Kafka, RabbitMQ, or RocketMQ, covering system decoupling, message lifecycle stages, reliability mechanisms, idempotent consumption, unique ID generation, and handling message back‑pressure.

IdempotencyMessage QueueRabbitMQ
0 likes · 12 min read
Ensuring No Message Loss in MQ Systems: Interview Guide and Practical Solutions
JavaEdge
JavaEdge
Sep 3, 2022 · Backend Development

How to Ensure Idempotent Order Creation and Prevent ABA Issues in Distributed Systems

This article explains why order creation and payment APIs must be idempotent, outlines practical techniques such as unique request IDs, database unique constraints, Redis flags, and version‑based optimistic locking to avoid duplicate orders and solve the ABA problem in distributed environments.

ABA problemDatabase TransactionDistributed Systems
0 likes · 9 min read
How to Ensure Idempotent Order Creation and Prevent ABA Issues in Distributed Systems
Top Architect
Top Architect
Jul 29, 2022 · Backend Development

Implementing API Idempotency in Spring Boot Using Tokens, Database Primary Keys, Optimistic Locks, and Redis

This article explains the concept of idempotency in computing and HTTP, why it is essential for APIs, the impact on system design, which RESTful methods are idempotent, and presents four practical implementation strategies—including database primary keys, optimistic locking, anti‑repeat tokens, and downstream sequence numbers—accompanied by complete Spring Boot code examples and testing procedures.

APIIdempotencyJava
0 likes · 22 min read
Implementing API Idempotency in Spring Boot Using Tokens, Database Primary Keys, Optimistic Locks, and Redis
Sanyou's Java Diary
Sanyou's Java Diary
Jul 28, 2022 · Backend Development

How to Guarantee Zero Message Loss in MQ Systems – Interview‑Ready Strategies

This article explains how interview candidates can demonstrate mastery of MQ reliability by describing the three message lifecycle stages, detection mechanisms for loss, idempotent consumption techniques, and strategies to resolve backlog, providing concrete examples and design principles for robust backend systems.

IdempotencyMQ reliabilityMessage Queue
0 likes · 12 min read
How to Guarantee Zero Message Loss in MQ Systems – Interview‑Ready Strategies
IT Architects Alliance
IT Architects Alliance
Jul 27, 2022 · Backend Development

Mastering API Idempotency: Strategies, Code Samples, and Best Practices

This article explains the concept of idempotency, why it matters for HTTP APIs, compares the idempotent characteristics of RESTful methods, and presents four practical implementation strategies—including database primary keys, optimistic locking, Redis‑based tokens, and downstream sequence numbers—along with complete Spring Boot code examples and testing guidance.

APIIdempotencyJava
0 likes · 24 min read
Mastering API Idempotency: Strategies, Code Samples, and Best Practices
Architecture Digest
Architecture Digest
Jul 22, 2022 · Backend Development

Understanding Interface Idempotency and Distributed Rate Limiting: Concepts, Algorithms, and Java Implementations

This article explains the principle of interface idempotency, presents practical techniques such as version‑based updates and token mechanisms, and then delves into distributed rate‑limiting dimensions, common algorithms like token‑bucket and leaky‑bucket, and concrete implementations using Guava, Nginx, Redis and Lua with full code examples.

Distributed Rate LimitingIdempotencyLeaky Bucket
0 likes · 21 min read
Understanding Interface Idempotency and Distributed Rate Limiting: Concepts, Algorithms, and Java Implementations
Dada Group Technology
Dada Group Technology
Jul 16, 2022 · Backend Development

Optimizing Rider Withdrawal Payments at Dada Express: Asynchronous Concurrency, Extended Timeouts, Idempotent Retries, and Security Enhancements

This article details how Dada Express improved the efficiency of rider withdrawal payments by redesigning the clearing and disbursement workflow, introducing asynchronous thread‑pool concurrency, extending API timeouts, implementing idempotent retry logic, and adding safeguards to ensure fund security, resulting in a three‑fold reduction in processing time during peak periods.

BackendConcurrencyIdempotency
0 likes · 9 min read
Optimizing Rider Withdrawal Payments at Dada Express: Asynchronous Concurrency, Extended Timeouts, Idempotent Retries, and Security Enhancements
Top Architect
Top Architect
Jul 12, 2022 · Backend Development

Understanding Interface Idempotency and Distributed Rate Limiting with Token Bucket, Leaky Bucket, Guava RateLimiter, Nginx, and Redis+Lua

This article explains the concept of interface idempotency, demonstrates how to achieve idempotent update operations using version control and token mechanisms, and provides a comprehensive guide to distributed rate limiting—including time‑window and resource‑based dimensions, token‑bucket and leaky‑bucket algorithms, and practical implementations with Guava RateLimiter, Nginx, and Redis‑Lua scripts.

BackendDistributed SystemsIdempotency
0 likes · 21 min read
Understanding Interface Idempotency and Distributed Rate Limiting with Token Bucket, Leaky Bucket, Guava RateLimiter, Nginx, and Redis+Lua
JD Tech
JD Tech
Jul 8, 2022 · Backend Development

Designing High‑Concurrency Inventory Systems with Redis, Database Transactions, and a Task Engine

This article presents a comprehensive solution for building an e‑commerce inventory system that prevents overselling under high concurrency by combining database transactions, Redis‑based stock deduction, idempotent anti‑repeat mechanisms, pipeline optimization, and a task‑engine driven eventual‑consistency architecture.

IdempotencyInventorydatabase
0 likes · 13 min read
Designing High‑Concurrency Inventory Systems with Redis, Database Transactions, and a Task Engine
Cognitive Technology Team
Cognitive Technology Team
Jul 3, 2022 · Backend Development

Network Timeouts Do Not Imply Server Failure: Effective Retry, Backoff, and Idempotency Strategies

Network timeouts do not necessarily indicate server‑side failure; handling them with appropriate retry strategies, exponential backoff, and idempotent APIs—combined with mechanisms such as distributed locks and atomic transactions—helps maintain system stability while avoiding duplicate operations and resource exhaustion.

BackendDistributed SystemsIdempotency
0 likes · 7 min read
Network Timeouts Do Not Imply Server Failure: Effective Retry, Backoff, and Idempotency Strategies
TAL Education Technology
TAL Education Technology
Jun 9, 2022 · Backend Development

Understanding Idempotency: Definitions, Scenarios, and Implementation Strategies

This article explains the concept of idempotency, outlines common business scenarios such as duplicate orders and payments, describes natural and required idempotent operations, and provides practical techniques—including unique keys, database constraints, and message‑queue handling—to ensure idempotent behavior in backend systems.

BackendIdempotencyTransaction
0 likes · 6 min read
Understanding Idempotency: Definitions, Scenarios, and Implementation Strategies
IT Architects Alliance
IT Architects Alliance
May 23, 2022 · Backend Development

Server‑Side Request Deduplication Using Redis and MD5 in Java

The article explains how to prevent duplicate requests on the server side by using unique request IDs, business‑parameter hashing with MD5, exclusion of volatile fields, and atomic Redis SETNX operations, providing a complete Java implementation and testing logs.

IdempotencyJavaMD5
0 likes · 11 min read
Server‑Side Request Deduplication Using Redis and MD5 in Java
Top Architect
Top Architect
May 23, 2022 · Backend Development

Idempotent Interfaces and Distributed Rate Limiting: Concepts, Algorithms, and Practical Implementations

This article explains the importance of interface idempotency and presents a comprehensive guide to distributed rate limiting, covering key dimensions, token‑bucket and leaky‑bucket algorithms, and concrete implementations using Guava RateLimiter, Nginx, and Redis‑Lua with Java code examples.

IdempotencyLeaky Bucketrate limiting
0 likes · 19 min read
Idempotent Interfaces and Distributed Rate Limiting: Concepts, Algorithms, and Practical Implementations
macrozheng
macrozheng
May 18, 2022 · Backend Development

36 Essential Tips for Designing Robust Backend APIs

This article presents 36 practical guidelines for backend engineers covering interface parameter validation, compatibility, extensibility, idempotency, logging, error handling, security, rate limiting, caching, transaction management, and more, helping you design reliable, maintainable, and high‑performance APIs across any language.

BackendIdempotencyLogging
0 likes · 30 min read
36 Essential Tips for Designing Robust Backend APIs
Top Architect
Top Architect
Apr 29, 2022 · Backend Development

Server‑Side Request Deduplication Using Redis and Java

The article explains how to prevent duplicate user requests on the server by using unique request IDs, hashing request parameters, excluding volatile fields, and implementing an atomic Redis SETNX‑with‑expiration pattern with Java code examples and a reusable deduplication helper class.

BackendIdempotencyJava
0 likes · 10 min read
Server‑Side Request Deduplication Using Redis and Java
Tencent Cloud Developer
Tencent Cloud Developer
Apr 26, 2022 · Backend Development

Understanding Distributed Transactions in Microservices: Challenges and Practical Solutions

The article explains why distributed transactions in micro‑service architectures are hard—due to remote failures, timeouts, and lack of atomic guarantees—and outlines practical approaches such as unique transaction IDs, audit logs, SQL/NoSQL persistence, TCC, Saga or compensation patterns to achieve reliable consistency while balancing availability.

Idempotencydistributed transactionstimeout handling
0 likes · 17 min read
Understanding Distributed Transactions in Microservices: Challenges and Practical Solutions
Top Architect
Top Architect
Apr 22, 2022 · Backend Development

Understanding Mutual Exclusion and Idempotency in Distributed Systems: Distributed Locks, ReentrantLock, Zookeeper, Redis, and GTIS

This article explains the mutual‑exclusion and idempotency challenges in distributed environments, analyzes multi‑thread and multi‑process solutions, introduces the principles and implementations of distributed locks (including ReentrantLock, synchronized, Zookeeper, Redis, Tair, and the Cerberus framework), and presents GTIS as a reliable idempotency guard.

ConcurrencyIdempotencyJava
0 likes · 32 min read
Understanding Mutual Exclusion and Idempotency in Distributed Systems: Distributed Locks, ReentrantLock, Zookeeper, Redis, and GTIS
dbaplus Community
dbaplus Community
Apr 20, 2022 · Backend Development

How to Build a Robust E‑Commerce Backend: Idempotency, Snapshots, and Sharding

This article explores common e‑commerce backend challenges such as duplicate orders, order snapshots, cart storage, inventory oversell, logistics updates, account balance consistency, read‑write splitting, hot‑cold data separation, and sharding, and provides concrete design patterns and SQL examples to solve them.

BackendIdempotencyTransaction
0 likes · 17 min read
How to Build a Robust E‑Commerce Backend: Idempotency, Snapshots, and Sharding
Programmer DD
Programmer DD
Apr 9, 2022 · Backend Development

Graceful Server‑Side Request Deduplication with Redis and Java

This article explains how to prevent harmful duplicate write requests by using unique request IDs or parameter‑based signatures, leveraging Redis for atomic SETNX with expiration, computing MD5 hashes of sorted JSON payloads, and providing a reusable Java helper class for robust backend deduplication.

IdempotencyJavaMD5
0 likes · 11 min read
Graceful Server‑Side Request Deduplication with Redis and Java