An application method of a GRPC communication protocol in a distributed software system

A software system and communication protocol technology, applied in the application field of GRPC communication protocol, can solve problems such as performance bottlenecks, and achieve the effect of improving performance, realizing software architecture, and improving call performance

Inactive Publication Date: 2019-04-09
STATE GRID ZHEJIANG ELECTRIC POWER +4
View PDF3 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

) The RESTful communication protocol meets business requirements for most microservice application scenarios, but for scenarios where interface data calls between microservices are frequent and the data volume is large, using the RESTful communication protocol will cause bottlenecks in terms of performance

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] Below in conjunction with embodiment the present invention is described in further detail.

[0019] The application method of the GRPC communication protocol in the distributed software system is characterized in that it includes creating a deployment for each microservice, each deployment contains two containers, and the GRPC server software implementation of each deployment and its corresponding reverse Proxy, and use this as a unit to scale, the containers in the same container unit share the public network and store resources, and the containers in the same container unit use the same IP address to access. That is, the containers in the same container unit share the public network and store resources, and can directly use 127.0.0.1 to access.

[0020] Create the GRPC server software and proxy the deployed Http port and RPC port, and expose both Http and RPC services to the container unit;

[0021] For stateless services, the server software is used as DNS between i...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides an application method of a GRPC communication protocol in a distributed software system. The method comprises the steps that deployment is created for each micro-service, each deployment comprises two containers, implementation of each deployed GRPC server software end and a corresponding reverse agent, scaling is conducted with the deployment as the unit, the same containerunit inner containers share a public network and store resources, and the same container unit inner containers are accessed through the same IP address; And an Http port and an RPC port of the GRPC server software end and proxy deployment are created, and the Http service and the RPC service are exposed for the container unit at the same time. According to the method, the calling performance canbe improved, automatic registration and discovery of the micro-service based on the GRPC communication protocol can be realized in the distributed system, and communication among the micro-service based on the GRPC communication protocol is realized.

Description

technical field [0001] The invention relates to the communication field, in particular to an application method of the GRPC communication protocol in a distributed software system. Background technique [0002] At present, calls between microservices under the distributed software system architecture adopt the RESTful communication protocol (RESTful is a software architecture style, design style, rather than a standard, which provides a set of design principles and constraints. It is mainly used for client Software that interacts with servers. Software designed based on this style can be more concise, more layered, and easier to implement mechanisms such as caching.) The RESTful communication protocol meets business needs for most microservice application scenarios, and for microservices In scenarios where indirect interface data calls are frequent and the amount of data is large, performance bottlenecks will occur when using the RESTful communication protocol. Contents of...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/54H04L29/06
CPCG06F9/547H04L67/133
Inventor 田兵严文涛李继红靖稳峰陈建秦俊宁王志强吴嘉生刘立威杨洁孙丽华严莉刘范范汤琳琳田涛李金湖林海玉江樱孔文杰卢文达周洋黄海潮王文边伟亮郭刚张福华郭健卜京
Owner STATE GRID ZHEJIANG ELECTRIC POWER
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products