Tag

seckill

0 views collected around this technical thread.

Architect's Guide
Architect's Guide
Apr 2, 2025 · Backend Development

Implementing High‑Concurrency SecKill (Flash Sale) in SpringBoot: Locking, Transaction, and Queue Strategies

This article demonstrates how to simulate a high‑concurrency flash‑sale scenario with SpringBoot and MySQL, analyzes why naive lock‑and‑transaction code causes overselling, and presents six refined solutions—including early locking, AOP, pessimistic and optimistic database locks, blocking queues, and Disruptor queues—along with performance observations and a concise summary.

DatabaseLockQueue
0 likes · 22 min read
Implementing High‑Concurrency SecKill (Flash Sale) in SpringBoot: Locking, Transaction, and Queue Strategies
Cognitive Technology Team
Cognitive Technology Team
Feb 27, 2025 · Backend Development

High‑Concurrency Seckill Solutions: Redis + MQ, Pressure Distribution, and Inventory Hint Techniques

This article examines common industry practices for handling massive e‑commerce flash‑sale traffic, detailing pressure‑distribution, Redis + MySQL, Redis + MQ, and Alibaba's Inventory Hint approaches, and explains how Lua scripts, transactional MQ messages, and database hints together ensure atomic stock deduction and consistency under extreme load.

BackendInventory HintMQ
0 likes · 13 min read
High‑Concurrency Seckill Solutions: Redis + MQ, Pressure Distribution, and Inventory Hint Techniques
Code Ape Tech Column
Code Ape Tech Column
Jan 8, 2025 · Backend Development

Implementing High‑Concurrency Flash‑Sale (Seckill) in SpringBoot: Locking Strategies, Queue Solutions, and Performance Testing

This article demonstrates how to simulate a high‑concurrency flash‑sale scenario using SpringBoot, MySQL, Mybatis‑Plus and JMeter, analyzes the overselling problem caused by premature lock release, and presents seven solutions—including lock‑first strategies, AOP, pessimistic and optimistic locks, and queue‑based approaches—along with code samples and test results.

AOPDatabaseJMeter
0 likes · 19 min read
Implementing High‑Concurrency Flash‑Sale (Seckill) in SpringBoot: Locking Strategies, Queue Solutions, and Performance Testing
Top Architect
Top Architect
Jun 29, 2024 · Backend Development

Backend Implementation of a SpringBoot-Based Seckill (Flash Sale) Project

This article details the design and implementation of a Java SpringBoot seckill system, covering its architecture, technology stack, double‑MD5 password encryption, distributed session management with Redis, unified exception handling, page and object caching, static page generation, memory‑flag plus Redis pre‑decrement and RabbitMQ asynchronous order processing, oversell prevention, and API rate limiting, accompanied by key code snippets.

BackendJavaRabbitMQ
0 likes · 11 min read
Backend Implementation of a SpringBoot-Based Seckill (Flash Sale) Project
Architect's Guide
Architect's Guide
Feb 27, 2024 · Backend Development

Implementation Details of a Simple Seckill (Flash Sale) System Using SpringBoot

This article presents a step‑by‑step technical walkthrough of a SpringBoot‑based Seckill project, covering password MD5 hashing, distributed session management, unified exception handling, page and object caching, static page generation, memory flag with Redis pre‑decrement and RabbitMQ async processing, oversell prevention, and API rate limiting, followed by a visual demonstration of the system’s UI and source code download.

Backend DevelopmentRabbitMQRedis
0 likes · 9 min read
Implementation Details of a Simple Seckill (Flash Sale) System Using SpringBoot
Java Architect Essentials
Java Architect Essentials
Dec 3, 2023 · Backend Development

Simplified Seckill Project System Overview and Implementation Details

This article presents a concise tutorial on building a flash‑sale (Seckill) system with SpringBoot, MySQL, Redis, RabbitMQ and a basic HTML/JQuery front‑end, covering architecture, key features, code snippets, over‑selling prevention, rate limiting, and deployment screenshots.

BackendJavaMySQL
0 likes · 8 min read
Simplified Seckill Project System Overview and Implementation Details
Top Architect
Top Architect
Nov 22, 2023 · Backend Development

Solving Product Overselling in High‑Concurrency Scenarios: Seven Implementation Methods

This article analyzes the overselling problem that occurs during high‑concurrency flash‑sale (seckill) operations and presents seven concrete solutions—including improved lock placement, AOP‑based locking, three types of database locks, optimistic locking, a blocking‑queue approach, and a Disruptor queue—complete with SpringBoot 2.5.7 code samples, performance test results, and practical recommendations.

DistributedSystemsSpringBootconcurrency
0 likes · 20 min read
Solving Product Overselling in High‑Concurrency Scenarios: Seven Implementation Methods
Architecture Digest
Architecture Digest
Oct 20, 2023 · Backend Development

Simplified Seckill Project: Architecture, Core Implementations, and Code Overview

This article introduces a simplified Seckill (flash‑sale) system built with SpringBoot, detailing its overall architecture, key backend techniques such as distributed sessions, Redis caching, RabbitMQ asynchronous ordering, security measures, oversell prevention, rate limiting, and provides essential code snippets and deployment screenshots.

BackendJavaRabbitMQ
0 likes · 8 min read
Simplified Seckill Project: Architecture, Core Implementations, and Code Overview
Code Ape Tech Column
Code Ape Tech Column
Jul 25, 2023 · Backend Development

High‑Concurrency Seckill Implementation in SpringBoot: Locking Strategies and Performance Testing

This article demonstrates how to simulate a high‑concurrency flash‑sale scenario using SpringBoot, MySQL and JMeter, analyzes why naive lock‑and‑transaction code causes overselling, and presents six refined solutions—including controller‑level locking, AOP locking, pessimistic and optimistic database locks, and queue‑based approaches—along with performance test results.

AOPJMeterLock
0 likes · 20 min read
High‑Concurrency Seckill Implementation in SpringBoot: Locking Strategies and Performance Testing
Architect's Guide
Architect's Guide
May 21, 2023 · Backend Development

Solving Product Overselling in High‑Concurrency Flash‑Sale (Seckill) with Multiple Locking Strategies

This article analyzes the overselling problem that occurs during high‑concurrency flash‑sale scenarios, demonstrates seven concrete implementations—including improved lock, AOP lock, pessimistic and optimistic database locks, blocking‑queue and Disruptor‑based queues—using SpringBoot, MySQL and JMeter, and summarizes their performance characteristics and trade‑offs.

DatabaseJavaQueue
0 likes · 18 min read
Solving Product Overselling in High‑Concurrency Flash‑Sale (Seckill) with Multiple Locking Strategies
Top Architect
Top Architect
Feb 9, 2023 · Backend Development

High-Concurrency Seckill Implementation in SpringBoot: Locking, Transaction, and Queue Strategies

This article demonstrates how to simulate high‑concurrency flash‑sale scenarios using SpringBoot, MySQL, and JMeter, and compares seven approaches—including lock‑based, AOP, pessimistic and optimistic locking, and queue‑based solutions such as BlockingQueue and Disruptor—to prevent overselling and improve performance.

QueueSpringBootconcurrency
0 likes · 19 min read
High-Concurrency Seckill Implementation in SpringBoot: Locking, Transaction, and Queue Strategies
Top Architect
Top Architect
Aug 4, 2022 · Backend Development

Designing a High‑Concurrency Ticket‑Seckill System with Load Balancing, Redis, and Go

This article explains how to build a high‑concurrency ticket‑seckill service that can handle millions of requests by combining distributed load‑balancing (OSPF, LVS, Nginx weighted round‑robin), a pre‑deduction stock strategy using local memory and Redis with Lua scripts, and a Go‑based HTTP server, and it demonstrates performance testing results.

GoLoad BalancingRedis
0 likes · 19 min read
Designing a High‑Concurrency Ticket‑Seckill System with Load Balancing, Redis, and Go
Top Architect
Top Architect
Nov 29, 2021 · Backend Development

Design and Implementation of a High‑Concurrency Flash Sale (Seckill) System

This article presents a comprehensive analysis of flash‑sale (seckill) business characteristics, technical challenges, and architectural principles, offering detailed backend design solutions—including request interception, queue management, database sharding, caching strategies, optimistic locking, and anti‑cheating measures—to achieve high‑throughput, low‑latency processing for millions of concurrent users.

BackendDatabaseQueue
0 likes · 36 min read
Design and Implementation of a High‑Concurrency Flash Sale (Seckill) System
Top Architect
Top Architect
Nov 27, 2021 · Backend Development

