CN113726603A - Full link performance monitoring algorithm based on micro-service architecture - Google Patents
Full link performance monitoring algorithm based on micro-service architecture Download PDFInfo
- Publication number
- CN113726603A CN113726603A CN202110971204.XA CN202110971204A CN113726603A CN 113726603 A CN113726603 A CN 113726603A CN 202110971204 A CN202110971204 A CN 202110971204A CN 113726603 A CN113726603 A CN 113726603A
- Authority
- CN
- China
- Prior art keywords
- service
- micro
- interface
- full link
- algorithm
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/133—Protocols for remote procedure calls [RPC]
Abstract
The invention relates to the technical field of micro-services, in particular to a full link performance monitoring algorithm based on a micro-service architecture. The full link performance monitoring algorithm based on the micro-service architecture comprises that a plurality of micro-service instances are independently deployed, and massive state metadata and attribute metadata need to be updated to a metadata cluster in real time; the micro service instances can be dynamically expanded or reduced, and the addition and deletion changes of the instances are updated to the metadata cluster in real time; the load balancing service is deployed in a cluster form and provides services, and the position information and the state information of the micro-service instance are obtained by reading a high-availability metadata cluster; and finally, the caller of the instance communicates with the specific micro-service instance in a direct connection mode through the REST interface provided by the instance. The invention is based on the REST interface provided by the example, and adopts a direct connection mode to communicate with the specific micro-service example, thereby realizing the full link monitoring under the micro-service architecture.
Description
Technical Field
The invention relates to the technical field of micro-services, in particular to a full link performance monitoring algorithm based on a micro-service architecture.
Background
Microservice is an emerging software architecture that splits a large single application and service into tens of supporting microservices.
More and more business applications in the cloud computing environment are deployed by adopting a micro-service architecture, and each micro-service is deployed in a container. The deployment of the functional modules is determined to be distributed by adopting a micro-service architecture, most of the functional modules are deployed and operated independently, are interacted with each other through buses and are stateless services, and the business flow of the foreground and the background can be processed and transmitted by a plurality of micro-services, so that the call relation and the business processing sequence among the micro-services need to be tracked, a complete call chain is formed, and the rapid positioning and the problem solving are facilitated.
Therefore, there is a need to provide a new full link performance monitoring algorithm based on micro service architecture to solve the above technical problems.
Disclosure of Invention
In order to solve the technical problem, the invention provides a full link performance monitoring algorithm based on a micro service architecture.
The full link performance monitoring algorithm based on the micro-service architecture comprises the following steps:
A. a plurality of micro-service instances are independently deployed, and massive state metadata and attribute metadata need to be updated to a metadata cluster in real time;
B. the micro service instances can be dynamically expanded or reduced, and the addition and deletion changes of the instances are updated to the metadata cluster in real time;
C. the load balancing service is deployed in a cluster form and provides services, and the position information and the state information of the micro-service instance are obtained by reading a high-availability metadata cluster;
D. and finally, the caller of the instance communicates with the specific micro-service instance in a direct connection mode through the REST interface provided by the instance.
Preferably, the micro-service mainly comprises a service definition, an interface definition and an interface generation.
Preferably, the service definition describes main service information through a JSON file, where the main service information includes service description information such as a unique service identifier, service description, service version information, service interface implementation, and a dependency relationship access point of a service.
Preferably, the service dependency relationship access point includes a service communication protocol and a service address.
Preferably, the interface definition is that main contents of the interface are described through Protocol Buffers files, each file defines one service, and a plurality of interfaces are defined in each service. Each file comprises a service name, a service interface name, interface request parameter information and interface return result information.
Preferably, the interface generation generates corresponding Java interface codes and Java class codes by compiling a Protocol Buffers file defined by the interface.
Preferably, the generated Java class encrypts and decrypts the field content defined to be encrypted during communication.
Preferably, one of the micro services needs to refer to other services, the name of the reference service is added through a script, the script automatically loads the service description and the interface definition file of the service, and then a remote call interface is generated through project editing, and a user of the service can request the remote service interface through RPC call or REST call of HTTP + JSON in a local project.
Preferably, after one micro service is developed and deployed successfully, the description file and the interface definition file of the service D are published or updated to the service registry through the script tool, and other services applying the service can download the service description file and the interface definition file from the service registry and use the interface of the service.
Compared with the related technology, the full link performance monitoring algorithm based on the micro-service architecture has the following beneficial effects:
the invention provides a full link performance monitoring algorithm based on a micro-service architecture, which is characterized in that a micro-service calling mark is utilized to mark the calling sequence and the nesting relation of micro-services, and the full link monitoring under the micro-service architecture is realized by adopting a direct connection mode to communicate with a specific micro-service instance based on an REST interface provided by the instance.
Drawings
Fig. 1 is a schematic structural diagram of a full link performance monitoring algorithm based on a microservice architecture according to a preferred embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Specific implementations of the present invention are described in detail below with reference to specific embodiments.
Referring to fig. 1, an embodiment of the present invention provides a full-link performance monitoring algorithm based on a micro service architecture, where the full-link performance monitoring algorithm based on the micro service architecture includes:
A. a plurality of micro-service instances are independently deployed, and massive state metadata and attribute metadata need to be updated to a metadata cluster in real time;
B. the micro service instances can be dynamically expanded or reduced, and the addition and deletion changes of the instances are updated to the metadata cluster in real time;
C. the load balancing service is deployed in a cluster form and provides services, and the position information and the state information of the micro-service instance are obtained by reading a high-availability metadata cluster;
D. and finally, the caller of the instance communicates with the specific micro-service instance in a direct connection mode through the REST interface provided by the instance.
The micro service mainly comprises a service definition, an interface definition and an interface generation;
the service definition is that main information of the service is described through a JSON file, wherein the main information comprises service description information such as a unique identification mark, service description, service version information, service interface realization, a service dependency relationship access point and the like of the service, and the service dependency relationship access point comprises a service communication protocol and a service address:
the interface definition is that the main content of the interface is described through Protocol Buffers files, each file defines a service, and a plurality of interfaces are defined in each service. Each file comprises a service name, a service interface name, interface request parameter information and interface return result information;
the interface generation is to compile Protocol Buffers files defined by the interface to generate corresponding Java interface codes and Java class codes, and the generated Java class is to encrypt and decrypt the field content defined to be encrypted during communication.
It should be noted that: the calling sequence and the nesting relation of the micro-services are marked by utilizing the micro-service calling mark, and the full link monitoring under the micro-service architecture is realized by adopting a direct connection mode to communicate with a specific micro-service instance based on an REST interface provided by the instance.
In the embodiment of the invention, one micro service needs to refer to other services, the name of the reference service is added through a script, the script automatically loads the service description and the interface definition file of the service, and then the remote call interface is generated through project editing, a user of the service can request the remote service interface through RPC call or REST call of HTTP + JSON in a local project, after one micro service is developed and deployed successfully, the description file and the interface definition file of the service D are issued or updated to a service registration center through a script tool, and other services applying the service can download the service description file and the interface definition file from the service center and use the interface of the service.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (9)
1. A full link performance monitoring algorithm based on micro service architecture is characterized by comprising the following steps:
A. a plurality of micro-service instances are independently deployed, and massive state metadata and attribute metadata need to be updated to a metadata cluster in real time;
B. the micro service instances can be dynamically expanded or reduced, and the addition and deletion changes of the instances are updated to the metadata cluster in real time;
C. the load balancing service is deployed in a cluster form and provides services, and the position information and the state information of the micro-service instance are obtained by reading a high-availability metadata cluster;
D. and finally, the caller of the instance communicates with the specific micro-service instance in a direct connection mode through the REST interface provided by the instance.
2. The algorithm for monitoring the performance of the full link based on the micro service architecture as claimed in claim 1, wherein the micro service mainly comprises a service definition, an interface definition and an interface generation.
3. The algorithm for monitoring the performance of the full link based on the micro service architecture according to claim 2, wherein the service definition describes main information of the service through a JSON file, and the main information includes service description information such as a unique identification mark of the service, service description, service version information, interface implementation of the service, a dependency access point of the service, and the like.
4. The algorithm for monitoring the performance of the full link under the micro service architecture according to claim 3, wherein the dependency access point of the service comprises a service communication protocol and a service address.
5. The algorithm for monitoring the performance of the full link based on the micro service architecture as claimed in claim 2, wherein the interface definition describes the main contents of the interface through Protocol Buffers files, each file defines one service, and a plurality of interfaces are defined in each service. Each file comprises a service name, a service interface name, interface request parameter information and interface return result information.
6. The algorithm for monitoring performance of a full link based on micro service architecture as claimed in claim 2, wherein the interface generation generates corresponding Java interface code and Java class code by compiling Protocol Buffers file defined by the interface.
7. The algorithm for monitoring the performance of the full link under the micro service architecture according to claim 6, wherein the generated Java class is encrypted and decrypted at the time of communication for the field contents defined to be encrypted.
8. The algorithm for monitoring the performance of the full link based on the micro service architecture as claimed in claim 2, wherein one micro service needs to refer to other services, add names of the referenced services through scripts, the scripts automatically load service descriptions and interface definition files of the services, and then generate a remote call interface through project editing, and users of the services can request the remote service interface through RPC calls or REST calls of HTTP + JSON in local projects.
9. The algorithm for monitoring the performance of the full link based on the micro-service architecture as claimed in claim 2, wherein after one micro-service is developed and deployed successfully, the description file and the interface definition file of the service D are published or updated to the service registry through a script tool, and other services applying the service can download the service description file and the interface definition file from the service registry and use the interface of the service.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110971204.XA CN113726603A (en) | 2021-08-23 | 2021-08-23 | Full link performance monitoring algorithm based on micro-service architecture |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110971204.XA CN113726603A (en) | 2021-08-23 | 2021-08-23 | Full link performance monitoring algorithm based on micro-service architecture |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113726603A true CN113726603A (en) | 2021-11-30 |
Family
ID=78677506
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110971204.XA Pending CN113726603A (en) | 2021-08-23 | 2021-08-23 | Full link performance monitoring algorithm based on micro-service architecture |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113726603A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115037653A (en) * | 2022-06-28 | 2022-09-09 | 北京奇艺世纪科技有限公司 | Service flow monitoring method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106506605A (en) * | 2016-10-14 | 2017-03-15 | 华南理工大学 | A kind of SaaS application construction methods based on micro services framework |
CN106610836A (en) * | 2016-12-23 | 2017-05-03 | 国网信息通信产业集团有限公司 | Micro-service operation management tool |
CN107135276A (en) * | 2017-06-28 | 2017-09-05 | 北京中电普华信息技术有限公司 | A kind of full link monitoring methods, devices and systems under micro services framework |
CN107734066A (en) * | 2017-11-16 | 2018-02-23 | 郑州云海信息技术有限公司 | A kind of data center's total management system services administering method |
-
2021
- 2021-08-23 CN CN202110971204.XA patent/CN113726603A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106506605A (en) * | 2016-10-14 | 2017-03-15 | 华南理工大学 | A kind of SaaS application construction methods based on micro services framework |
CN106610836A (en) * | 2016-12-23 | 2017-05-03 | 国网信息通信产业集团有限公司 | Micro-service operation management tool |
CN107135276A (en) * | 2017-06-28 | 2017-09-05 | 北京中电普华信息技术有限公司 | A kind of full link monitoring methods, devices and systems under micro services framework |
CN107734066A (en) * | 2017-11-16 | 2018-02-23 | 郑州云海信息技术有限公司 | A kind of data center's total management system services administering method |
Non-Patent Citations (1)
Title |
---|
谭一鸣: "基于微服务架构的平台化服务框架的设计与实现", 《CNKI优秀硕士学位论文全文库,信息科技辑,2018年第01期》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115037653A (en) * | 2022-06-28 | 2022-09-09 | 北京奇艺世纪科技有限公司 | Service flow monitoring method and device, electronic equipment and storage medium |
CN115037653B (en) * | 2022-06-28 | 2023-10-13 | 北京奇艺世纪科技有限公司 | Service flow monitoring method, device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109246251B (en) | Micro-service calling method, device, system, equipment and readable storage medium | |
CN108255615B (en) | Cross-language calling method, server and storage medium | |
CN108667925B (en) | Method and system for seamless access of WEB application to distributed system | |
US8954952B2 (en) | Portable business process deployment model across different application servers | |
US7475406B2 (en) | Event notification structure for dynamically aggregated logical components | |
US20070118842A1 (en) | DDS-assisted CORBA discovery | |
US10033790B2 (en) | Method for a connector providing transactional interoperability to multiple messaging providers to multiple application servers using the same implementation | |
CN104852971B (en) | Plug-in protocol device and data communication method based on plug-in protocol | |
CN112507005B (en) | Method and device for processing message | |
CN106357713B (en) | Method for realizing remote procedure call, client device and server device | |
CN113726603A (en) | Full link performance monitoring algorithm based on micro-service architecture | |
JP2010521019A (en) | Device identification method in mobile and desktop environments | |
CN113467972A (en) | Communication interface construction method, communication interface construction device, computer equipment and storage medium | |
CN105933887B (en) | Apply the adaptation method and device between different dual-card intelligent mobile phones | |
CN110321236B (en) | OpenDDS-based remote method call implementation method | |
CN112532387A (en) | Key service operation system and method thereof | |
Iyer et al. | Extending android application programming framework for seamless cloud integration | |
CN109857374B (en) | Development method and device of mobile application | |
CN111581576A (en) | Development processing method and device based on micro-service and storage medium | |
CN115080274A (en) | Service processing method, device and system and interface mapping system | |
CN113254825A (en) | Page generation method and device, electronic equipment and storage medium | |
Marques et al. | A flexible mobile-agent framework for accessing information systems in disconnected computing environments | |
CN110968335A (en) | Component system for overall resource management of power business system | |
CN115495148B (en) | Unified construction management method and system for deployment package based on low-code program | |
CN115618396B (en) | Data encryption method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |