用微服务架构提升航旅系统性能与可扩展性
Novel Architecture for Distributed Travel Data Integration and Service Provision Using Microservices
- 采用Redis缓存+Kafka/RabbitMQ消息队列+MongoDB/PostgreSQL混合存储
- 数据一致性达99.5%,延迟低于75毫秒,每秒处理1050个事件
- 支持高并发场景,适合对实时性要求高的航旅预订系统
本文提出一种面向航空预订系统的微服务架构,以提升灵活性与性能。该架构融合Redis缓存、Kafka与RabbitMQ消息系统、MongoDB与PostgreSQL两种存储,结合OAuth2与JWT实现安全通信。在关键指标上,数据一致性达到99.5%,数据传播延迟低于75毫秒,系统吞吐量达每秒1050事件,高峰时段仍保持可用。Redis缓存命中率达92%,显著减轻数据库压力,响应速度加快。通过Docker与Kubernetes实现水平扩展,系统具备良好可伸缩性。错误率仅为0.2%,保障了实时数据集成的高效性。该架构安全、快速、可扩展,适用于高需求航旅服务场景。
原文摘要 · Abstract (English)
This paper introduces a microservices architecture for the purpose of enhancing the flexibility and performance of an airline reservation system. The architectural design incorporates Redis cache technologies, two different messaging systems (Kafka and RabbitMQ), two types of storages (MongoDB, and PostgreSQL). It also introduces authorization techniques, including secure communication through OAuth2 and JWT which is essential with the management of high-demand travel services. According to selected indicators, the architecture provides an impressive level of data consistency at 99.5% and a latency of data propagation of less than 75 ms allowing rapid and reliable intercommunication between microservices. A system throughput of 1050 events per second was achieved so that the acceptability level was maintained even during peak time. Redis caching reduced a 92% cache hit ratio on the database thereby lowering the burden on the database and increasing the speed of response. Further improvement of the systems scalability was done through the use of Docker and Kubernetes which enabled services to be expanded horizontally to cope with the changes in demand. The error rates were very low, at 0.2% further enhancing the efficiency of the system in handling real-time data integration. This approach is suggested to meet the specific needs of the airline reservation system. It is secure, fast, scalable, all serving to improve the user experience as well as the efficiency of operations. The low latency and high data integration levels and prevaiing efficient usage of the resources demonstrates the architecture ability to offer continued support in the ever growing high demand situations.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。