Check patentability & draft patents in minutes with Patsnap Eureka AI!

Message processing method and device and electronic equipment

A technology for message processing and electronic equipment, applied in the field of data processing, can solve problems such as data loss, and achieve the effect of solving data loss

Pending Publication Date: 2022-04-12
CHINA TELECOM CORP LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The main purpose of the present invention is to provide a message processing method, its device and electronic equipment to solve the problem in the prior art that the storage of message queues easily leads to data loss

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 and device and electronic equipment
  • Message processing method and device and electronic equipment
  • Message processing method and device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] The message processing method embodiments provided in the embodiments of the present application may be executed in mobile terminals, computer terminals, or similar computing devices. figure 1 A block diagram of a hardware structure of a computer terminal (or electronic device) for implementing the message processing method is shown. Such as figure 1 As shown, the computer terminal 10 (or electronic device 10) may include one or more (shown by 102a, 102b, ..., 102n in the figure) processor 102 (the processor 102 may include but not limited to a microprocessor MCU or a processing device such as a programmable logic device FPGA), a memory 104 for storing data, and a transmission module 106 for communication functions. In addition, it can also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which can be included as one of the ports of the I / O interface), a network interface, a power supply and / or camera. Those of ordinar...

Embodiment 2

[0061] According to an embodiment of the present application, a device for implementing the above message processing method is also provided, Image 6 is a structural block diagram of a message processing device provided according to an embodiment of the present application, such as Image 6 As shown, the message processing device includes: a first determination module 32 , a second determination module 34 , a first writing module 36 and a second writing module 38 , and the message processing device will be described below.

[0062] The first determination module 32 is configured to determine the first position offset and the first data file according to the control file;

[0063] The second determination module 34 is configured to determine a second position offset corresponding to the first queue message according to the first data length and the first position offset of the first queue message in the message queue;

[0064] The first writing module 36 is used for writing t...

Embodiment 3

[0068] Embodiments of the present application may provide an electronic device, and the electronic device may be any computer terminal device in a group of computer terminals.

[0069] Optionally, in this embodiment, the foregoing electronic device may be located in at least one network device among multiple network devices in the computer network.

[0070] Optionally, Figure 7 It is a structural block diagram of an electronic device according to an exemplary embodiment. like Figure 7 As shown, the electronic device may include: one or more (only one is shown in the figure) processors 41, and a memory 42 for storing processor-executable instructions; wherein, the processors are configured to execute instructions to achieve the above-mentioned The message handling method for either item.

[0071] Among them, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the message processing method and device in th...

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 a message processing method and device and electronic equipment. The method comprises the following steps: determining a first position offset and a first data file according to a control file; determining a second position offset corresponding to the first queue message according to the first data length and the first position offset of the first queue message in the message queue; writing the first queue message and the first data length into a first data file; and writing the second position offset into the control file. By adopting the method, the first-in first-out function of the message queue can be realized, and the problem of data loss caused by restarting of the memory message queue after abnormal downtime of a program is solved.

Description

technical field [0001] The present invention relates to the field of data processing, in particular to a message processing method, its device and electronic equipment. Background technique [0002] Under high concurrent request access, message queues are generally used to cache messages to achieve traffic peak shaving, or message queues are used to sort messages during cross-module message communication. The message queue in the traditional mode is generally stored in the memory. When the service is down, it is easy to cause data loss. This has a huge impact on some business scenarios that require high security and data consistency. [0003] For the above problems, no effective solution has been proposed yet. Contents of the invention [0004] The main purpose of the present invention is to provide a message processing method, its device and electronic equipment, so as to solve the problem in the prior art that the storage of message queues easily leads to data loss. ...

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): G06F16/11G06F16/16
Inventor 杨腾赵斌
Owner CHINA TELECOM CORP LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More