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

Method and device for message persistence

A message persistence and persistence technology, applied in the field of network communication, can solve the problems of hard disk damage, frequent reading and writing of hard disks, etc., and achieve the effect of reducing damage and avoiding frequent reading and writing

Active Publication Date: 2020-09-04
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
  • Method and device for message persistence
  • Method and device for message persistence

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

A message persistence method and apparatus. The message persistence method comprises: when a host machine initializes a message server, directing a persistence path of the message server to a memory of the host machine (S10), so that the message server stores a received message into the memory; and when a shutdown signal of the host machine is detected, storing a persistent message stored in the memory, into a hard disk of the host machine (S20). The method and the apparatus can reduce damage of message persistence to a hard disk.

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 Patents(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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products