Tagged articles
duplicate-submission
26 articles · Page 1 of 1
This tutorial demonstrates how to implement automatic idempotency in Spring Boot using Redis, a custom @AutoIdempotent annotation, token-based validation, and a HandlerInterceptor to prevent duplicate submissions in high-volume APIs.
IdempotencyInterceptorJava
0 likes · 11 min read

This article details seven idempotency patterns for backend write operations—including unique keys with database constraints, state machines, execution records, naturally idempotent actions, request fingerprinting, client-generated keys, and server-issued tokens—with concrete examples, SQL code, and a selection guide to match each pattern to specific business scenarios like payment callbacks, order cancellations, and duplicate purchases.
Idempotencybackend developmentconditional update
0 likes · 29 min read

This article explains why duplicate form submissions cause data inconsistency in Spring Boot applications and presents six practical techniques—including disabling the submit button, loading‑state feedback, debounce, Axios request interception, token validation, and AOP interception—to reliably prevent repeated requests in both single‑node and distributed deployments.
AOPAxiosSpring Boot
0 likes · 15 min read

This article explains how to implement duplicate submission prevention in Spring Boot using a token mechanism with Redis, AOP, and custom annotations, covering idempotency concepts, solution comparisons, code implementation with Lua scripts for atomic operations, and common pitfalls.
AOPIdempotencyLua Script
0 likes · 13 min read

This article explains how the Guardian Spring Boot starter provides a lightweight solution for preventing duplicate API submissions and applying rate‑limiting, covering Maven dependencies, annotation and YAML configurations, key generation strategies, response handling modes, Redis versus local storage, context‑path compatibility, concurrency safety, and built‑in monitoring features.
API protectionBackendRedis
0 likes · 16 min read

Guardian is a lightweight Spring Boot starter that provides independent anti‑duplicate submission and rate‑limiting modules, offering annotation and YAML configuration, multi‑dimensional key scopes, customizable response modes, Redis or local storage, and built‑in monitoring, all illustrated with step‑by‑step code examples.
API protectionRedisSpring Boot
0 likes · 17 min read

This guide explains how to use PHP sessions to create a debounce function that limits rapid event firing and a token‑based mechanism that stops users from submitting the same form multiple times, complete with step‑by‑step code examples.
PHPSessiondebounce
0 likes · 4 min read

This article explains why duplicate order submissions occur in e‑commerce systems and presents a comprehensive solution using request tokens, interface idempotency, and Redis‑based distributed locks, complete with Spring Boot code examples and advanced optimization tips.
IdempotencyOrder Processingduplicate-submission
0 likes · 7 min read

This article explains why front‑end debouncing is insufficient for preventing duplicate orders, then walks through four backend strategies—local cache with AOP, Redis atomic operations, database unique indexes, and token verification—providing core principles, code examples, and pros/cons for each.
AOPRedisSpringBoot
0 likes · 18 min read

This article explains practical methods for protecting data exchanged with third‑party systems by using access tokens, timestamps, cryptographic signatures, and anti‑duplicate‑submission techniques, and provides complete Spring Boot code examples for token generation, validation, Redis storage, and request interception.
API SecuritySpring Bootbackend development
0 likes · 24 min read

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.
Order Processingduplicate-submissionpayment
0 likes · 5 min read

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

The article explains why API debounce is essential, identifies the types of endpoints that need it, and walks through two SpringBoot solutions—Redis‑based shared cache and Redisson distributed lock—complete with custom annotations, key generation, code samples, test results, and practical limitations.
JavaRedisRedisson
0 likes · 14 min read

This article explains the typical order‑to‑payment flow, identifies why payments can be lost or duplicated, and provides concrete backend strategies—such as intermediate payment states, timeout queries, idempotent notifications, and Redis‑based duplicate‑submission checks—to ensure reliable order processing.
Backendduplicate-submissionorder loss
0 likes · 5 min read

This article explains why duplicate form submissions occur, the risks they pose, and demonstrates a Spring Boot solution that uses a custom @RequestLock annotation together with Redis SETNX to generate a unique key and block rapid repeated requests, complete with project setup, code examples, and usage instructions.
AOPJavaRedis
0 likes · 12 min read

This article explains how to implement debounce to limit frequent event triggers and prevent duplicate form submissions in PHP by using session storage and token validation, providing step‑by‑step instructions and complete code examples.
PHPSessiondebounce
0 likes · 4 min read

This article explains how duplicate form submissions occur, outlines common prevention techniques such as token validation and timestamp checks, and demonstrates a practical SpringMVC interceptor implementation with token storage and scheduled cleanup to ensure request uniqueness and reduce server load.
BackendInterceptorJava
0 likes · 8 min read

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

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

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

This article explains how to prevent duplicate form submissions in web applications by disabling the submit button on the Vue3 front end and using a server‑generated token in ThinkPHP6 to verify request uniqueness, providing full code examples for both sides.
BackendThinkPHP6Vue3
0 likes · 7 min read

This article explains three practical techniques—CSRF token validation, read‑only cookie verification, and duplicate‑submission prevention—illustrated with complete PHP code examples, to help developers protect their web applications from cross‑site request forgery attacks.
CSRFduplicate-submissionhttp-only cookie
0 likes · 6 min read

This article explains the concept of idempotency, the common causes of duplicate submissions in web applications, and presents multiple backend solutions—including frontend button disabling, Post‑Redirect‑Get, session tokens, local locks with Content‑MD5, AOP aspects, and Redis distributed locks—accompanied by complete Java code examples.
AOPDistributed LockJava
0 likes · 15 min read

This article explains the typical payment order flow, identifies external and internal causes of order loss, and provides concrete backend strategies—such as intermediate payment states, timeout queries, idempotent handling, retry mechanisms, and Redis‑based duplicate‑submission protection—to ensure reliable order processing.
RetryTimeoutduplicate-submission
0 likes · 5 min read

This article explains how to create, configure, and apply custom Spring MVC interceptors in Spring Boot, including a practical example that uses Redis to block repeated requests within a short time window, with full code demonstrations.
InterceptorJavaSpring Boot
0 likes · 8 min read

This article explains how to prevent duplicate form submissions in a single‑node Java Spring Boot application by first simulating the user scenario, then showing front‑end button disabling, and finally presenting five back‑end idempotency implementations ranging from a simple HashMap to a reusable LRUMap‑based utility.
BackendJavaLRUMap
0 likes · 17 min read
