Message persistence method and device

A technology for message persistence and persistence, applied in the field of network communication, it can solve the problems of hard disk damage, frequent reading and writing of hard disks, etc., to reduce damage and avoid frequent reading and writing.

Active Publication Date: 2017-04-26
NANJING ZHONGXING XIN SOFTWARE CO LTD
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, message persistence will frequently read and write the hard disk during message transmission, especially when the amount of communication messages is large, causing greater damage to the hard disk

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 persistence method and device
  • Message persistence method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0034] The present invention provides a message persistence method, referring to figure 1 , in the first embodiment of the message persistence method of the present invention, the message persistence method includes:

[0035] Step S10, when the host initializes the message server, point the persistent path of the message server to the memory of the host, so that the message server can store the received message in the memory;

[0036] It should be noted that the message server runs on a host, and includes an exchange and a message queue for completing the connection between message producers (senders) and consumers (receivers). Specifically, the association between the switch and the message queue is realized through binding. After the switch is bound to multiple message queues, a "routing table" will be formed, and ...

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 message persistence method. The message persistence method comprises following steps: pointing persistence paths of a message server to a memory of a host when a host initializes the message server such that messages received by the message server can be stored into the memory; and storing persistent messages stored in the memory to a hard disk of the host when a power-off signal of the host is detected. The invention further discloses a message persistence device. The damage of message persistence to the hard disk is reduced.

Description

technical field [0001] The invention relates to the technical field of network communication, in particular to a message persistence method and device. Background technique [0002] At present, the message middleware adopts the server / client mode, including message producers and consumers, and the message middleware completes the connection between the producer and the consumer. The entity that completes this part of the function is generally called a message server. Among them, The message server mainly includes an exchange and a message queue. [0003] In actual usage scenarios, messages may be lost between producers and consumers due to factors such as packet loss at the underlying network transport layer, message queue congestion, message server restart, or physical host restart. In particular, the restart of the message server or the physical host will cause all messages in the message queue to be lost, which is fatal in some application scenarios that require strict m...

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): G06F3/06
CPCG06F3/06
Inventor 马立军
Owner NANJING ZHONGXING XIN SOFTWARE CO LTD
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