| The rapid development of e-commerce prompted the birth of seckill activity.The goods in seckill activities has a price well below the market price,their quantity and supply time are usually limited.In a seckill activity,a limited number of products will be sold at varying degrees of discount,which brings a huge temptation for customers.Once the seckill activity begins massive users rush in the system to place an order,the discounted products are usually sold out in seconds.In this case,a seckill system with high concurrency and high availability has very practical significance.This research cooperates with Huijin Department Store to expand its O2 O trading platform which is already online.In order to support seckill business better,an additional e-commerce seckill system needs to be developed to meet the needs of sales managers and customers.E-commerce platform seckill system needs to have the following features.First,seckill system needs to fully meet the functional needs and non-functional needs of sales managers and customers.Second,seckill system is an online system which attracts a large quality of customers,demanding high concurrency while meeting the stability requirements of 7 * 24 hours.Third,seckill systems need to meet non-functional requirements like configurability and scalability.Commodity seckill activities have a certain time limit,seckill systems need to have the ability to add or remove system resources on demand.In view of the above-mentioned system goals,this article designs and implements a seckill system for e-commerce platform.The main research work is as follows: First,this paper does a comprehensive analysis of the seckill system functional requirements and non-functional requirements.Second,we design and implement a seckill management system to meet the needs of administrators and suppliers to manage seckill activities and seckill items.Third,it design and implement a consumer-oriented distributed item seckill system.The design and implementation of consumer-oriented distributed commodity seckill system mainly includes the following: The system builds the gateway layer of commodity seckill system based on LVS and nginx to realize the efficient distribution of traffic and the restriction of malicious network traffic;The system is based on the springboot microservice framework,using dubbo distributed service call framework with hystrix fault tolerance mechanism to build a distributed service layer micro service cluster.The system consists of API access service,seckill service,seckill information acquisition service,order service and item details acquisition service.The design and implementation of all services fully considers the idempotent of service calls and service degradation when sevice call failed,which makes the system have good concurrency,availability and scalability.Based on the Redis Sentinel,the system builds a seckill system cache cluster with high availability.And in the process of system implementation,we fully considers the issues such as making full use of cache and cache breakdown problem to improve the concurrent capability of the system.Finally,based on the above implementation,the whole system has been tested for functionality and performance.The test results show that the system can meet the functional requirements and performance requirements of suppliers,administrators and users. |