Memory state data synchronization method and device

A memory state and data synchronization technology, applied in the field of communication, can solve the problems of no persistence of subscription relationship and no persistence of messages, and achieve the effects of message synchronization function, message persistence, and message synchronization function stability

Inactive Publication Date: 2019-09-06
HAIER YOUJIA INTELLIGENT TECH (BEIJING) CO LTD +1
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The embodiment of the present invention provides a method and device for synchronizing memory state data, so as to at least solve the problems in the related art that the data synchronization of the cluster service is coordinated through redis, and there is no persistence of the subscription relationship and no persistence of the message.

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
  • Memory state data synchronization method and device
  • Memory state data synchronization method and device
  • Memory state data synchronization method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0060] The method embodiment provided in Embodiment 1 of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking running on a mobile terminal as an example, figure 1 It is a hardware structural block diagram of a mobile terminal of a method for synchronizing memory state data according to an embodiment of the present invention, such as figure 1 As shown, the mobile terminal 10 may include one or more ( figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the above-mentioned mobile terminal also A transmission device 106 for communication functions as well as input and output devices 108 may be included. Those of ordinary skill in the art can understand that, figure 1 The shown structure is only for illustration, and does not ...

Embodiment 2

[0079] According to another embodiment of the present invention, a method for synchronizing memory state data is also provided, image 3 It is a flow of a method for synchronizing memory state data according to an embodiment of the present invention Figure II ,Such as image 3 As shown, the process includes the following steps:

[0080] Step S302, the message middleware platform creates the same memory state data topic subscribed by all application service nodes in the distributed application service;

[0081] Specifically, the message middleware platform receives subscription request messages sent by all application service nodes (including the first application service node and other application service nodes), and creates simultaneous An in-memory state data topic.

[0082] Step S304, the message middleware platform forwards the synchronization message sent by the first application service node to other application service nodes subscribed to the memory state data topic...

Embodiment 3

[0100] In this embodiment, a data synchronization device is also provided, which is used to implement the above embodiments and preferred implementation modes, and what has already been described will not be repeated. As used below, the term "module" may be a combination of software and / or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.

[0101] Figure 6 is the frame of the memory state data synchronization device according to the embodiment of the present invention Figure 1 ,Such as Figure 6 As shown, applied to the first application service node, including:

[0102] The subscription module 62 is configured to subscribe to the same memory state data topic of the message middleware platform with other application service nodes in the distributed application service, ...

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 memory state data synchronization method and device. The method comprises the steps that a first application service node and other application service nodes in a distributedapplication service subscribe to the same memory state data theme of a message middleware platform, and the other application service nodes are all application service nodes except the first application service node in the distributed application service; the first application service node performs memory state data synchronization with the other application service nodes based on the memory statedata theme through the message middleware platform. According to the method and the device, the problems of non-persistence of subscription relation and non-persistence of messages in data synchronization of cluster services coordinated by redis in related technologies can be solved, memory state data synchronization among distributed application services is realized through themes of a message middleware platform, so that a message synchronization function is stable, and messages can be persisted.

Description

technical field [0001] The present invention relates to the field of communications, in particular to a method and device for synchronizing memory state data. Background technique [0002] In order to ensure the stability of background software services, background services need to be deployed in a distributed cluster to provide undifferentiated background services for requests. Each service process needs to maintain its own memory state data, and the random distribution of requests will cause each service The inconsistency of process memory state data will cause business exceptions. In order to reduce the risk of business anomalies, there needs to be a method to synchronize the memory status data of each process in the background service cluster in real time, so as to maintain the consistency of the memory status data of each service. [0003] For data synchronization between distributed application services, shared memory redis is used in related technologies to achieve: ...

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/958G06F9/54
CPCG06F9/546G06F2209/548G06F16/958
Inventor 严峰
Owner HAIER YOUJIA INTELLIGENT TECH (BEIJING) 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