Font Size: a A A

Design And Implementation Of Cross-Container Communication Framework For Microservice

Posted on:2023-03-23Degree:MasterType:Thesis
Country:ChinaCandidate:Z H LinFull Text:PDF
GTID:2568307061951269Subject:Software engineering
Abstract/Summary:PDF Full Text Request
With the rapid development of internet technology,the scale of application systems continues to expand,and the software architecture gradually evolves from a single vertical architecture to a distributed architecture.The microservice architecture is a distributed architecture that splits complex business logic into sub-services or sub-modules with single function,which have the advantages of low coupling and flexible expansion.At the same time,the hardware requirement of the split components is lower,easy to deploy and update,and has now been widely used in domestic and foreign internet companies.Distributed architectures such as microservices bring convenience to developer,but also bring the problem of difficulty in monitoring a single service,that is,there is the problem of difficult communication with containers in sub-services.In addition,unified logs for sub-service containers are also issues with ingestion and log delivery.To solve the above problems,a cross-container communication framework for microservice is designed and implemented in this paper.It is composed of container communication module,log collection module,transmission information encryption module and file format conversion module.To solve the problem that it is difficult to communicate with the sub-service container from the outside,a container communication module is designed,which can implement communication with the application container without the perception of the application container according to the needs of user.On this basis,a log collection module for monitoring the application program is designed,so that users can know the running status of the application program in time;at the same time,the transmission information encryption module is implemented to ensure the security of information transmission.After collecting logs,a file format conversion module is designed to generate program running track.The specific work is as follows:(1)To solve the problem that external communication with sub-service containers is difficult,the principles of Dynamic Admission Control and sidecar containers are analyzed,and a cross-container communication framework based on dynamic injection is designed,and the communication between external platform and application containers by request forwarding is implemented in this paper.And it can support the extension of different request forwarding modes.(2)Aiming at the problems of low efficiency and leakage in the transmission process,a hybrid encryption algorithm is designed and implemented.On the one hand,RSA algorithm is improved to improve the efficiency and security of encryption;on the other hand,the security of information transmission is improved by combining the advantages and disadvantages of symmetric and asymmetric encryption algorithms.(3)Based on cross-container communication framework and hybrid encryption algorithm,a cross-container communication framework for microservice is designed and implemented,and two extensions are made based on the actual operation monitoring requirements in Kubernetes environment: supporting multiple log collection methods to improve the practicability of operation monitoring;a method of automatic conversion of log format is designed based on the chaotic running track of log generating program,which is convenient for subsequent analysis,monitoring and verification.(4)Cluster deployment and comprehensive testing of the cross-container communication framework for microservice in this paper are carried out to verify the correctness and performance of its cross-container communication,log collection,transmission encryption,and log format conversion functions,as well as the requirements for actual operation monitoring.support capability.The test results show that the framework can support microservices to communicate correctly across containers,and has practical performance in communication efficiency,encryption efficiency and log format conversion.In addition,it can effectively combine instrumentation tools and process verification tools to effectively support the monitoring and verification requirements in the micro-service system.
Keywords/Search Tags:Microservice, Communication, Log, Transmission security
PDF Full Text Request
Related items