Tag

Idempotency

0 views collected around this technical thread.

Java Tech Enthusiast
Java Tech Enthusiast
Jun 3, 2025 · Backend Development

Understanding the TCC (Try‑Confirm‑Cancel) Pattern for Distributed Transactions in Microservices

This article explains the TCC (Try‑Confirm‑Cancel) distributed transaction pattern, compares it with traditional solutions, details its three‑phase workflow, provides Java code examples for each phase, and discusses exception handling, timeout control, asynchronous processing, suitable scenarios, and common pitfalls for backend microservice development.

IdempotencyJavabackend development
0 likes · 8 min read
Understanding the TCC (Try‑Confirm‑Cancel) Pattern for Distributed Transactions in Microservices
Java Architect Essentials
Java Architect Essentials
May 20, 2025 · Backend Development

Ensuring Idempotency with Distributed Locks: Adjusting Aspect Order in Java Backend

This article explains how using a custom @DistributeLock annotation together with @Transactional can cause idempotency issues due to aspect execution order, and demonstrates how to prioritize the lock aspect using @Order to ensure the lock is applied before the transaction, with code examples and best‑practice recommendations.

BackendDistributed LockIdempotency
0 likes · 6 min read
Ensuring Idempotency with Distributed Locks: Adjusting Aspect Order in Java Backend
JD Tech
JD Tech
Apr 27, 2025 · Backend Development

A Lightweight Mock/Spy Tool for Data Consistency in RPC Timeout Scenarios

The article analyzes data‑consistency challenges caused by RPC timeouts, especially when interfaces lack idempotency or idempotency fails, and presents a lightweight mock/spy utility that can intercept, mock, or spy on service calls to quickly restore consistency in distributed systems.

BackendIdempotencyMock
0 likes · 11 min read
A Lightweight Mock/Spy Tool for Data Consistency in RPC Timeout Scenarios
IT Services Circle
IT Services Circle
Apr 18, 2025 · Backend Development

Preventing Duplicate Orders under 100k QPS: Full‑Stack Strategies

This article explains how to prevent duplicate orders in a high‑traffic system handling 100,000 QPS by combining frontend safeguards such as button disabling and token mechanisms with backend techniques including NGINX rate limiting, gateway token validation, idempotent database design, sharding, distributed locks, optimistic locking, and comprehensive logging and monitoring.

Distributed LockIdempotencyRate Limiting
0 likes · 7 min read
Preventing Duplicate Orders under 100k QPS: Full‑Stack Strategies
Java Tech Enthusiast
Java Tech Enthusiast
Apr 11, 2025 · Backend Development

Ensuring Message Processing Once in High-Concurrency Scenarios

The article explains how to guarantee that messages are processed only once in high‑concurrency environments by combining production‑side idempotent publishing, broker‑level deduplication with unique IDs, and consumption‑side business idempotency such as database constraints or distributed locks, while also recommending monitoring, metrics, and reconciliation as safety nets.

IdempotencyKafkaMessage Queue
0 likes · 6 min read
Ensuring Message Processing Once in High-Concurrency Scenarios
Selected Java Interview Questions
Selected Java Interview Questions
Apr 7, 2025 · Backend Development

Preventing Order Loss and Duplicate Submissions in Payment Systems

The article explains a simplified order‑payment flow, identifies common causes of lost orders and duplicate payments, and provides practical backend strategies such as intermediate payment states, timeout queries, idempotent notifications, and Redis‑based duplicate‑submission protection.

Idempotencyduplicate submissionorder processing
0 likes · 5 min read
Preventing Order Loss and Duplicate Submissions in Payment Systems
Selected Java Interview Questions
Selected Java Interview Questions
Dec 31, 2024 · Backend Development

Implementing Idempotent Repeat Submission Prevention in Spring Boot with AOP and Redis

This article explains how to prevent duplicate data submissions in a Spring Boot application by designing an idempotent mechanism using AOP and Redis, covering the concept, design strategy, custom annotation, aspect implementation, and a simple test controller.

AOPBackendIdempotency
0 likes · 10 min read
Implementing Idempotent Repeat Submission Prevention in Spring Boot with AOP and Redis
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Dec 24, 2024 · Backend Development

Understanding Idempotency in Distributed Systems and Order Creation

This article explains the concept of idempotency in distributed systems, its importance for preventing duplicate orders in e‑commerce, outlines a solution using unique request identifiers, and provides a Java code example illustrating how to implement idempotent order creation.

BackendIdempotencyJava
0 likes · 4 min read
Understanding Idempotency in Distributed Systems and Order Creation
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.

IdempotencyRedisSpring Boot
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.

AOPAnnotationBackend
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.

APIBackendException Handling
0 likes · 15 min read
Best Practices for Designing Secure and Robust API Controller Interfaces
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.

BackendIdempotencyOrder Management
0 likes · 5 min read
Preventing Order Loss and Duplicate Submissions in Payment Systems
Top Architect
Top Architect
Sep 25, 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 order IDs, database primary key constraints, Redis flags, and version columns to prevent duplicate submissions and resolve the ABA problem, ensuring consistent data across distributed services.

BackendDatabaseIdempotency
0 likes · 13 min read
Ensuring Idempotency in Order Services: Preventing Duplicate Orders and Solving the ABA Problem
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 problemBackendDatabase
0 likes · 11 min read
Ensuring Idempotency in Order Services: Preventing Duplicate Orders and Solving the ABA Problem
Top Architect
Top Architect
Sep 20, 2024 · Backend Development

Implementing Interface Debounce with Distributed Locks in Java Backend Systems

This article explains the concept of request debouncing, identifies which API endpoints need it, and demonstrates two distributed lock solutions—shared Redis cache and Redisson—by providing complete Java code examples, configuration steps, and test results to prevent duplicate submissions in backend services.

BackendDebounceDistributed Lock
0 likes · 17 min read
Implementing Interface Debounce with Distributed Locks in Java Backend Systems
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
Selected Java Interview Questions
Selected Java Interview Questions
Aug 22, 2024 · Backend Development

Ensuring Idempotency in Order Creation: Database Constraints, Unique Order IDs, and Versioning to Prevent Duplicate Orders and ABA Problems

The article explains how to achieve idempotent order creation and updates by using database transactions, unique order identifiers, Redis flags, and version columns to prevent duplicate inserts, handle retry scenarios, and solve the ABA problem in distributed backend systems.

DatabaseIdempotencyRedis
0 likes · 9 min read
Ensuring Idempotency in Order Creation: Database Constraints, Unique Order IDs, and Versioning to Prevent Duplicate Orders and ABA Problems