Tagged articles
14 articles
Page 1 of 1
Lin is Dream
Lin is Dream
Oct 22, 2025 · Backend Development

Designing High‑Performance Coupon Codes with Bit‑Level Encoding

This article explains how to design scalable, collision‑free coupon codes by using a custom binary layout, bit‑field allocation, checksum validation, obfuscation, Base62 encoding, and provides complete Java‑style algorithms and database schema for production use.

Code GenerationCouponDatabase design
0 likes · 15 min read
Designing High‑Performance Coupon Codes with Bit‑Level Encoding
php Courses
php Courses
Jan 26, 2024 · Backend Development

Implementing Coupon Activity Rule Management in a PHP E‑Commerce System

This article explains how to design database tables and develop a PHP‑based backend for managing e‑commerce coupon activity rules, covering creation, editing, deletion, and logical controls such as usage limits, with step‑by‑step guidance on forms, POST handling, validation, and database operations.

CouponDatabase designPHP
0 likes · 4 min read
Implementing Coupon Activity Rule Management in a PHP E‑Commerce System
Java Captain
Java Captain
Nov 18, 2022 · Backend Development

Preventing Coupon Over‑Issuance in High‑Concurrency Scenarios with Java, SQL, and Redis Distributed Locks

This article analyzes the coupon over‑issuance issue caused by concurrent requests, demonstrates why simple SQL updates can fail under load, and presents four solutions—including Java synchronized blocks, conditional SQL updates, Redis distributed locks, and Redisson’s lock implementation—to ensure atomic stock reduction and prevent negative inventory.

Coupondistributed-lock
0 likes · 11 min read
Preventing Coupon Over‑Issuance in High‑Concurrency Scenarios with Java, SQL, and Redis Distributed Locks
Top Architect
Top Architect
Aug 31, 2022 · Backend Development

Preventing Coupon Over‑Issuance: Concurrency Problems and Multi‑Layered Solutions

The article analyzes why a coupon‑distribution feature can over‑issue coupons under high concurrency, demonstrates the root cause with race conditions, and presents four practical solutions—including Java synchronized blocks, SQL row‑level checks, optimistic locking, and Redis‑based distributed locks using Redisson—to ensure safe coupon redemption.

Coupondistributed-lock
0 likes · 12 min read
Preventing Coupon Over‑Issuance: Concurrency Problems and Multi‑Layered Solutions
Java Backend Technology
Java Backend Technology
Aug 6, 2022 · Backend Development

How to Prevent Coupon Over‑Issuing in High‑Concurrency Scenarios

The article analyzes why a coupon‑distribution feature can issue more coupons than available under heavy load, explains the root cause of concurrent stock deductions, and presents four practical solutions—including Java synchronized blocks, SQL row‑level locking, Redis distributed locks, and Redisson—to reliably prevent over‑issuance.

BackendCouponJava
0 likes · 11 min read
How to Prevent Coupon Over‑Issuing in High‑Concurrency Scenarios
Sohu Tech Products
Sohu Tech Products
Aug 3, 2022 · Backend Development

Design and Evolution of the Price‑Increase Coupon Service for a C2B Recycling Platform

This article details the architectural evolution of a price‑increase coupon system used in a C2B digital‑product recycling business, covering its initial experimental phase, platformization, sharding, intelligent recommendation, Elasticsearch integration, and stability enhancements through NoSQL and read‑replica strategies.

CouponElasticsearchSystem Design
0 likes · 10 min read
Design and Evolution of the Price‑Increase Coupon Service for a C2B Recycling Platform
IT Architects Alliance
IT Architects Alliance
Jul 20, 2022 · Backend Development

Preventing Coupon Over‑Issuance in High‑Concurrency Scenarios: Java Locks, SQL Constraints, and Redis Distributed Locks

This article analyzes the coupon over‑issuance issue caused by concurrent requests, demonstrates how simple SQL updates can fail under load, and presents four solutions—including Java synchronized blocks, SQL row‑level locking, optimistic locking, and Redis‑based distributed locks with Redisson—to ensure atomic coupon allocation.

CouponJavaSQL
0 likes · 11 min read
Preventing Coupon Over‑Issuance in High‑Concurrency Scenarios: Java Locks, SQL Constraints, and Redis Distributed Locks
Zhuanzhuan Tech
Zhuanzhuan Tech
Jul 20, 2022 · Backend Development

Design and Evolution of the Price‑Increase Coupon Service for a C2B Recycling Platform

This article details the design, evolution, and scaling strategies of a price‑increase coupon system for a C2B digital product recycling platform, covering its initial experimental phase, platformization, sharding‑JDBC implementation, intelligent coupon recommendation, Elasticsearch integration, and operational optimizations for high‑throughput stability.

BackendCouponMicroservices
0 likes · 11 min read
Design and Evolution of the Price‑Increase Coupon Service for a C2B Recycling Platform
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jul 19, 2021 · Backend Development

Technical Architecture of an E‑commerce Coupon System

This article explains the complete technical design of an e‑commerce coupon system, covering data models, product‑page exposure, coupon claiming rules, high‑concurrency caching, MQ‑driven expiration handling, order‑time coupon calculation, redemption flow, and search‑based coupon indexing.

CouponElasticsearchMicroservices
0 likes · 10 min read
Technical Architecture of an E‑commerce Coupon System
Dada Group Technology
Dada Group Technology
Jul 2, 2021 · Backend Development

Design and Implementation of a High‑Availability Coupon Platform with Distributed Storage (JimDB)

This article describes the architecture and optimization of JD.com’s coupon platform, covering the JimDB distributed in‑memory database for core storage, a massive distributed task system for product coupons, high‑availability strategies for store coupons, and the overall middle‑platform design that ensures scalability, low latency, and data consistency across millions of daily transactions.

BackendCouponSystem Architecture
0 likes · 8 min read
Design and Implementation of a High‑Availability Coupon Platform with Distributed Storage (JimDB)
Programmer DD
Programmer DD
Dec 6, 2020 · Backend Development

Mastering WeChat Pay V3: Build Coupon APIs with Spring Boot Starter

This article walks through the complete process of integrating WeChat Pay V3 coupon and voucher features into a Spring Boot application, covering account setup, API workflow, model design, a reusable Spring Boot starter, configuration details, and sample code for creating and querying coupon batches.

CouponJavaSpring Boot
0 likes · 8 min read
Mastering WeChat Pay V3: Build Coupon APIs with Spring Boot Starter
macrozheng
macrozheng
Aug 9, 2019 · Databases

Mastering Coupon System Design: Database Schemas and UI Integration

This article provides a comprehensive walkthrough of the coupon feature's database tables—including definitions for coupons, coupon history, product relations, and category relations—along with screenshots of both admin and mobile interfaces that illustrate how these tables are used in an e‑commerce system.

CouponSQLdatabase schema
0 likes · 6 min read
Mastering Coupon System Design: Database Schemas and UI Integration