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

Realization method and system of Rpc client in performance test platform based on Netty, server and storage medium

A test platform and implementation method technology, applied in the transmission system, digital transmission system, resource allocation, etc., can solve the problems of large thread consumption, large resource consumption, occasional errors in pressure test data, etc., to reduce the number of threads and save The effect of putting pressure on resources and improving resource utilization

Pending Publication Date: 2019-05-07
WUHAN DOUYU NETWORK TECH CO LTD
View PDF5 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] The Rpc client version developed based on the Socket Rpc communication protocol, but there are some problems based on Socket blocking, such as the large concurrency of the pressure test leads to sticky Tcp packets, resulting in occasional errors in the pressure test data and the pressure test fails. At the same time, the resource consumption is large. For Douyu There are some businesses such as barrage pressure testing. The bio model of Socket limits that a barrage sending must wait for the corresponding return before exiting thread blocking, resulting in excessive thread consumption.

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
  • Realization method and system of Rpc client in performance test platform based on Netty, server and storage medium
  • Realization method and system of Rpc client in performance test platform based on Netty, server and storage medium
  • Realization method and system of Rpc client in performance test platform based on Netty, server and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The present invention provides an implementation method, system, server and storage medium of a Netty-based Rpc client in a performance testing platform. The request message sent by the performance pressure testing platform is sent to the Rpc client, and the message is encoded by the client and then sent to the Rpc client. On the server side, the server returns a response message to the client side for decoding and then returns to the performance stress testing platform.

[0035] In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the following The described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodim...

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 a realization method and system of an Rpc client in a performance test platform based on Netty, a server and a storage medium, According to the implementation method, a request message sent by a performance pressure measurement platform is sent to an Rpc client; Message coding is carried out through the client and then the message is sent to the server. and the server returns a response message to the client for decoding and then returns the response message to the performance pressure measurement platform, the packet sticking problem of the Tpc network is solved through fixed-length coding and decoding, the request timeout problem of the Rpc client is solved through a time wheel, the resource utilization rate is improved through an asynchronous mechanism, the thread number is reduced, and thus pressure resources are saved.

Description

technical field [0001] The present invention relates to the fields of performance pressure measurement and full-link pressure measurement, in particular to a method, system, server and storage medium for implementing a Netty-based Rpc client in a performance test platform. Background technique [0002] The Rpc client version developed based on the Socket Rpc communication protocol, but there are some problems based on Socket blocking, such as the large concurrency of the pressure test leads to sticky Tcp packets, resulting in occasional errors in the pressure test data and the pressure test fails. At the same time, the resource consumption is large. For Douyu For some businesses, such as barrage pressure testing, the bio model of Socket limits that a barrage sending must wait for the corresponding return before exiting thread blocking, resulting in excessive thread consumption. Contents of the invention [0003] In view of the problems existing in the prior art, the purpos...

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
IPC IPC(8): G06F9/50H04L29/08H04L12/26
Inventor 张德华
Owner WUHAN DOUYU NETWORK TECH CO LTD
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