Design and Implementation of a High‑Concurrency Flash‑Sale (Seckill) System

The article explains the characteristics of flash‑sale scenarios, presents core design principles such as rate limiting, peak shaving, asynchronous processing and scalability, and details a complete backend and frontend architecture—including Redis‑based queueing and caching—to build a robust, high‑throughput seckill system.

Rate LimitingRedisasynchronous processing
0 likes · 12 min read
Design and Implementation of a High‑Concurrency Flash‑Sale (Seckill) System
Top Architect
Top Architect
Oct 15, 2021 · Backend Development

Design and Challenges of High‑Concurrency Flash‑Sale (Seckill) Systems

The article analyzes flash‑sale business flow, outlines the technical challenges of massive concurrent requests, and presents a comprehensive backend architecture—including request isolation, queueing, caching, sharding, replication, optimistic locking, and overload protection—to ensure correctness, scalability, and availability of seckill services.

backend architecturecachingdatabase sharding
0 likes · 34 min read
Design and Challenges of High‑Concurrency Flash‑Sale (Seckill) Systems
Selected Java Interview Questions
Selected Java Interview Questions
Sep 9, 2021 · Backend Development

Preventing Overselling in Flash‑Sale (SecKill) Systems with a Redis Distributed Lock

This article explains how a naïve SpringBoot SecKill implementation can cause overselling, then introduces Redis commands (SETNX, EXPIRE, GETSET) and a custom RedisLock component to achieve safe distributed locking, avoid deadlocks, and ensure accurate inventory updates during high‑concurrency flash‑sale events.

Distributed LockJavaRedis
0 likes · 10 min read
Preventing Overselling in Flash‑Sale (SecKill) Systems with a Redis Distributed Lock
Java Captain
Java Captain
Mar 28, 2021 · Backend Development

Analysis and Solutions for Redis Distributed Lock Over‑selling in High‑Concurrency Seckill Scenario

This article examines a real‑world flash‑sale incident where Redis distributed locks failed, causing severe overselling, and presents root‑cause analysis, safer lock implementation with Lua scripts, atomic stock handling, refactored Java code, and deeper reflections on lock necessity and further optimizations.

Distributed LockJavaLua
0 likes · 10 min read
Analysis and Solutions for Redis Distributed Lock Over‑selling in High‑Concurrency Seckill Scenario
Wukong Talks Architecture
Wukong Talks Architecture
Oct 21, 2020 · Backend Development

Flash Sale (Seckill) System Architecture Explained Through a Sci‑Fi Narrative

This article uses a sci‑fi story set on the A‑731 e‑commerce planet to illustrate the core principles of flash‑sale systems, including single‑responsibility services, independent deployment, stock pre‑heating, request encryption, static‑dynamic separation, traffic shaping, rate limiting, queue‑based load smoothing, and the role of Redis, Nginx, CDN and Redisson in handling massive order spikes.

Rate LimitingRedisflash sale
0 likes · 10 min read
Flash Sale (Seckill) System Architecture Explained Through a Sci‑Fi Narrative
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 6, 2020 · Backend Development

Design and Implementation of a High-Concurrency WeChat Red Packet and Seckill System Using Redis and Bloom Filters

This article details the business flow analysis, functional decomposition, database schema, API design, and high‑concurrency implementation of a WeChat red‑packet and seckill system, showcasing Redis atomic decrement, Bloom filter usage, Lua scripts, JMeter load testing, and integration with SpringBoot.

Bloom FilterJavaRedis
0 likes · 11 min read
Design and Implementation of a High-Concurrency WeChat Red Packet and Seckill System Using Redis and Bloom Filters
Java Captain
Java Captain
Sep 5, 2020 · Backend Development

Design and Implementation of a High‑Concurrency WeChat Red Packet System Using Redis and Bloom Filter

This article details the end‑to‑end design, database schema, Redis atomic operations, Bloom filter integration, JMeter load testing, and SpringBoot implementation for a high‑concurrency WeChat red‑packet (抢红包) service, including flash‑sale (秒杀) techniques and Lua scripts for atomic stock handling.

Bloom FilterDatabaseJava
0 likes · 10 min read
Design and Implementation of a High‑Concurrency WeChat Red Packet System Using Redis and Bloom Filter