CN109871404A - A kind of real time mass data visualization method transmitted using binary data stream - Google Patents

A kind of real time mass data visualization method transmitted using binary data stream Download PDF

Info

Publication number
CN109871404A
CN109871404A CN201811653179.5A CN201811653179A CN109871404A CN 109871404 A CN109871404 A CN 109871404A CN 201811653179 A CN201811653179 A CN 201811653179A CN 109871404 A CN109871404 A CN 109871404A
Authority
CN
China
Prior art keywords
data
data object
client
binary
mode
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
Application number
CN201811653179.5A
Other languages
Chinese (zh)
Inventor
吴茂俊
沈峻
吕行
姚阳春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
JINZHI SCIENCE AND TECHNOLOGY Co Ltd JIANGSU
Original Assignee
JINZHI SCIENCE AND TECHNOLOGY Co Ltd JIANGSU
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by JINZHI SCIENCE AND TECHNOLOGY Co Ltd JIANGSU filed Critical JINZHI SCIENCE AND TECHNOLOGY Co Ltd JIANGSU
Priority to CN201811653179.5A priority Critical patent/CN109871404A/en
Publication of CN109871404A publication Critical patent/CN109871404A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of real time mass data visualization methods transmitted using binary data stream, including establishing page data object pattern, active data object mode is established according to visual page, active data object mode is mainly responsible for the requirement and specification that description data update, and is interacted with JSON format;By active data object mode sequences binary data stream;Server end generates static page and active data object by page editing device, generates active data object mode, and the active data object mode sequences binary data stream for needing to access according to client according to active data object, and send to client;Client uses AJAX technology access server process data, carries out unserializing according to the binary data stream that server end is sent, and be updated to visualization interface.Present invention saving data interaction frequency, small in size, transmission speed is fast, request reaction is fast.

Description

A kind of real time mass data visualization method transmitted using binary data stream
Technical field
The present invention relates to WEB information exchange field, in particular to the real time mass data in a kind of big data visualization are handed over Mutual method.
Background technique
With Internet of Things, the development of big data, cloud platform, artificial intelligence technology.Data are presented with visual form, are passed through The visualization of data is realized in static and dynamic interaction, and data drawing listization changes the traditional data recognition mode of user.Compare often The interaction packaging method seen realizes the transimission and storage of interaction data based on XML and JSON format.In Project, When there is magnanimity realtime curve, following problem is found:
(1), XML file is huge, and format is complicated, and transmission accounts for bandwidth, server end and client and parses difficult, solution to XML Analysis spends many resource and time;
(2), XML and JSON faces flood tide dynamic due to the interaction of side's progress client and server-side using character string The update of data, transmission speed, efficiency and performance, decline is obvious, influences effect of visualization.
Summary of the invention
Goal of the invention: in order to overcome the deficiencies in the prior art, the present invention provides a kind of using binary data stream The real time mass data visualization method of transmission, this method saving data interaction frequency, small in size, transmission speed is fast, please negate It should be fast.
Technical solution: to achieve the above object, the technical solution adopted by the present invention are as follows:
A kind of real time mass data visualization method transmitted using binary data stream, comprising the following steps:
Step 1 establishes page data object pattern, establishes active data object mode, dynamic number according to visual page It is mainly responsible for the requirement and specification that description data update according to object pattern, is interacted with JSON format.By active data object Mode sequences binary data stream.
Active data object mode includes: Page Name pn.Mode type type, mode type are mainly local and complete Office.Version version.Data object binds dtabinding.Data object: call number index, Object Query path path, Query type search_type returns to Value Types valuetype, time started bt, end time et.Refresh cycle refresh。
Binary Serialization data format is by type Type, total byte length Sum, returned data object and check code Check composition.
Step 2, server end generates static page and active data object by page editing device, according to dynamic data Object generates active data object mode, using the active data object mode that the storage of JSON format is global, and according to client The active data object mode sequences binary data stream for needing to access sends this binary data needed to client Stream.
Step 3, client use AJAX technology access server process data, the binary system sent according to server end Data flow carries out unserializing, is updated according to the binary data stream after unserializing to visualization interface.
Data interaction the following steps are included:
Step 1, client sends request page to server-side according to URL.
Step 2, server-side is according to client request back page and global active data object mode.
Step 3, client carries out the display of page static part.
Step 4, client crosses the total evidence of AJAX request dynamic.
Step 5, server-side receives the request of client, according to global active data object mode, inquiry group organization data, sequence Columnization binary data stream, and return to client.
Step 6, client receives binary data stream, according to global active data object mode come unserializing binary system Data flow, forms data object, and page visualization updates.
Step 7, client generates local dynamic station data object mode, sends local active data object mode to server-side Data service request.
Step 8, server-side receives the request of client, according to local dynamic station data object mode, inquiry group organization data, sequence Columnization binary data stream, and return to client.
Step 9, client receives binary data stream, according to local dynamic station data object mode come unserializing binary system Data flow, forms data object, and page Cut-set power space updates.
Step 10, step 7-9 is repeated, until completing the interaction of all data.
Preferred: binary data stream is deserialized as XML and JSON format.
It is preferred: when local data objects mode is client request, to be sent to server-side, Maintenance free, global data Object pattern is that server-side locally saves.
Preferred: for global data object pattern, the call number in Binary Serialization data format be can be omitted.It is right Call number in local data objects mode, Binary Serialization data format is essential.
The present invention compared with prior art, has the advantages that
(1), by active data object mode, server-side and client data frequency of interaction have been saved.
(2), after dynamic data Binary Serialization it is small in size, transmission speed is fast.
(3), server-side dynamic data Binary Serialization local cache solves the band of multi-client concurrent request at all The obstruction come.
Detailed description of the invention
Fig. 1, data object mode
Fig. 2, Binary Serialization
Fig. 3, binary data format data volume
Fig. 4, data exchange process.
Specific embodiment
In the following with reference to the drawings and specific embodiments, the present invention is furture elucidated, it should be understood that these examples are merely to illustrate this It invents rather than limits the scope of the invention, after the present invention has been read, those skilled in the art are to of the invention various The modification of equivalent form falls within the application range as defined in the appended claims.
A kind of real time mass data visualization method transmitted using binary data stream, as shown in Figure 1, including following step It is rapid:
Step 1 establishes page data object pattern, establishes active data object mode, dynamic number according to visual page It is mainly responsible for the requirement and specification that description data update according to object pattern, is interacted with the format of light-weighted JSON.It will move State data object mode sequences binary data stream.
Step 2, server end generates static page and active data object by page editing device, according to dynamic data Object generates active data object mode, using the active data object mode that the storage of JSON format is global, and according to client The active data object mode sequences binary data stream for needing to access sends this binary data needed to client Stream.
As shown in Fig. 2, active data object mode:
(1), server end generates static page and active data object by page editing device;
(2), active data object mode is generated according to active data object, format is stored using JSON;
(3), active data object mode main contents include:
Pn: Page Name;
Type: mode type, predominantly part and the overall situation
Version: version
Dtabinding: data object binding;
Data object: index (call number), path (Object Query path), search_type (query type, in real time or History), valuetype (return to Value Types), bt (time started), et (end time);
Refresh: refresh cycle.
(4), active data object mode is stored in server-side with JSON format, and according to data object mode sequencesization two Binary data stream.
(5), client loads the active data object mode for obtaining JSON format by the page, sends request, same and root According to active data object mode sequences binary data stream.
It as shown in Figure 3,4, is Binary Serialization generation method and data format, Binary Serialization data format is by class Type Type, total byte length Sum, returned data object and check code check composition.(1), server-side reads data object mould Formula when local data objects mode is client request, is sent to server-side, Maintenance free, and global data object pattern is clothes Business end saves.
(2), data object mode is parsed;To parsing JSON, request of data is analyzed;
(3), dynamic data is obtained, is required to carry out data organization according to object retrieval;
(4) serialized binary;
Binary Serialization data format is made of type, total byte length, returned data object and check code.For Global data, call number can be omitted, and local data's call number is essential.Such as Fig. 3;
(5), save and send binary data stream.
Step 3, client use AJAX technology access server process data, the binary system sent according to server end Data flow carries out unserializing, is updated according to the binary data stream after unserializing to visualization interface.
Using AJAX technology, server process data are accessed, visualization interface is updated according to data.
Server end carries out data organization, while sequence is melted into binary data stream according to the data model of JSON format And store, request identical for multi-client is directly transmitted without reorganizing data.
Client receives binary data stream, and according to active data object mode, unserializing binary system restores object, Data update.
Establish global active data object mode.According to all Refresh Data objects of the page, data classification, according to it is global only The specification such as one object identity, data access path, refresh cycle, the format for forming light-weighted JSON interact.
Binary data stream can be deserialized as XML and JSON format, use for third position plug-in unit.
Specification binary data format data volume simplifies redundancy bytes.
As shown in Figure 1, data interaction process the following steps are included:
Step 1, client sends request page to server-side according to URL.
Step 2, server-side is according to client request back page and global active data object mode.
Step 3, client carries out the display of page static part.
Step 4, client crosses the total evidence of AJAX request dynamic.
Step 5, server-side receives the request of client, according to global active data object mode, inquiry group organization data, sequence Columnization binary data stream, and return to client.
Step 6, client receives binary data stream, according to global active data object mode come unserializing binary system Data flow, forms data object, and page visualization updates.
Step 7, client generates local dynamic station data object mode, sends local active data object mode to server-side Data service request.
Step 8, server-side receives the request of client, according to local dynamic station data object mode, inquiry group organization data, sequence Columnization binary data stream, and return to client.
Step 9, client receives binary data stream, according to local dynamic station data object mode come unserializing binary system Data flow, forms data object, and page Cut-set power space updates.
Step 10, step 7-9 is repeated, until completing the interaction of all data.
It is preferred: when local data objects mode is client request, to be sent to server-side, Maintenance free, global data Object pattern is that server-side locally saves.
Preferred: for global data object pattern, the call number in Binary Serialization data format be can be omitted.It is right Call number in local data objects mode, Binary Serialization data format is essential.
The above is only a preferred embodiment of the present invention, it should be pointed out that: for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (5)

1. a kind of real time mass data visualization method transmitted using binary data stream, which is characterized in that including following step It is rapid:
Step 1 establishes page data object pattern, establishes active data object mode, dynamic data pair according to visual page As mode be mainly responsible for description data update requirement and specification, interacted with JSON format;By active data object mode Serialized binary data flow;
Active data object mode includes: Page Name pn;Mode type type, mode type are mainly part and the overall situation;Version This version;Data object binds dtabinding;Data object: call number index, Object Query path path inquire class Type search_type returns to Value Types valuetype, time started bt, end time et;Refresh cycle refresh;
Binary Serialization data format is by type Type, total byte length Sum, returned data object and check code check Composition;
Step 2, server end generates static page and active data object by page editing device, according to active data object Active data object mode is generated, using the active data object mode that the storage of JSON format is global, and according to client needs The active data object mode sequences binary data stream of access sends this binary data stream needed to client;
Step 3, client use AJAX technology access server process data, the binary data sent according to server end Stream carries out unserializing, is updated according to the binary data stream after unserializing to visualization interface.
2. according to claim 1 using the real time mass data visualization method of binary data stream transmission, feature exists In, data interaction the following steps are included:
Step 1, client sends request page to server-side according to URL;
Step 2, server-side is according to client request back page and global active data object mode;
Step 3, client carries out the display of page static part;
Step 4, client crosses the total evidence of AJAX request dynamic;
Step 5, server-side receives the request of client, according to global active data object mode, inquiry group organization data, serializing Binary data stream, and return to client;
Step 6, client receives binary data stream, according to global active data object mode come unserializing binary data Stream, forms data object, and page visualization updates;
Step 7, client generates local dynamic station data object mode, sends local active data object mode data to server-side Service request;
Step 8, server-side receives the request of client, according to local dynamic station data object mode, inquiry group organization data, serializing Binary data stream, and return to client;
Step 9, client receives binary data stream, according to local dynamic station data object mode come unserializing binary data Stream, forms data object, and page Cut-set power space updates;
Step 10, step 7-9 is repeated, until completing the interaction of all data.
3. according to claim 1 using the real time mass data visualization method of binary data stream transmission, feature exists In: binary data stream is deserialized as XML and JSON format.
4. according to claim 1 using the real time mass data visualization method of binary data stream transmission, feature exists In: when local data objects mode is client request, it is sent to server-side, Maintenance free, global data object pattern is clothes Business end saves.
5. according to claim 1 using the real time mass data visualization method of binary data stream transmission, feature exists In: for global data object pattern, the call number in Binary Serialization data format be can be omitted;For local data pair As mode, the call number in Binary Serialization data format is essential.
CN201811653179.5A 2018-12-29 2018-12-29 A kind of real time mass data visualization method transmitted using binary data stream Pending CN109871404A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811653179.5A CN109871404A (en) 2018-12-29 2018-12-29 A kind of real time mass data visualization method transmitted using binary data stream

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811653179.5A CN109871404A (en) 2018-12-29 2018-12-29 A kind of real time mass data visualization method transmitted using binary data stream

