Tagged articles
Coupon System
19 articles · Page 1 of 1
The article demonstrates how the Decorator Pattern solves coupon stacking, order sensitivity, and class explosion problems in e-commerce by composing discount calculators recursively, with Java implementation examples and real-world JDK/Servlet references.
Class ExplosionComposition Over InheritanceCoupon System
0 likes · 13 min read

The article explains how a production‑grade coupon‑grab service can survive millions of requests per second by treating rate limiting as a business admission layer, separating stock capping from throttling, making explicit CAP trade‑offs, and implementing a hybrid Redis‑based token‑bucket limiter with local fallback, monitoring, and deployment best practices.
CAP theoremCoupon SystemKubernetes
0 likes · 28 min read

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 SystemRedis Luadistributed transaction
0 likes · 11 min read

This article details the end‑to‑end design of a coupon system for a rental listing platform, covering business flow, database schema, state management, caching strategies, distributed locking, and optimization techniques using design patterns, Redis, MySQL, and message queues.
CachingCoupon Systembackend architecture
0 likes · 20 min read


HomeTechMar 15, 2023 · Backend Development
This article details the architecture, component‑based design, dynamic template generation, batch processing, activity management, and technical challenges such as custom component rendering, condition‑expression creation, and high‑concurrency coupon issuance for a scalable e‑commerce coupon platform.
Coupon SystemDynamic Templatesbackend architecture
0 likes · 19 min read

Facing a four‑hour coupon‑calculation bottleneck at eLong, I explored Storm’s stream‑processing model, identified the data‑extraction stage as the weak link, refactored the hotel‑pull service, leveraged RocketMQ for threading, and ultimately reduced full‑batch processing time to just over an hour.
Coupon SystemJavaRocketMQ
0 likes · 12 min read

This article presents a complete end‑to‑end design of a coupon system for a rental‑listing platform, covering business flow, database schema, activity management, coupon issuance, binding, user redemption, state‑machine implementation, caching strategies, stock deduction, redemption handling, and future scalability optimizations.
Coupon Systembackend architecturedatabase design
0 likes · 20 min read

This article details the business flow, database schema, micro‑service architecture, caching strategies, state‑machine implementation, and concurrency handling for building a robust coupon system that enables merchants to bind coupons to rental listings and attract end‑users.
Coupon SystemState Patternbackend architecture
0 likes · 19 min read


21CTONov 19, 2022 · Backend Development
This article details the end‑to‑end design of a coupon system for a rental listing platform, covering business flow, MySQL table schemas, activity lifecycle management, state‑machine and observer patterns, high‑concurrency claim handling with Redis and MQ, and future scalability optimizations.
Coupon Systembackend designdatabase schema
0 likes · 20 min read

This article details the design and implementation of a coupon system for a rental platform, covering business flow, database schema, backend services, caching strategies, state management, and future optimization directions to ensure reliable coupon distribution and redemption.
CachingCoupon Systembackend design
0 likes · 20 min read

This article details the end‑to‑end design of a high‑performance coupon system for a rental platform, covering business flow, database schema, micro‑service interactions, caching strategies, state‑machine handling, and practical solutions for concurrency and consistency challenges.
CachingCoupon SystemMQ
0 likes · 20 min read

Alibaba's coupon package evolved from a 2014 PC‑only tool to a mobile‑centric, marketing‑driven platform, and now to a user‑asset‑center architecture that consolidates assets, upgrades the tech stack, unifies logging, optimizes Docker, and implements performance cuts that shrink machine usage and request expansion by over 90%.
Coupon Systemarchitectureproduct evolution
0 likes · 13 min read

This article explains the end‑to‑end design of a coupon system for e‑commerce, covering promotion types, core workflows, service architecture, database schema, distributed transaction handling, scaling strategies, rate limiting, and consistency mechanisms such as TCC.
Coupon SystemTCCbackend design
0 likes · 15 min read

This article details the evolution of Vivo's e‑commerce coupon platform, covering its business drivers, architectural redesign, sharding strategy, multi‑mode issuance, high‑performance safeguards, and a step‑by‑step zero‑downtime migration to a standalone service.
Coupon SystemDistributed LockSharding
0 likes · 17 min read

This article details the JD Daojia coupon system's high‑traffic architecture, describing its multi‑layer design, Redis cache challenges such as large‑key and hot‑key issues, and practical optimization techniques including key redesign, expiration strategies, and active‑expire algorithms to improve performance and scalability.
Coupon Systemcache optimizationperformance
0 likes · 17 min read

Vivo Mall transformed its monolithic coupon component into an independent, sharded microservice through a rolling, dual‑write migration, employing Redis distributed locks, batch inserts, multi‑level caching, and read‑write splitting to eliminate bottlenecks, achieve non‑downtime deployment, and deliver scalable, high‑performance coupon handling for future growth.
CacheCoupon SystemIdempotency
0 likes · 17 min read

The article explains what business architecture is, outlines its key characteristics, describes a four‑step method (systematic thinking, decomposition, abstraction, pattern), and demonstrates the approach with a detailed coupon‑service case study, illustrating how to model goals, processes, and elements into a clear architecture diagram.
Coupon SystemProcess Modelingabstraction
0 likes · 11 min read


HomeTechSep 18, 2018 · Backend Development
This article presents a comprehensive design of a high‑availability red‑envelope system, covering its data model, generation, distribution, verification, query optimization, and product tagging strategies, while detailing the use of Redis, distributed locks, MQ, and caching to meet complex business scenarios.
Coupon SystemDistributed LockHigh Availability
0 likes · 15 min read

This article explains how to design and implement a high‑throughput, second‑level accurate coupon push notification service using Redis Sorted Sets, a distributed task cluster, dynamic queue configuration, and load‑balancing to handle millions of users within a minute.
Coupon SystemDistributed SchedulingScheduled Push
0 likes · 9 min read
