Securing High-Concurrency Ticket Sales: A Framework Based on Microservice
Zhiyong Zhang *, Xiaoyan Zhang *, Xiaoqi Li · 2025
Read Securing High-Concurrency Ticket Sales: A Framework Based on Microservice by Zhiyong Zhang *, Xiaoyan Zhang *, Xiaoqi Li (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2512-24941.txt.
Introduction
Zhiyong Zhang, Xiaoyan Zhang, and Xiaoqi Li propose a microservice framework for railway ticket sales under extreme concurrency. Holiday peaks flood the system with simultaneous users, and a traditional monolithic design lacks fault tolerance and throughput for those surges. Splitting the system into microservices is paired with multiple security methods.
The goals are stability and data consistency when huge numbers of buyers compete for seats, a setting where overselling or lost orders are serious failures. Software architecture readers get a design for a critical public service. High-concurrency ticketing is a classic stress case for distributed systems, so the framework speaks to other flash-sale platforms too.
Catalog record
| CREATOR | Zhiyong Zhang *, Xiaoyan Zhang *, Xiaoqi Li |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 49 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2512-24941
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Securing High-Concurrency Ticket Sales: A Framework Based on Microservice Zhiyong Zhang *, Xiaoyan Zhang *, Xiaoqi Li Abstract \par\lx@frontmatter@fallback\@@numbered@section{section}{toc}{Abstract} The railway ticketing system is one of the most important public service infrastructure. In peak periods such as holidays, it is often faced with the challenge of high concurrency scenarios because of a large number of users accessing at the same time. The traditional aggregation architecture can not meet the peak user requirements because of its insufficient fault tolerance and low ability. Therefore, the system needs to use microservice architecture for development, and add multiple security methods to ensure that the system can have good stability and data consistency under high concurrency scenarios, and can respond quickly to user requests. This paper introduces the use of B/S architecture and Spring Cloud to design and develop a railway ticket purchase system that can maintain stability and reliability under high concurrency scenarios, and formulate multiple security design methods for the system. This system integrates a range of functions, such as real-time train inquiries, dynamic seat updates, online seat selection, and ticket purchasing, effectively addressing common problems associated with offline ticket purchasing, such as long queues and delayed information. It enables a complete online process from inquiry and booking to payment and refunds. Furthermore, the ”add passenger” function allows users to purchase tickets for others, extending the convenience of online ticketing to people with limited internet access. The system design prioritizes security and stability, while also focusing on high performance, and achieves these goals through a carefully designed architecture and the integration of multiple middleware components. After the completion of the system development, the core interface of the system is tested, and then the results are analyzed. The test data proves that the system has good ability and stability under high concurrency. Keywords: Security, Microservices, Spring Cloud, High Concurrency 1 INTRODUCTION As a critical public service system, the railway ticketing system must handle a massive volume of daily user requests, especially during peak periods when concurrent access can reach hundreds of millions of times. The system processes millions of transactions every day, including not only ticket purchases but also changes and cancellations. With the rapid popularization of online ticket purchase, more and more users are choosing to book tickets online, which puts greater pressure on the backend system. The traditional monolithic system architecture packages all functions together, and when faced with a large number of users grabbing tickets at the same time, the page often freezes, the operation is slow, and even the same ticket is sold repeatedly. This paper adopts a microservice architecture to build the railway ticketing system [ 3 ] , that is, to split the entire system into multiple independent modules such as ticket service, payment service, and order service. Multiple security mechanisms are added to ensure that the system runs smoothly and the data is not corrupted. Each module can be upgraded and maintained separately, so the overall scalability of the system is better. For example, when encountering peak ticket grabbing during holidays, the number of servers for the ticket service can be increased separately. Through this distributed deployment and traffic sharing method, the instantaneous high access volume can be effectively coped with [ 4 ] . The security of a ticketing system is built upon two core requirements: first, the ability to handle massive user traffic during normal operation, and second, maintaining data consistency across all nodes in the event of unexpected failures [ 3 ] . A single error can trigger a chain reaction of problems. For example, payment failures can lead to duplicate charges or missed payments, while delays in ticket inventory synchronization can result in overselling. These risks highlight the importance of building distributed ticketing systems based on a microservices architecture and rigorously reviewing their security. This is especially crucial during peak periods such as the annual Spring Festival travel rush, when the system must reliably support billions of ticket requests daily with near-perfect stability. Researchers and practitioners worldwide have made significant progress in the design and security of railway ticketing systems, particularly through the adoption of microservices architecture and related protective measures. To cope with peak demand, modern systems deploy distributed microservices, combined with caching and message queues, to reduce server load, accelerate response times, and minimize system downtime, ultimately providing users with a smoother experience [ 5 ] . The application of microservice architecture has been widely validated in major railway systems worldwide. For example, Amtrak, facing immense access pressure, rebuilt its online ticketing system using a microservice architecture [ 7 ] , deploying instances through cloud services and integrating technologies such as API gateways [ 8 ] and Spring Cloud [ 9 ] . This transformation significantly improved system stability during peak hours and enhanced the user experience. Similarly, European railway systems [ 10 ] , which must handle complex cross-border, high-concurrency scenarios, have adopted service meshes for service governance and utilized Kubernetes for containerized management [ 11 ] . This study designed and developed a stable and secure railway ticketing system based on a microservice architecture. By building an efficient online ticketing platform, it meets people’s needs for convenient travel, allowing users to complete ticket inquiries, reservations, payments, and cancellations without leaving home. The system includes functions such as train schedule inquiry, real-time updates of available tickets, and online seat selection, solving problems such as long queues and information delays associated with offline ticket purchases. Furthermore, the system adds features such as allowing users to purchase tickets for multiple passengers, enabling those without internet access to enjoy convenient ticketing services. This paper conducts an in-depth study of the system’s backend framework and security design to ensure system stability, and elaborates on the implementation process of key functional modules. The research includes theoretical analysis, technical design, implementation of core functions (including security measures), and comprehensive performance testing. In the system design phase, a system functional requirements structure diagram was designed based on application needs, technology selection was determined, and a system architecture diagram was drawn. Simultaneously, the system’s security design scheme was analyzed, a database E-R diagram was designed, and the data table design was improved based on business relationships. In the system implementation phase, the implementation of the main functional modules is described, the system’s security design scheme is analyzed in detail, and performance testing was conducted on the system’s core interfaces. The main research content and innovations of this paper are as follows. (1) Design a microservice-based and high-availability traffic control scheme. The system, which comprises five modules (membership, ticketing, order, payment, and gateway), uses Nacos for their management. Furthermore, Sentinel is introduced to achieve precise circuit breaking, degradation, and interception of abnormal traffic, thereby improving system availability. (2) Implement a packaged cache component library, use Bloom Filter plus Redis to solve the cache penetration problem, intercept 99% of invalid requests, and reduce the core interface response time from 200ms to 30ms. (3) The algorithm for generating distributed globally unique IDs is optimized by proposing to replace UUID with the Snowflake algorithm, which is customized according to the specific scenario within the system. This achieves ordered and monotonically increasing ID generation, is more index-friendly for databases, and improves write performance.