Publications (1)

Publication Number Publication Date
CN109871404A true CN109871404A (en) 2019-06-11

Family

ID=66917403

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811653179.5A Pending CN109871404A (en) 2018-12-29 2018-12-29 A kind of real time mass data visualization method transmitted using binary data stream

Country Status (1)

Country Link
CN (1) CN109871404A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527298A (en) * 2021-02-08 2021-03-19 北京关键科技股份有限公司 Military software management data display method and system based on genotype spectrum

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090234880A1 (en) * 2008-03-14 2009-09-17 Microsoft Corporation Remote storage and management of binary object data
CN102938776A (en) * 2012-09-28 2013-02-20 方正国际软件有限公司 Dynamic page processing system based on Asynchronous JavaScript and XML (ajax) technique
CN103888456A (en) * 2014-03-18 2014-06-25 国家电网公司 Webpage client side, server side and data processing device and method
CN107241408A (en) * 2017-06-05 2017-10-10 上海鋆创信息技术有限公司 A kind of data transmission method and device, terminal device, storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090234880A1 (en) * 2008-03-14 2009-09-17 Microsoft Corporation Remote storage and management of binary object data
CN102938776A (en) * 2012-09-28 2013-02-20 方正国际软件有限公司 Dynamic page processing system based on Asynchronous JavaScript and XML (ajax) technique
CN103888456A (en) * 2014-03-18 2014-06-25 国家电网公司 Webpage client side, server side and data processing device and method
CN107241408A (en) * 2017-06-05 2017-10-10 上海鋆创信息技术有限公司 A kind of data transmission method and device, terminal device, storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527298A (en) * 2021-02-08 2021-03-19 北京关键科技股份有限公司 Military software management data display method and system based on genotype spectrum
CN112527298B (en) * 2021-02-08 2021-06-22 北京关键科技股份有限公司 Military software management data display method and system based on genotype spectrum

Similar Documents

Publication Publication Date Title
CN103383687B (en) A kind of page processing method and device
CN209448755U (en) For the communication interconnection means in Heterogeneous simulation system
CN108769109A (en) Method and system are uniformly processed in a kind of Internet of Things heterogeneous device data
CN102546612B (en) Remote procedure call implementation method based on remote direct memory access (RDMA) protocol in user mode
CN108848108A (en) Based on mobile Internet+innovation item PDCA process management platform
CN112527528A (en) Data transmission method, device and storage medium based on message queue
CN103179133B (en) Based on the client of entity class and the method for server communication
CN112363854B (en) Front-end service framework optimization design method based on novel interface standard
CN104182234A (en) Business processing method and business system
CN103442036A (en) System integrating design development, post production and data storage and based on cloud platform
CN109831466A (en) Micro services method for processing business and nginx server
CN103324605A (en) Method, equipment and system for collaborative editing of multiple users
CN109949156A (en) A kind of data processing method and server of block chain contract
CN108647304A (en) Report display system, method, computer equipment and storage medium
CN113301168A (en) Method and system for realizing accurate shunting of requests by dynamic policy gray scale release engine
CN104750928A (en) Online simulation method based on B/S network structure mode
CN109767257A (en) Advertisement placement method, system and electronic equipment based on big data analysis
CN105872090B (en) Http communication method based on extended mode code
CN109871404A (en) A kind of real time mass data visualization method transmitted using binary data stream
CN104615597A (en) Method, device and system for clearing cache file in browser
CN108228365A (en) A kind of function request sending method, function request call method and device
CN110069566A (en) Heterogeneous database synchronization method in a kind of one-way import system
CN116974948A (en) Service system testing method, system, equipment and medium
CN104616354A (en) Method for quickly loading space data through three-dimensional GIS (global information system)
CN108173948A (en) A kind of Distributed Experiment data real-time exchange method

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

Application publication date: 20190611

RJ01 Rejection of invention patent application after publication