Tag

duplicate-order

1 views collected around this technical thread.

Lobster Programming
Lobster Programming
May 14, 2025 · Backend Development

How to Prevent Duplicate Orders with Anti‑Replay Tokens and Redis

This article explains how to prevent duplicate order submissions during high‑traffic e‑commerce events by using a server‑generated anti‑duplicate token stored in Redis, detailing the token acquisition, validation flow, and handling of repeated requests to ensure inventory integrity and accurate financial reconciliation.

Redisanti-replay-tokenbackend
0 likes · 4 min read
How to Prevent Duplicate Orders with Anti‑Replay Tokens and Redis
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
Architecture Digest
Architecture Digest
May 6, 2023 · Backend Development

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

The article explains how to achieve idempotent order creation and update in distributed systems by using database transactions, unique order identifiers, Redis locks, and version columns to prevent duplicate submissions and resolve the ABA anomaly, ensuring data consistency and reliable user experience.

ABAIdempotencyTransaction
0 likes · 8 min read
Ensuring Idempotency in Order Services: Preventing Duplicate Orders and Solving the ABA Problem