Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for dynamically calling server side by client side through GRPC

A dynamic invocation, server-side technology, applied in data processing applications, program loading/starting, special data processing applications, etc., can solve problems such as timely file synchronization, reduce workload, reduce project risks, and simplify the development process.

Active Publication Date: 2021-10-19
BEIJING KEDONG ELECTRIC POWER CONTROL SYST
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The problems it faces include: (1) The client and the server maintain the agreement file at the same time, whether the file synchronization is timely
(2) When the client wants to call the server, it must know the protocol file in advance and do a lot of repetitive work

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for dynamically calling server side by client side through GRPC

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] In order to make the object, technical solution and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the examples. It should be understood that the specific embodiments described here are only used to explain the present invention, and are not intended to limit the protection scope of the present invention.

[0037] The application principle of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0038] The present invention provides a method for a client to dynamically invoke a server through GRPC, specifically comprising the following steps:

[0039] (1) The server configures a preset adaptation jar package, the adaptation jar package includes a java project, a grpc module, a grpc interface, supports GRPC bidirectional flow and upgrades core classes to the springboot-starter mode, and the grpc interface is Provide an entry that can be...

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 discloses a method for a client to dynamically call a server through a GRPC, and the method comprises the steps: the server configures a preset adaptive jar package, the adaptive jar package comprises a java item, a grpc module and a grpc interface, supports the bidirectional flow of the GRPC and upgrades a core class to a springboot-starter mode, and the grpc interface is an entry which can be dynamically called by the server on the premise that the code of the server is not invasive; and the client side sends a calling request to the server side and receives response data sent by the server side, and the method that the client side dynamically calls the server side through the GRPC is completed. According to the method, the cost of maintaining the protocol file by both the client and the server can be saved, the calling of the client and the server can be realized on the premise of not introducing a grpc interface packet, the working cost of personnel is reduced, and bugs generated by synchronizing the protocol file are reduced.

Description

technical field [0001] The invention belongs to the technical field of power monitoring system security protection communication security, and in particular relates to a method for a client to dynamically call a server through GRPC. Background technique [0002] Nowadays, driven by the continuous demand of the software ecosystem, distributed has become a commonplace topic. In a distributed environment, in order to bridge the communication between various services, RPC technology has emerged as the times require. Thrift, grpc, dubbo, dubbox, motan, etc. [0003] With the continuous increase in the number of projects designed for the power monitoring network security system and the continuous increase in business requirements, the number of grpc interfaces is also increasing, which means that the content of grpc protocol files is also increasing, which brings great difficulties to the maintenance client and server. Project personnel bring a certain amount of work costs, and t...

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/445G06F16/28G06Q50/06
CPCG06F9/44521G06F9/44505G06F16/283G06Q50/06
Inventor 张金亮高明慧张志军何纪成卢楷郭乃豪王洋王坤杨兰陈冬冬赵航马志勇刘进国李歌冯绍辉唐尧沙鑫
Owner BEIJING KEDONG ELECTRIC POWER CONTROL SYST
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products