Tagged articles

Redis Lua

3 articles · Page 1 of 1
Linyb Geek Road
Linyb Geek Road
Apr 29, 2026 · Backend Development

How Leading Tech Companies Elegantly Avoid the Delayed Double Delete Pitfall

The article dissects why the delayed double‑delete cache‑consistency pattern breaks under high traffic, illustrates Alibaba’s painful experience, and then details two production‑grade alternatives—lease‑based token control and version‑number comparison—explaining their principles, Redis‑Lua implementations, and trade‑offs.

Cache consistencyRedis Luadelayed double delete
0 likes · 8 min read
How Leading Tech Companies Elegantly Avoid the Delayed Double Delete Pitfall
Tencent Cloud Developer
Tencent Cloud Developer
Nov 13, 2024 · Backend Development

Design and Implementation of an E‑commerce Coupon System

The article details a high‑concurrency e‑commerce coupon system that separates creation and distribution, uses Redis‑Lua atomic stock deduction with asynchronous replenishment and coupon generation, employs a lightweight distributed‑transaction table, and adds bucket and batch optimizations to safely handle tens of thousands of TPS.

Coupon SystemHigh concurrencyRedis Lua
0 likes · 11 min read
Design and Implementation of an E‑commerce Coupon System
IT Architects Alliance
IT Architects Alliance
May 24, 2022 · Backend Development

How to Ensure API Idempotency and Implement Distributed Rate Limiting in Java

This guide explains the principles of API idempotency using unique business IDs or token mechanisms, explores distributed rate‑limiting dimensions, compares token‑bucket and leaky‑bucket algorithms, and provides concrete implementations with Guava RateLimiter, Nginx configuration, and a Redis‑Lua script integrated into Spring Boot, including annotation‑based AOP for easy usage.

API idempotencyGuava RateLimiterLeaky Bucket
0 likes · 19 min read
How to Ensure API Idempotency and Implement Distributed Rate Limiting in Java