计算机与现代化

• 应用与开发 • 上一篇    下一篇

高并发高可用零售O2O交易系统的架构设计与业务实现

  

  1. (1.上海交通大学软件学院,上海200240;2.电子科技大学软件学院,四川成都611731)

  • 收稿日期:2015-12-17 出版日期:2016-04-14 发布日期:2018-09-30
  • 作者简介:王小戏(1990-),男,河南濮阳人,上海交通大学软件学院硕士研究生,研究方向:高可用分布式系统与图计算; 吴刚(1973-),男,副教授,研究方向:自适应分布式计算与海量数据存储; 王灏(1997-),男,电子科技大学软件学院本科生,研究方向:网络安全与分布式计算。

Architecture Design and Business Implementation of High Concurrency High Availability Retail O2O Trade System

  1. (1. School of Software, Shanghai Jiao Tong University, Shanghai 200240, China;

    2. School of Software, University of Electronic Science and Technology of China, Chengdu 611731, China)

  • Received:2015-12-17 Online:2016-04-14 Published:2018-09-30

摘要:

近些年电子商务高速发展,传统零售业受到巨大冲击,转型O2O为大势所趋。零售O2O融合了线上线下交易场景,需要一个高并发高可用的系统支撑。本文针对零售O2O交易系统,分别从系统架构设计和业务逻辑实现2方面,研究并提出一系列高并发、高可用策略。从架构设计的角度,提出并介绍分层解耦、集群负载均衡、混合数据存储、静态化分离的策略;从业务实现的角度,提出并介绍订单库存分区缓存、订单事务降级、库存一致性、请求限号排队的策略。实验证明,这些策略可以有效提升系统的并发性、可用性,具有重要实践参考价值。

关键词: 零售O2O系统, 高并发, 高可用, 架构设计, 业务实现

Abstract:

With the fast development of e-commerce in recent years, traditional retail industry declines. Retail industry has a trend to change into O2O mode. Retail O2O combines online scenario with offline scenario. It needs a high concurrency and high availability supporting system. We studied and proposed a series of system strategies to build a high concurrency and high availability retail O2O system, both in architecture design and business implementation. On architecture design aspect, we proposed the strategies including: hierarchical decoupling, clustering load balance, hybrid data storage, static separation. On business implementation aspect, we proposed the strategies including: order-stock caching, transaction degrade, stock consistency, request queueing. Experiment shows all of the strategies are very effective and are of practical reference value.

Key words:

text-indent: 21pt">retail O2O system, high concurrency, high availability, architecture design, business implementation

中图分类号: