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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com