Font Size: a A A

The Design And Implementation Of Sharing Activity System Based On Microservice Architecture

Posted on:2019-02-26Degree:MasterType:Thesis
Country:ChinaCandidate:Q ZhouFull Text:PDF
GTID:2348330545485123Subject:Engineering
Abstract/Summary:PDF Full Text Request
In response to market competition,taobao developed a sharing activity system to attract more social traffic by sharing behaviors.However,the original sharing activity system is based on the development of a specific business model,with a fixed configuration of rules,a single sharing mode and limited prize types,which can not respond quickly to changes in the market.The rapid change of sharing mode puts forward higher requirements for the flexibility of the activity configuration.The system adopts the microservice architecture as a whole,which builds the micro services based on the Spring Boot technology framework.At the same time,the system encapsulates the JDBC operations through the Mybatis framework and introduces the Redis as an in-memory database to reduce database load and the React as a front-end framework.Simultaneously,the system constructs a data warehouse with the subject of activity data,loads the log data in batch based on Druid and obtains the statistical data through the OLAP multi-dimensional statistical analysis.In this thesis,mainstream sharing modes are analyzed,and the parameters of sharing activities are abstracted into atomic component modules according to the minimum business logic,and the flexible configuration of sharing activities is realized through the assembly of different rule components.The system is divided into an activity management platform and an activity server from the user's point of view.The management platform provides role management,activity creation,activity management and data visualization functions for activity planners.The server allows users to query history records and participate in activities.In the design and implementation phase,the system is divided into platform front-end service,management service and activity execution service,and each micro-service is independently designed and developed.The front-end service creates page templates of the rule components and provides the user interface of the management platform.The management service adopts a layered architecture to realize the server functions of the platform.The activity execution service provides user-activity programming interfaces to implement the processing logic of each rule component and divides the user participation process into a series of activity nodes.Each activity node instantiates the component processing objects through the reflection mechanism and executes the rule components in a chain to realize its business logic through the chain of responsibility design pattern.The management service and execution service use isolated databases to store data.The execution service uses database sharding strategy to divide the data horizontally and introduces the in-memory database to improve the system performance.Up to now,the system has been deployed and used effectively.
Keywords/Search Tags:Microservice architecture, rule component, Chain of Responsibility Design Pattern
PDF Full Text Request
Related items