Font Size: a A A

Design And Implementation Of API Service Middleware

Posted on:2020-06-21Degree:MasterType:Thesis
Country:ChinaCandidate:W HuangFull Text:PDF
GTID:2428330596975758Subject:Engineering
Abstract/Summary:PDF Full Text Request
With the rapid development of Internet technology,the number of Internet users in China is increasing,and business data is changing from a single relational feature to a complex diversity.The exponential increase of concurrency pressure and complex data structure bring great challenges to the application of traditional architecture patterns.To address these challenges,the "micro-service" architecture has emerged.But for all the pros and cons,a "microservice" architecture is not a panacea.When the number of "micro-services" in the system reaches a certain number,the system will become complex and difficult to manage.Thus,many major application vendors are building their own distributed solutions,such as ali's Dubbo+Zk,Pivotal's SpingCloud and Tencent's Tars.This thesis analyzes and compares these distributed frameworks,and discusses the reasons for selecting Tars and Springboot for building distributed service middleware.The middleware is composed of three parts: client,server and resource management.Each part is built with Springboot+Maven+ mybatis-plus.The client is mainly responsible for providing external interface services,and encapsulating basic functions such as user permissions,data security and parameter verification.The server side realizes the specific business logic,and at the same time increases the implementation of the current mainstream database access logic,and the core data cache,so as to enhance the ability of the server side to connect with the downstream system.The resource management terminal mainly manages the permissions of system users and the interface provided externally.Finally,combining the advantages of Tars in DevOps,it allows developers to easily monitor and manage published "micro services",and allows developers to put more efforts into specific business development.This thesis consists of eight parts.The first two chapters briefly describe the background,significance and related technologies of this thesis.Chapter three introduces the architecture of the whole system,and describes the function and general design of each module.Chapters 4,5 and 6 describe in detail the creation of the TARS management platform and the implementation details of each module,and show some of its core code.Chapter 7 mainly tests the functionality,security and concurrency of the system,and summarizes and analyzes the test results.Chapter 8 mainly discusses the problems existing in the system and the direction of improvement in the future.
Keywords/Search Tags:Tars, High availability, Docker, Shiro, Redis cluster
PDF Full Text Request
Related items