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

Message processing method, device, electronic device and readable storage medium

A message processing and message technology, applied in the field of data processing, can solve problems affecting the efficiency of message queue message consumption, blocking, etc., to achieve fast reading operations and avoid backlogs

Active Publication Date: 2022-04-19
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, when a large number of messages remain in the message queue for some reason (for example, the consumer server takes a long time to process the message), in this case, the production server must pause and wait (that is, block the producer thread), thereby affecting the message Consumption efficiency of messages in the queue

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
  • Message processing method, device, electronic device and readable storage medium
  • Message processing method, device, electronic device and readable storage medium
  • Message processing method, device, electronic device and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.

[0027] refer to figure 1 , figure 1 It is a system architecture diagram in the prior art. The system architecture includes a production server, a storage server, a consumption server 1 and a consumption server 2 as an example. The production server publishes messages to the message queue of the storage server. There can be at least one message queue of the storage server. Each message queue stores messages of a business type, and each business type is a business scenario. For example, message queue 1 stores information about For the message of liking the video, the message queue 2 stores the message about commenting on the video. In the prior art, if consumer server 1 is configured to take out messages from message queue 1, and consumer server 2 is configured to take out messages from message queue 2,...

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

An embodiment of the present invention provides a message processing method, device, electronic device, and readable storage medium, wherein the method includes: receiving the first message sent by the production server, and storing the first message in the same business type as the first message In the corresponding message queue, M first messages are obtained from the message queue, each first message is written into the first memory buffer queue corresponding to the first target service identifier by using M first threads, The first target service address associated with the business identifier, using N second threads to read N first messages in the first memory buffer queue, and sending N first request messages to the target server corresponding to the first target service address, The N first messages are processed by invoking the service corresponding to the target server N times. Thereby, a faster reading operation can be realized, to a certain extent, the backlog of messages in the message queue can be avoided, and the consumption efficiency of messages in the message queue can be improved.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a message processing method, device, electronic equipment and a readable storage medium. Background technique [0002] Because the system based on the microservice architecture is easy to develop and maintain, it has been applied to the development of larger projects. At the same time, in order to realize the coupling between microservices, asynchronous message processing, current limiting and peak shaving and other functions, the production and consumption mode is usually applied. [0003] The production and consumption mode is specifically: the server that publishes the message (production server) publishes the message to the message queue (MQ, Message Queue) in the production server cluster, a message queue is a buffer, and the server that consumes the message (consumer server) reads the Take out the message and process the message. After processing a message, continu...

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 Patents(China)
IPC IPC(8): H04L51/18H04L67/141H04L67/146H04L67/10
CPCH04L51/18H04L67/141H04L67/146H04L67/10
Inventor 王杨
Owner BEIJING QIYI CENTURY SCI & 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