| With the continuous development of the economy,and the rising purchasing power of people.Today’s cars have gradually become a necessity of life.There are thousands of parts in a car,and different brands of cars require different specifications for the same part during car maintenance.At the same time,the market size of the automotive aftermarket has gradually increased exponentially.At the same time,in the era of the combination of the Internet and e-commerce,convenient online shopping saves people a lot of time.Therefore,the offline automotive aftermarket is transforming into an online automotive aftermarket.The online mall relies on the e-commerce system to operate.In the case of different commodity types,quantities,prices,etc.,a single architecture model cannot carry such a large project scale,and is not suitable for agile development.Therefore,the microservice architecture model was born.However,when microservices are used as distributed systems,there are the complexity of calling between multiple applications and transaction problems between multiple databases.And the distributed e-commerce system will involve inventory operations when it performs settlement,order,return,rejection and other operations under high concurrency.Therefore,the emergence of a highly available inventory system with high concurrency is inevitable.This paper first introduces the background of the project,compares the development status of the same industry and similar systems at home and abroad,and clarifies the necessity of the project.Then it briefly describes the technical theory involved in the project,analyzes the requirements of the system in detail,and confirms the research and development goals of the project.Furthermore,the project has been designed in general and in detail,and the entire system is divided into six functional modules: inventory pre-occupation,change,sourcing,inquiry,contract performance,and account reconciliation.During the research and development process,this project adopts the mainstream SSM framework,uses the Dubbo framework to realize remote calls between distributed systems,uses Rabbit MQ message queues for inter-system communication,and uses My SQL and Redis for data storage.After the development is completed,test cases are designed for functions,and functional tests are performed at the method,module,and system levels,and the performance of the system is tested with the help of stress testing tools to ensure that the system runs stably under actual online traffic.Finally,the process of project realization and thesis writing is summarized,and the future development direction of the project is prospected.The stock center has been running smoothly since it was put into use,and it is responsible for the full-link stock flow from the browsing of products to the final product receipt,which strongly supports the development of the e-commerce business after the automobile. |