CN110392113A - Community data sharing method and its system based on block chain - Google Patents
Community data sharing method and its system based on block chain Download PDFInfo
- Publication number
- CN110392113A CN110392113A CN201910679587.6A CN201910679587A CN110392113A CN 110392113 A CN110392113 A CN 110392113A CN 201910679587 A CN201910679587 A CN 201910679587A CN 110392113 A CN110392113 A CN 110392113A
- Authority
- CN
- China
- Prior art keywords
- community
- community data
- data
- block chain
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 28
- 238000004590 computer program Methods 0.000 claims description 9
- 238000004891 communication Methods 0.000 description 10
- 230000003993 interaction Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000012552 review Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
This application discloses community data sharing methods and its system based on block chain, which comprises at least one community server every preset time period sends the first community data inquiry request and gives block chain node;At least one described community server receives the first community data that the block chain node is sent;At least one described community server stores first community data in the local database, in order to which user accesses first community data by client.Method in the application enables to user's operation easy, and after operation is primary, the other users of each related platform can view the community data, and then the user experience is improved.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a community data sharing method and a community data sharing system based on a block chain.
Background
At present, in the internet, each application has a respective centralized database, and data cannot be shared between different fields and different platforms in the same field. For example: a user publishes a piece of data on the platform A, the database of the platform A stores the data, and only other users of the platform A can see the piece of data. At this time, if the user wants to make other users of the B platform view the piece of data, the user must publish the same piece of data on the B platform; the database of the B-platform then stores the data, which other users of the B-platform can view.
However, when the user wants the platform users of the platforms in a certain field to be able to see the piece of data, the user needs to operate on the platforms. For example: the user publishes a commodity data on Taobao, and the user also needs to publish the commodity data on other platforms such as Sunning, Jingdong and the like all once. The operation of the user is complicated, and the user experience is greatly reduced.
In the block chain system, technologies such as an encryption algorithm, a consensus mechanism and distributed storage are adopted, so that the safety and the credibility of data on a chain can be ensured. Therefore, it is very important how to find a block chain to solve the problem of tedious user operation, thereby improving user experience.
The foregoing description is merely for convenience in understanding and is not to be construed as limiting the prior art to the present application.
Disclosure of Invention
Based on the above problems, the embodiment of the application provides a community data sharing method and system based on a block chain, the method enables users to operate easily and conveniently, after one operation, other users of all relevant platforms can check the community data, and therefore user experience is improved.
The first aspect of the application discloses a community data sharing method based on a block chain, which comprises the following steps: at least one community server sends a first community data query request to a block chain node every other preset time period; at least one community server receives first community data sent by the blockchain node; at least one community server stores the first community data in a local database so that users can access the first community data through clients.
In one possible embodiment, the method further comprises: at least one of the clients sends second community data to the blockchain node, so that the blockchain node uplinks the second community data.
In one possible embodiment, the community data includes community posting time and community posting content.
In a possible embodiment, the facilitating the user to access the first community data through the client specifically includes:
the client sends the first community data query request to the community server;
and the client receives the first community data sent by the community server.
The second aspect of the application discloses a community data sharing system based on a blockchain, which comprises at least one community server, at least one client and a blockchain system, wherein the blockchain system comprises a plurality of blockchain nodes; wherein,
at least one community server sends a first community data query request to a block chain node every other preset time period;
at least one community server receives first community data sent by the blockchain node;
at least one community server stores the first community data in a local database so that users can access the first community data through clients.
In one possible embodiment, at least one of the clients sends second community data to the blockchain node, so that the blockchain node uplinks the second community data.
In one possible embodiment, the community data includes community posting time and community posting content.
In a possible embodiment, the facilitating the user to access the first community data through the client specifically includes:
the client sends the first community data query request to the community server;
and the client receives the first community data sent by the community server.
A third aspect of the application discloses a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following method steps when executing the program:
at least one community server sends a first community data query request to a block chain node every other preset time period;
at least one community server receives first community data sent by the blockchain node;
at least one community server stores the first community data in a local database so that users can access the first community data through clients.
A fourth aspect of the present application discloses a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, realizes the following method steps:
at least one community server sends a first community data query request to a block chain node every other preset time period;
at least one community server receives first community data sent by the blockchain node;
at least one community server stores the first community data in a local database so that users can access the first community data through clients.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of any one or more of the first or second aspects described above.
The method in the application can enable the user to be easy and convenient to operate, and after the operation is performed once, other users of all relevant platforms can check the community data, so that the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a block chain system architecture of the present disclosure;
FIG. 2 is a schematic flow chart of a block chain-based community data sharing method disclosed in the present application;
fig. 3 is a schematic structural diagram of a community data sharing device based on a block chain according to the present disclosure;
fig. 4 is a schematic structural diagram of a community data system based on a blockchain according to the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first" and "second" in this application are used for convenience of understanding only, and are not to be construed as sequential or limiting in any way.
For the purpose of facilitating understanding of the embodiments of the present invention, the following description will be further explained with reference to specific embodiments, which are not to be construed as limiting the embodiments of the present invention.
As shown in fig. 1, a plurality of clients perform information interaction with the blockchain system, in this case, the clients are Decentralized clients (DApp), and the clients directly perform information interaction with the blockchain, and the clients have a function of a server and can store data locally; the community servers also perform information interaction with the block chain system; the block chain system comprises a plurality of block chain nodes, and any block chain node can execute uplink operation on data sent by a client or a community server. The uplink operation refers to distributed storage of data on blockchain nodes.
It should be noted that the client may also be a centralized client, and the client may access a centralized server; the centralized server performs information interaction with the block chain system; the uplink operation sent by the centralized client is sent to the blockchain node by the centralized server, and then the uplink operation of the community data is completed by the blockchain node.
As shown in fig. 2, the community data sharing method based on the block chain includes steps S201-S203.
S201, at least one community server sends a first community data query request to a block chain node every other preset time period.
S202, at least one community server receives first community data sent by the blockchain node.
S203, at least one community server stores the first community data in a local database, so that a user can access the first community data through a client.
In one example, the method further comprises: at least one of the clients sends second community data to the blockchain node, so that the blockchain node uplinks the second community data.
In another example, the ue sends the second community data to the community server, and the community server sends the second community data to the blockchain node, so that the blockchain node uplink the second community data.
It should be noted that the first community data and the second community data may be the same community data or different community data.
In one example, the community data includes a community posting time and community posting content. Community posting content includes posts regarding movie reviews, posts for makeup discussions, posts for clothing matches, and the like.
In an example, the facilitating the user to access the first community data through the client specifically includes: the client sends the first community data query request to the community server; and the client receives the first community data sent by the community server.
The method in the application can enable the user to be easy and convenient to operate, and after the operation is performed once, other users of all relevant platforms can check the community data, so that the user experience is improved.
In the method, a plurality of community servers uninterruptedly request the block chain node, so that all community data of the block chain are stored on the community servers; in other words, the community data on the blockchain can be kept synchronized with the community data on the community server.
At this time, as long as there is a user sending a community data uplink operation through the client, the block link node will be linked up the community data. A plurality of different community servers can synchronize the data, and the user does not need to operate on different community server platforms for many times, so that the user operation is simpler and more convenient, and the user experience is improved.
As shown in fig. 4, the system for community data sharing based on blockchain includes at least one community server, at least one client, and a blockchain system, where the blockchain system includes a plurality of blockchain nodes.
At least one community server sends a first community data query request to a block chain node every other preset time period;
at least one community server receives first community data sent by the blockchain node;
at least one community server stores the first community data in a local database so that users can access the first community data through clients.
In one example, at least one of the clients sends second community data to the blockchain node, so that the blockchain node uplinks the second community data.
In one example, the community data includes a community posting time and community posting content.
In an example, the facilitating the user to access the first community data through the client specifically includes:
the client sends the first community data query request to the community server;
and the client receives the first community data sent by the community server.
The method in the application can enable the user to be easy and convenient to operate, and after the operation is performed once, other users of all relevant platforms can check the community data, so that the user experience is improved.
The embodiment of the present application further discloses a computer device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor implements the following method steps when executing the program:
at least one community server sends a first community data query request to a block chain node every other preset time period;
at least one community server receives first community data sent by the blockchain node;
at least one community server stores the first community data in a local database so that users can access the first community data through clients.
An embodiment of the present application further discloses a computer-readable storage medium, on which a computer program is stored, and when being executed by a processor, the computer program implements the following method steps:
at least one community server sends a first community data query request to a block chain node every other preset time period;
at least one community server receives first community data sent by the blockchain node;
at least one community server stores the first community data in a local database so that users can access the first community data through clients.
Fig. 3 shows a schematic diagram of a computer device, which may include: a processor 310, a memory 320, an input/output interface 330, a communication interface 340, and a bus 350. Wherein the processor 340, the memory 320, the input/output interface 330, and the communication interface 340 are communicatively coupled to each other within the device via a bus 350.
The processor 310 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present specification.
The Memory 320 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 320 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 320 and called to be executed by the processor 310.
The input/output interface 330 is used for connecting an input/output module to realize information input and output. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 340 is used for connecting a communication module (not shown in the figure) to implement communication interaction between the present device and other devices. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 350 includes a path that transfers information between the various components of the device, such as processor 310, memory 320, input/output interface 330, and communication interface 340.
It should be noted that although the above-mentioned device only shows the processor 310, the memory 320, the input/output interface 330, the communication interface 340 and the bus 350, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only illustrative of the present invention and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the scope of the present invention should be included in the scope of the present invention.
Claims (10)
1. The community data sharing method based on the block chain is characterized by comprising the following steps:
at least one community server sends a first community data query request to a block chain node every other preset time period;
at least one community server receives first community data sent by the blockchain node;
at least one community server stores the first community data in a local database so that users can access the first community data through clients.
2. The method of claim 1, further comprising:
at least one of the clients sends second community data to the blockchain node, so that the blockchain node uplinks the second community data.
3. The method of claim 1 or 2, wherein the community data comprises community posting time and community posting content.
4. The method according to claim 1, wherein the facilitating the user to access the first community data through a client specifically includes:
the client sends the first community data query request to the community server;
and the client receives the first community data sent by the community server.
5. The community data sharing system based on the block chain is characterized by comprising at least one community server, at least one client and a block chain system, wherein the block chain system comprises a plurality of block chain nodes; wherein,
at least one community server sends a first community data query request to a block chain node every other preset time period;
at least one community server receives first community data sent by the blockchain node;
at least one community server stores the first community data in a local database so that users can access the first community data through clients.
6. The system of claim 5, wherein at least one of the clients sends second community data to the blockchain node to cause the blockchain node to uplink the second community data.
7. The system of claim 5 or 6, wherein the community data comprises community posting time and community posting content.
8. The system according to claim 5, wherein the facilitating the user to access the first community data through the client specifically includes:
the client sends the first community data query request to the community server;
and the client receives the first community data sent by the community server.
9. Computer arrangement comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor realizes the following method steps when executing the program:
at least one community server sends a first community data query request to a block chain node every other preset time period;
at least one community server receives first community data sent by the blockchain node;
at least one community server stores the first community data in a local database so that users can access the first community data through clients.
10. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, carries out the method steps of:
at least one community server sends a first community data query request to a block chain node every other preset time period;
at least one community server receives first community data sent by the blockchain node;
at least one community server stores the first community data in a local database so that users can access the first community data through clients.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910679587.6A CN110392113A (en) | 2019-07-26 | 2019-07-26 | Community data sharing method and its system based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910679587.6A CN110392113A (en) | 2019-07-26 | 2019-07-26 | Community data sharing method and its system based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110392113A true CN110392113A (en) | 2019-10-29 |
Family
ID=68287411
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910679587.6A Pending CN110392113A (en) | 2019-07-26 | 2019-07-26 | Community data sharing method and its system based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110392113A (en) |
-
2019
- 2019-07-26 CN CN201910679587.6A patent/CN110392113A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20120210242A1 (en) | Contact Center Co-Browsing for a Mobile Device | |
CN110324363B (en) | Uplink method and device for Internet e-commerce associated data | |
US9712622B2 (en) | Techniques to manage state information for a web service | |
US20150215374A1 (en) | Delivering an update for a web application | |
CN110634001A (en) | Food circulation information tracing method and device based on block chain | |
KR102245358B1 (en) | Techniques to transform network resource requests to zero rated network requests | |
CN110377644A (en) | It is related to the search data sharing method and its system of block chain | |
CN110377645A (en) | Be related to block chain thumbs up data sharing method and its system | |
CN110399427A (en) | By means of the ad click data sharing method and its system of block chain | |
CN110377646A (en) | Knowledge payment data sharing method and its system based on block chain | |
CN110413699A (en) | The cochain method and device thereof of user's ballot associated data | |
CN110634003A (en) | Medicine circulation information tracing method and device based on block chain | |
CN110392113A (en) | Community data sharing method and its system based on block chain | |
CN110362635A (en) | Based on block chain from media data sharing method and its system | |
CN110427425A (en) | Evaluation data sharing method and its system based on block chain | |
CN110362636A (en) | By means of the polled data sharing method and its system of block chain | |
CN110351389B (en) | UpLink method and device for user community associated data | |
CN110389972A (en) | By means of the investigational data sharing method and its system of block chain | |
CN110427403A (en) | By means of the shared economic data sharing method and its system of block chain | |
CN110389987A (en) | By means of the recruitment data sharing method and its system of block chain | |
CN110362634A (en) | It is related to the electric quotient data sharing method and its system of block chain | |
CN110390007A (en) | It is related to the knowledge question data sharing method and its system of block chain | |
CN110543487A (en) | Evidence storage method and device for lost children on block chain | |
CN110417806A (en) | Share the cochain method and device thereof of economic associated data in internet | |
CN110443055B (en) | Uplink method and device for self-media associated data on Internet |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication |