CN110347733A - A kind of method of adjustment based on block chain technical data cochain - Google Patents
A kind of method of adjustment based on block chain technical data cochain Download PDFInfo
- Publication number
- CN110347733A CN110347733A CN201910426043.9A CN201910426043A CN110347733A CN 110347733 A CN110347733 A CN 110347733A CN 201910426043 A CN201910426043 A CN 201910426043A CN 110347733 A CN110347733 A CN 110347733A
- Authority
- CN
- China
- Prior art keywords
- cochain
- block chain
- data
- endorsement
- application platform
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present invention provides a kind of method of adjustment based on block chain technical data cochain, S1, is inquired by block chain application platform shared data, and block chain application platform sends inquiry request message to data sharing server;S2, judge whether inquiry request message sends success, if so, data sharing server passes through HTTP-JSON interface from block chain application platform acquisition request message, into S4;If it is not, then returning to S1;The endorsement and cochain of S3, block chain node server according to the query process data in S2;S4, block chain application platform obtain response message from data sharing server by HTTP-JSON interface;The endorsement and cochain of S5, block chain node server according to the query result data in S4 have the advantages that safety, real-time, update property are good.
Description
Technical field
The invention belongs to data cochain technical fields, and in particular to a kind of adjustment side based on block chain technical data cochain
Method.
Background technique
This application be based on public security industry, existing four classes function police service data sharing: Internet bar's online, hotel ccommodation, alert information,
Case information, and it is related to the mass data of the multiple districts and cities in multiple provinces.Prefectures and cities provide intermediate database, pass through ETL tool
It is drawn into distributed ES (ElasticSearch) and carries out full-text search library, then pass through timed task mode (such as 5-10 minutes)
Non real-time nature full dose cochain is carried out to the data for being drawn into the library ES, i.e., on the account book of non real-time synchronous to each block chain.
The drawbacks of prior art: can not solve the real time problems of data, have from the process for being drawn into the library ES to data cochain
Certain property delayed;Since the history full dose data of data sharing are very more, at present more than 1.5 hundred million, and with every number of days
100000 or more incremental data causes the physical store server requirement to uplink data more;With the increase of uplink data,
The performance of inquiry block chain necessarily has reduction, but block chain can not thoroughly solve the leftover problem of data aging;In addition, number
According to shared there is more new change (state of " result of dealing with emergencies and dangerous situations " will be updated in such as alert information), will lead to block chain, there are multiclass
Quasi-redundant data.
Summary of the invention
The object of the present invention is to provide a kind of methods of adjustment based on block chain technical data cochain, to solve the prior art
The problem that scheme real-time is poor, physical server requires more, data redundancy and safety is low.
The present invention provides the following technical solutions:
A kind of method of adjustment based on block chain technical data cochain, including block chain application platform, data sharing service
Device and bottom block chain link point server, comprising the following steps:
S1, shared data is inquired by block chain application platform, block chain application platform is to data sharing service
Device sends inquiry request message;S2, judge whether inquiry request message sends success, if so, data sharing server passes through
HTTP-JSON interface is from block chain application platform acquisition request message, into S4;If it is not, then returning to S1;S3, block chain node
Endorsement and cochain of the server according to the query process data in S2;S4, block chain application platform by HTTP-JSON interface from
Data sharing server obtains response message;S5, block chain node server according to the endorsements of the query result data in S4 and
Cochain.
Further, cochain of the block chain node server to daily record data.
Further, the daily record data includes inquiring data to start to upload the time of endorsement, endorsement return state, cochain
File size, request message quantity and cochain successful response message quantity when preceding document size, cochain are completed.
Further, the generation time of endorse successfully time and last block block are inquired according to the first time,
Determine that the cochain of the block chain node server is time-consuming;It is time-consuming according to the request message quantity and the cochain, determine institute
State the cochain TPS of block chain node server;According to the endorsement return state, successfully quantity of endorsing is determined, according to the back
Quantity is inquired in book success quantity and the request, determines the endorsement success rate of the block catenary system;Above according to the cochain
File size, that is, cochain is time-consuming when part size, the cochain are completed, and determines the file rate of rise of the block catenary system;
The number of responses that quantity and the request are successfully inquired according to the cochain, determine the block catenary system synchronizes success
Rate.
The beneficial effects of the present invention are:
A kind of method of adjustment based on block chain technical data cochain of the present invention, in the data for changing block chain technology tradition
Full dose data cochain to block chain account book is changed to use process (the data query process, data query knot to data by chain pattern
Fruit, daily record data) carry out cochain;Data are converged compared to traditional library ES, are endorsed using block chain highly-safe;It can be real-time
Data cochain is inquired, the degree of belief used data is improved, can not distort prevents the property denied;Only to data query process and inquiry
As a result cochain, no longer full dose data cochain, solve the problems, such as full dose data aging and redundancy;Shared use to data solves
Actual inquiry sharing problem, no longer carries out the full dose data cochain of tidal data recovering, and whole process is more convenient.
Detailed description of the invention
Attached drawing is used to provide further understanding of the present invention, and constitutes part of specification, with reality of the invention
It applies example to be used to explain the present invention together, not be construed as limiting the invention.In the accompanying drawings:
Fig. 1 is flow diagram of the present invention.
Specific embodiment
As shown in Figure 1, a kind of method of adjustment based on block chain technical data cochain, including block chain application platform, number
According to shared server and bottom block chain link point server, comprising the following steps:
S1, shared data is inquired by block chain application platform, block chain application platform is to data sharing service
Device sends inquiry request message;
S2, judge whether inquiry request message sends success,
If so, data sharing server by HTTP-JSON interface from block chain application platform acquisition request message, into
Enter S4;
If it is not, then returning to S1;
The endorsement and cochain of S3, block chain node server according to the query process data in S2;
S4, block chain application platform obtain response message from data sharing server by HTTP-JSON interface;
The endorsement and cochain of S5, block chain node server according to the query result data in S4.
Cochain of the block chain node server to daily record data;Daily record data include inquire data start upload endorsement when
Between, endorsement return state, cochain preceding document size, cochain complete when file size, request message quantity and cochain it is successful
Response message quantity;It is endorsed the generation time of successfully time and last block block according to first time inquiry, determines block chain link
The cochain of point server is time-consuming;It is time-consuming according to request message quantity and cochain, determine the cochain TPS of block chain node server;
According to endorsement return state, successfully quantity of endorsing is determined, according to successfully quantity and the request inquiry quantity of endorsing, determine block linkwork
The endorsement success rate of system;File size, that is, cochain is time-consuming when being completed according to cochain preceding document size, cochain, determines block catenary system
File rate of rise;The number of responses that quantity and request are successfully inquired according to cochain, determine the synchronization of block catenary system at
Power.
The embodiment of present embodiment:
With Huai-Hai economic zone police service block chain application platform, prefectures and cities' data sharing server, Huai-Hai economic zone police service bottom
For layer block chain node server, (1) is no longer based on the library the ES storage non real-time cochain of full dose data again, using with prefectures and cities pair
The mode of connection interface carry out real-time data cochain (from the existing net storage facility located at processing plant mating interface of prefectures and cities, it is ensured that data it is accurate
Property);(2) for not having the districts and cities of real-time interface docking capacity, districts and cities provide middle database, carry out unified encapsulation middleware
Do real-time query (it is provided by prefectures and cities middle database data accuracy carry out it is responsible);(3) policeman's logarithm in application platform
According to shared query process, carried out based on (1) or (2) mode in real time to prefectures and cities' request data message, by prefectures and cities by connecing
Mouth API returned data, makees query process cochain to the real time data of return;(4) it is based on the query result of (3), tries again and looks into
Ask the cochain movement of result.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, although referring to aforementioned reality
Applying example, invention is explained in detail, for those skilled in the art, still can be to aforementioned each implementation
Technical solution documented by example is modified or equivalent replacement of some of the technical features.It is all in essence of the invention
Within mind and principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (4)
1. a kind of method of adjustment based on block chain technical data cochain, including block chain application platform, data sharing server
With bottom block chain link point server, which comprises the following steps:
S1, shared data is inquired by block chain application platform, block chain application platform is sent out to data sharing server
Send inquiry request message;
S2, judge whether inquiry request message sends success,
If so, data sharing server passes through HTTP-JSON interface from block chain application platform acquisition request message, enter
S4;
If it is not, then returning to S1;
The endorsement and cochain of S3, block chain node server according to the query process data in S2;
S4, block chain application platform obtain response message from data sharing server by HTTP-JSON interface;
The endorsement and cochain of S5, block chain node server according to the query result data in S4.
2. a kind of method of adjustment based on block chain technical data cochain according to claim 1, which is characterized in that described
Cochain of the block chain node server to daily record data.
3. a kind of method of adjustment based on block chain technical data cochain according to claim 2, which is characterized in that described
Daily record data includes when inquiring data to start to upload the time of endorsement, endorsement return state, cochain preceding document size, cochain completion
File size, request message quantity and the successful response message quantity of cochain.
4. a kind of method of adjustment based on block chain technical data cochain according to claim 3, which is characterized in that according to
The first time inquires the generation time of endorse successfully time and last block block, determines the block chain node serve
The cochain of device is time-consuming;It is time-consuming according to the request message quantity and the cochain, determine the upper of the block chain node server
Chain TPS;According to the endorsement return state, successfully quantity of endorse is determined, successfully quantity and described request to look into according to described endorse
Quantity is ask, determines the endorsement success rate of the block catenary system;Eight-legged essay is completed according to the cochain preceding document size, the cochain
Part size, that is, cochain is time-consuming, determines the file rate of rise of the block catenary system;It is successfully inquired according to the cochain
The number of responses of quantity and the request determines the synchronization success rate of the block catenary system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910426043.9A CN110347733A (en) | 2019-05-21 | 2019-05-21 | A kind of method of adjustment based on block chain technical data cochain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910426043.9A CN110347733A (en) | 2019-05-21 | 2019-05-21 | A kind of method of adjustment based on block chain technical data cochain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110347733A true CN110347733A (en) | 2019-10-18 |
Family
ID=68174301
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910426043.9A Pending CN110347733A (en) | 2019-05-21 | 2019-05-21 | A kind of method of adjustment based on block chain technical data cochain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110347733A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112417047A (en) * | 2020-11-23 | 2021-02-26 | 湖南智慧政务区块链科技有限公司 | Data sharing platform based on block chain |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109639521A (en) * | 2018-12-05 | 2019-04-16 | 北京京东金融科技控股有限公司 | Test method, device, equipment and the storage medium of block chain performance |
CN109711201A (en) * | 2018-12-29 | 2019-05-03 | 百度在线网络技术(北京)有限公司 | Poverty alleviation processing method, device, equipment and medium based on block chain |
-
2019
- 2019-05-21 CN CN201910426043.9A patent/CN110347733A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109639521A (en) * | 2018-12-05 | 2019-04-16 | 北京京东金融科技控股有限公司 | Test method, device, equipment and the storage medium of block chain performance |
CN109711201A (en) * | 2018-12-29 | 2019-05-03 | 百度在线网络技术(北京)有限公司 | Poverty alleviation processing method, device, equipment and medium based on block chain |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112417047A (en) * | 2020-11-23 | 2021-02-26 | 湖南智慧政务区块链科技有限公司 | Data sharing platform based on block chain |
CN112417047B (en) * | 2020-11-23 | 2023-08-08 | 湖南智慧政务区块链科技有限公司 | Data sharing platform based on block chain |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10540611B2 (en) | Scalable complex event processing with probabilistic machine learning models to predict subsequent geolocations | |
CN104794190B (en) | The method and apparatus that a kind of big data effectively stores | |
CN107729366A (en) | A kind of pervasive multi-source heterogeneous large-scale data synchronization system | |
CN107544984A (en) | A kind of method and apparatus of data processing | |
CN104750855B (en) | A kind of big data storage optimization method and device | |
CN105956015A (en) | Service platform integration method based on big data | |
CN106611246A (en) | Integrated management system of land and resources | |
CN105243169B (en) | A kind of data query method and system | |
CN110110005B (en) | Block chain-based key information basic data asset management and control method | |
CN106164865A (en) | Affairs batch processing for the dependency perception that data replicate | |
CN104504008B (en) | A kind of Data Migration algorithm based on nested SQL to HBase | |
CN103020078A (en) | Distributed real-time database data hierarchical indexing method | |
CN111708794B (en) | Data comparison method and device based on big data platform and computer equipment | |
US11553023B2 (en) | Abstraction layer for streaming data sources | |
CN109767052A (en) | Autotask distribution method and system | |
CN111488614A (en) | Digital identity storage method and device based on service data block chain | |
CN103810247A (en) | Disaster recovery data comparing method based on bucket algorithm | |
CN108153793A (en) | A kind of original data processing method | |
Hongqian et al. | Cloud-based data management system for automatic real-time data acquisition from large-scale laying-hen farms | |
CN106776795A (en) | Method for writing data and device based on Hbase databases | |
CN110347733A (en) | A kind of method of adjustment based on block chain technical data cochain | |
US20180137015A1 (en) | Replication of data in distributed environments | |
CN107563777A (en) | The endowed two-dimension code anti-counterfeit system and method for facing to manufacture line high speed | |
CN103078946A (en) | Mass real-time data distributing method and mass real-time data access method | |
CN111061806B (en) | Storage method and networked access method for distributed massive geographic tiles |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191018 |