GRPC deblocking method, computer equipment and storage medium

A computer and memory pool technology, applied in the computer field, can solve problems such as time blocking, achieve the effect of avoiding blocking, improving performance, and reducing the time of construction and destruction

Pending Publication Date: 2022-07-15
浙江西图盟数字科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But at the same time, the result capture of Send is blocked by time, so it must also be optimized

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
  • GRPC deblocking method, computer equipment and storage medium
  • GRPC deblocking method, computer equipment and storage medium
  • GRPC deblocking method, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.

[0043] In some processes described in the specification and claims of the present application and the above-mentioned drawings, a plurality of operations appearing in a specific order is included, but it should be clearly understood that these operations may not appear in the order in which they appear herein. For execution or parallel execution, the sequence numbers of the operations, such as 101, 102, etc., are only used to distinguish different operations, and the sequence numbers themselves do not represent any execution order. Additionally, these flows may include...

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 relates to the technical field of computers, in particular to a gRPC deblocking method, computer equipment and a storage medium. The method comprises the following steps: creating gRPC connection, and generating a plurality of consumer threads; data are transmitted into the consumer thread, the consumer thread waits for the message semaphore, the consumer thread and the consumption function are bound, and the production function and the consumption function are split. According to the method, the message queues are added, blocking is avoided, the thread pool is kept, it is guaranteed that the number of links corresponds to the number of threads and the number of the message queues in a one-to-one mode, the pressure of the requests on the single socket is evenly shared, performance balance is guaranteed, the memory pool is added, the time of message construction and disstructuring is shortened, and the program forwarding performance is improved. According to the method, modules of the memory pool and the message queue are separated, the independent modules, the message queue and the memory pool module are independent, so that code reuse is facilitated, and current codes can be reused to other scenes.

Description

technical field [0001] The present application relates to the field of computer technology, and in particular to a gRPC deblocking method, computer equipment and storage medium suitable for stress testing and performance optimization of RPC communication. Background technique [0002] gRPC is a high-performance open source software framework based on the HTTP2.0 transport layer protocol released by Google, which provides a method for configuring and managing network devices that supports multiple programming languages. Since it is an open-source framework, both parties of the communication can carry out secondary development, so the communication between the client and the server will focus more on the content of the business level, reducing the focus on the underlying communication implemented by the gRPC framework. [0003] At present, there are only simple demo code in the form of demo, based on synchronous interface, and some based on asynchronous interface, neither of w...

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/54
CPCG06F9/547G06F9/544G06F9/546G06F2209/5011
Inventor 陈辉张杰于兴林
Owner 浙江西图盟数字科技有限公司
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