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

Data sharing method, data sharing system, and computer-readable storage medium

A technology of data sharing and storage media, applied in the field of data processing, can solve the problems of inability to solve the demand for real-time notification of changes, unintuitive calling, and reduction

Active Publication Date: 2020-10-27
FUJIAN STAR NET EVIDEO INFORMATION SYST CO LTD
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, there are two conventional methods for sharing data between multiple applications. One is to use memory sharing to write the required data into the shared memory, and the demander who needs the data reads the data from the shared memory. ;The disadvantage of this approach is obvious, it can only be limited to the local machine for data sharing, and because of this sharing method, multiple applications / services increase the coupling degree, and it still cannot solve the demand for real-time notification of changes
Another conventional method is to use files or DBMS as the medium to write the data that needs to be shared, and to query regularly when needed by the demander to obtain the latest shared data; although this method effectively reduces the degree of coupling, it can also Solve the problem of cross-machine data sharing, but there are still problems that changes cannot be notified, frequent queries require high consumption, and calls are not intuitive

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
  • Data sharing method, data sharing system, and computer-readable storage medium
  • Data sharing method, data sharing system, and computer-readable storage medium
  • Data sharing method, data sharing system, and computer-readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0076] Please refer to image 3 , Embodiment 1 of the present invention is: a data sharing method, which can be applied to data sharing among multiple applications or terminals. In this embodiment, a data sharing service role is introduced, and all the All application services or terminals sharing data need to communicate with the data sharing service. The service provides a unified interface, manages all shared data in a unified manner, is responsible for receiving changes and notifying changes, and maintains all applications or terminals at the same time, forming a star structure in the architecture. Further, when applied to data sharing between multiple terminals, the data sharing service can be integrated on the server.

[0077] like image 3 As shown, the method includes the following steps:

[0078] S101: Receive the data sent by the data producer and store it in the memory, wherein the data is in the form of a key-value pair (key-value).

[0079] If the data produce...

Embodiment 2

[0092] Please refer to Figure 4 , this embodiment is a further extension of Embodiment 1.

[0093] After the first association relationship is obtained in step S102 and the second association relationship is obtained in step S104, the first association relationship and the second association relationship are also saved, and further, they can be saved in the user information list, and the user information list is persistent Stored in data sharing services.

[0094] When the terminal where the data sharing service is located crashes or is powered off, after the terminal restarts, if Figure 4 shown, perform the following steps:

[0095] S201: Load a user information list, that is, load the first association relationship and the second association relationship;

[0096] S202: If the first association relationship of the user information list is not empty, request corresponding data from the data producer in the first association relationship according to the key in the first ...

Embodiment 3

[0103] This embodiment is a computer-readable storage medium corresponding to the above-mentioned embodiments, on which a computer program is stored, and when the program is executed by a processor, the following steps are implemented:

[0104] Associate the data producer with the key of the data sent to obtain the first association relationship;

[0105] Associate the data consumer with the key of the data requested to obtain the second association relationship;

[0106] When receiving the data sent by the data producer, matching the key of the data with the key in the second association relationship;

[0107] If the key in a second association relationship is the same as the key of the data, sending the data to the data consumers in the second association relationship in real time.

[0108] Further, associating the data producer with the key of the data sent by the data producer, the first association relationship obtained is specifically:

[0109] Receive and save the dat...

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 data sharing method, a data sharing system and a computer readable storage medium. The method comprises: a data consumer is associated with a key of the data sent to obtain afirst association relationship; a data consumer is associated with a key of the requested data to obtain a second association relationship; When receiving the data sent by the data producer, if the key in a second association is the same as the key of the data, the data is sent to the data consumer in the second association; and if the key is the same as the key of the data, the data is sent to the data consumer in the second association. When a request sent by a data consumer is received, if a key in a first association relationship is the same as the key of the requested data, data corresponding to the key in the first association relationship is sent to the data consumer. The invention is not only simpler to use, but also greatly reduces the coupling degree of the system, the change notification mechanism also avoids the performance consumption caused by frequent query data change, and at the same time, the data sharing across machines and networks can be easily realized.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a data sharing method, a data sharing system and a computer-readable storage medium. Background technique [0002] In modern application systems, especially in complex application groups with multiple servers, there are a large number of shared data requirements among multiple applications / services, such as some common parameter configurations, etc.; how to flexibly share multiple applications / services It becomes a topic worth studying to share these data among them, and when the data changes, all ends can get timely notification. [0003] At present, there are two conventional methods for sharing data between multiple applications. One is to use memory sharing to write the required data into the shared memory, and the demander who needs the data reads the data from the shared memory. ; The disadvantage of this approach is obvious, it can only be limited to the local machine for d...

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): G06F9/54
CPCG06F9/544G06F9/547
Inventor 林家伟林仁文
Owner FUJIAN STAR NET EVIDEO INFORMATION SYST 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