CN106210099B - Data processing system and method - Google Patents
Data processing system and method Download PDFInfo
- Publication number
- CN106210099B CN106210099B CN201610573076.2A CN201610573076A CN106210099B CN 106210099 B CN106210099 B CN 106210099B CN 201610573076 A CN201610573076 A CN 201610573076A CN 106210099 B CN106210099 B CN 106210099B
- Authority
- CN
- China
- Prior art keywords
- data
- real
- client
- request
- time data
- 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.)
- Active
Links
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/10—Protocols in which an application is distributed across nodes in the network
-
- 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/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
Abstract
The present invention provides a kind of data processing system and method.The data-interface that the system includes: database, is connect with client and the database communication;Wherein, data-interface, it receives the data from client and carries out data publication to be sent to the data channel for the type for corresponding to the data in database, and/or, database is connected according to the request of data of client to obtain the real-time or non real-time data of the corresponding request.Scheme through the invention eliminates the connection relationship of various client applications Yu application server and database, alleviates the operating pressure of application server, and improves the safety of database and application server.
Description
Technical field
The present invention relates to technical field of data processing more particularly to a kind of data processing systems and method.
Background technique
Currently, most of air-conditioner set all can mating communication module (such as GPRS module) carry out the maintenance of unit data monitoring,
As the shipping Qty. of air-conditioner set is continuously increased, the unit Data Concurrent of processing is received also growing and subsequent real-time
Data and non-real-time data are more extensive in the usage scenario of client, and client application includes such as end PC monitoring software, hand
Machine application software, webpage and third-party application software etc..
In existing scheme, application server is transmitted back to the unit come in addition to needing to parse and store air-conditioner set communication module
Outside data, also to handle and the connection relationship of monitor client, real time data request relationship and monitor client and air conditioner
The connection relationship etc. of the communication module of group, carrying pressure are big;And when database or server content are modified, PC monitoring programme,
The call method of mobile phone application software, webpage and third-party application software etc. will be modified simultaneously, time-consuming and laborious.
In addition, when the data for calling application server and database server direct-connected to third-party application software, it must
Server address is exposed on public network, therefore server can also have certain insecurity factor.
With the arrival of air-conditioner set big data era, the unit quantity for needing to monitor is also more and more, existing long-range
Intelligent Service center can no longer meet the monitoring demand of huge unit quantity, develop a set of long-range intelligence for monitoring a large amount of units
Energy service center data processing system has been extremely urgent.
In view of the above-mentioned problems, not yet proposing effective solution mode at present.
Summary of the invention
In view of this, the present invention provides a kind of data processing system and method, pass through the data that publication data are subscribed in setting
Thus middle converting interface eliminates the connection relationship of various client applications and application server and database and the place of various relationships
Reason, mitigates the operating pressure of application server;Further, the acquisition of the real time data and historical data of unified air-conditioner set, subtracts
Few server content modification leads to the unnecessary change of other application, and then realizes compatible various using air-conditioning by unified interface
The calling of unit data obtains, and improves the safety of database and application server.
According to an aspect of the present invention, a kind of data processing system is provided, comprising: database, with client and described
The data-interface of database communication connection;Wherein, it is right in database to be sent to receive the data from client for data-interface
Should data type data channel and carry out data publication, and/or, database is connected according to the request of data of client
To obtain the real-time or non real-time data of the corresponding request.
Wherein, application server is connect with unit and the database communication, by the received data processing from unit
After be sent to database purchase, and/or, to unit send is obtained from database unit needs data;It is described to come from unit
Data, the unit data, the data from client, the data of the request that need include: real time data and/
Or non-real-time data;And/or data-interface includes data interface server, the connection number according to the request of data of client
Include: the request of data according to client to obtain the data of the corresponding request according to library and establish in client and database
The relationship of data channel corresponding with the type of the data of the client request, and obtain the real time data on the data channel with
It is distributed to the client;And/or database is connected according to the request of data of client, the non-real-time data of acquisition request.
Wherein, database includes: the history of the real-time data base and/or storage non-real-time data for storing real time data
Database;The real-time data base is based on subscription-release model, establishes data channel in real-time data base, publication it is real-time
Data are distinguished in the corresponding data channel of deposit with data type;Wherein, subscription-release model includes: that real time data is logical
Cross data classification and define data channel, the type of data as needed and subscribe to corresponding data channel, and/or according to wanting
The type of the data of transmission is by data publication to corresponding data channel.
Wherein, data interface server includes: that data subscription realizes module, according to the request of data of client, connection
The real-time data base subscribes to number corresponding with the type of the real time data of the client request from the real-time data base
According to channel, and the subscribing relationship of the client Yu corresponding data channel is recorded, to establish the relationship of client and data channel;
And/or data publication realizes module, connects the real-time data base, needs to send out with client in Xiang Suoshu real-time data base
The corresponding data channel of type of the specified real time data of cloth issues the real time data that the client request is sent;With/
Or, application server includes: the connection real-time data base, the data channel of Xiang Suoshu real-time data base is issued the unit and is needed
The real time data to be issued subscribes to the data channel that the unit needs to subscribe to from the real-time data base;And/or history
Database provides the non-real-time data of client request to client by data interface server.
Wherein, data subscription realizes module, comprising: the acquisition request of client-based real time data obtains and needs to order
The type and group identity for the data read are subscribed to pair according to the subscription data type and group identity to the real-time data base
The data channel answered, and record the subscribing relationship;And/or the subscribing relationship based on record, data interface server receive real
When database in data channel push data, by data-pushing to the client for establishing with data channel subscribing relationship;With/
Or, data publication realizes module, comprising: the transmission request based on the real time data obtains target group identity and request hair
The type for the data sent, according to the type of the data and target group identity into the real-time data base corresponding data channel
Issue the real time data that the request is sent.
Wherein, data interface server further include: data subscription, which is cancelled, realizes module, connects the real-time data base,
After realizing and subscribing to the corresponding data channel in the real-time data base, when receiving cancellation number from the client
According to subscription request when, cancel the subscription of the corresponding data channel of data that the client unsubscribes request.
Wherein, the data subscription, which is cancelled, realizes that module cancels the corresponding number of data that the client request unsubscribes
Subscription according to channel includes: to delete the subscribing relationship of the client and corresponding channel, judges whether the corresponding channel is also deposited
In subscribing relationship, if it is, continuing to the data of the corresponding channel push;If it is not, then from the real-time data base
The middle subscription for cancelling the data interface server to the corresponding channel.
Wherein, the real-time data base is Redis database;And/or application server by treated, deposit by real time data
Redis database is stored up to be published to the data channel of the type of corresponding real time data;Wherein, the processing includes parsing;Number
Building with it for the data channel record is sent by the real time data for being published to the data channel according to interface server
Found the client of corresponding relationship, and/or, data interface server according to client real-time data warehouse request and to Redis
The data channel of the type of corresponding real time data issues the real time data from the client in database.
Wherein, further includes: data interface server receives the access request to the non-real-time data from the client,
Non-real-time data, which is obtained, from the historical data base returns to the client.
According to another aspect of the present invention, a kind of data processing method is provided, comprising: receive the data from client
To be sent to the data channel of the data is corresponded in database and carry out data publication;And/or the request of data according to client
And database is connected, to obtain the data of the corresponding request.
Wherein, the request of the data acquisition from client pair specified data relevant to specified unit or transmission is received;
When the request is sends request, the type of the data and the data channel of specified unit are corresponded in Xiang Suoshu database, is sent out
The specified data for sending the request to send;When the request is acquisition request, the request is obtained from database
Real-time or non real-time data, and the data of the acquirement are returned into the client;Wherein, request with the specified machine
The relevant specified data of group are sent in the database by the application server connecting with the specified group communication to be stored.
Wherein, when the request is acquisition request, the real-time or non real-time of the request is obtained from database
Data, and the data of the acquirement are returned into the client, comprising: if request real time data, from the database
In real-time data base in subscribe to corresponding with the real time data of request data channel;Record the client and institute
State the subscribing relationship of corresponding channel;Receive the data of the data channel push of the subscription;Subscribing relationship based on the record
Data are returned to the client that subscribing relationship is established with the data channel;And/or if request non-real-time data,
Non-real-time data is obtained from the historical data base in database, and the non-real-time data that will acquire returns to the client
End.
Wherein, further includes: Xiang Suoshu clients providing data method for subscribing;It is subscribed to from the real-time data base and specified
Real time data corresponding data channel the step of include: the acquisition request based on the real time data, obtain needing to subscribe to
Data type and group identity;Corresponding frequency is subscribed to from the real-time data base according to the subscription data type and group identity
Road.
Wherein, when the request is sends request, correspond in Xiang Suoshu database the data type and specified unit
Data channel, send it is described request send specified data, comprising: when the specified data of transmission include real time data
When, data corresponding with the type of the specified real time data and specified unit in the real-time data base in Xiang Suoshu database
Channel issues the real time data.
Wherein, when the specified data of transmission include real time data, in the real-time data base in Xiang Suoshu database
Data channel corresponding with the type of the specified real time data and specified unit, issues the real time data, comprising: is based on institute
State the transmission request of specified real time data, the type of data for obtaining target group identity and needing to send, to it is described in real time
The data channel of type and group identity that the data are corresponded in database issues the data for needing to send.
Wherein: after realizing and subscribing to the corresponding data channel in the real-time data base, when from the client
When termination receives the request for cancelling data subscription, the subscribing relationship of the client with corresponding channel is deleted, judges the correspondence
Whether there is also subscribing relationships for channel, if it is, continuing to the data of the corresponding channel push;If it is not, then from institute
State the subscription for cancelling the data interface server in real-time data base to the corresponding channel.
Wherein, it is executed in various method steps data processing system described in claim 1-9.
Wherein, the real-time data base is Redis database.
A kind of data processing system and method proposed according to the present invention passes through the middle converting interface that publication data are subscribed in setting
(such as: data interface server) is taken over the data communication between processing client and application server and database by it, gone
In addition to the processing of various client applications and the connection relationship and various relationships of application server and database, and then realize client
The compatibility of data is called in end application (such as: PC monitoring programme, cell phone application, webpage and third-party application), alleviates application service
The operating pressure of device, and improve the safety (such as: avoiding the exposure of server address) of database and application server.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And can be implemented in accordance with the contents of the specification, the following is a detailed description of the preferred embodiments of the present invention and the accompanying drawings.
Detailed description of the invention
The attached drawing for constituting a part of the invention is used to provide further understanding of the present invention, schematic reality of the invention
It applies example and its explanation is used to explain the present invention, do not constitute improper limitations of the present invention.In the accompanying drawings:
Fig. 1 shows a kind of frame diagram of an embodiment of data processing system of the invention;
Fig. 2 shows a kind of flow charts of an embodiment of data processing method of the invention;
Fig. 3 shows the frame diagram of an embodiment of data interface server and real-time data base in system of the invention;
Fig. 4 shows the flow chart of an embodiment of Real time data acquisition in method of the invention;
Fig. 5 shows the flow chart for the embodiment that real time data is sent in method of the invention;
Fig. 6 shows the flow chart for cancelling an embodiment of data subscription in method of the invention in real time;
Fig. 7 shows in system of the invention while having the frame of an embodiment in real-time data base and non-real-time data library
Figure.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with the specific embodiment of the invention and
Technical solution of the present invention is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the present invention one
Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
Fig. 1 shows a kind of structural framing figure of an embodiment of data processing system provided by the invention.Such as Fig. 1 institute
Show, the data processing system 100 includes application server 130, data-interface 110 and database 120.
In one embodiment, application server 130 can with unit 301 ..., 30n and database 120 communicate to connect,
From unit 301 ..., 30n receive data, handle from unit 301 ..., 30n receive data (by taking air-conditioner set as an example: should
Processing include but is not limited to dissection process be transmitted back to come compressor set data, unit data are calculated in real time, etc.),
Will treated that data are sent to database 120 stores, and obtain the data that unit needs from the database 120, to
Unit 301 ..., 30n send the data of the needs.
In one embodiment, data-interface 110 can use data interface server.Data interface server 110 can
With with client 201 ..., 20n and database 120 communicate to connect, receive from client 201 ..., the data of 20n to be to send out
Be sent to the data channel of 120 corresponding data type of database and realize data publication, and/or, according to client 201 ..., 20n
Request of data and connect database 120 to obtain the real-time or non real-time data of the corresponding request.Such as: from client
201 ..., 20n, which is received, needs the data issued, and the data are sent to database 120 and are stored, and from client
201 ..., 20n receive request of data, obtain requested data from database 120, to client 201 ..., 20n return quilt
The data of request.As a result, client 201 ..., 20n can be needed by data interface server 110 from database 120
Unit 301 ..., the data of 30n.
In an embodiment of the present invention unit 301 ..., 30n by taking air-conditioner set as an example but be not limited to air-conditioner set, certainly
It is also possible to any other electric appliance unit, such as washing machine unit, refrigerator unit.
With the development of internet, intelligentized process, most business air conditioner unit can all be equipped with communication module packet
It includes but is not limited to GPRS module to carry out unit data monitoring maintenance, communication module monitors air-conditioner set data, passes through network
It is transferred through the unit data of compression algorithm compression.
Further, application server 130 receive unit 301 ..., the communication module (such as: GPRS module) of 30n is transmitted back to
The unit data come, and handle these data, and the processing includes but is not limited to that parsing is transmitted back to compressor set data come, right
Unit data are calculated in real time, etc., then will treated that data are sent to database 120 stores, and/or, to
Unit 301 ..., 30n send is obtained from database 120 unit needs data.Preferably, unit data and unit need
Data include in real time and/or non-real-time data.
In one embodiment, when storing unit data in database 120, such as: by group identity (for example, machine
The MAC Address of the GPRS module of group) it stores simultaneously, it is taken so as to subsequent.
Further, when client 201 ..., 20n need to obtain unit 301 ..., the data of 30n when, client
201 ..., 20n sends request of data to data interface server 110, in client data request, for example including needing
The data type and group identity arrived, by data interface server 110 according to obtaining the data from client data request
Type and group identity take out the data of the corresponding data type of corresponding group identity from database 120, then will obtain
Data return to client 201 ..., 20n.
Fig. 2 shows a kind of flow chart of an embodiment of data processing method of the invention, the method can be applied
In data-interface, it is particularly applied to data interface server, comprising:
Step S210 receives asking for data acquisition or transmission from client pair specified data relevant to specified unit
It asks;
When the request is acquisition request, step S211 and step S212 is executed
Step S211 obtains the data of request from database,
The data of acquirement are returned to client by step S212;
When the request is sends request, step S213 is executed,
Step S213 sends the specified data that the request is sent to database.
In turn, unit 301 ..., 30n client can also be obtained by application server 110 and database 120
201 ..., the data of 20n, for example, client 201 ..., the control instruction that issues of 20n, such as producer's grade parameter modification issues
Instruction.
Client 201 ..., 20n by taking monitoring center PC as an example, the data that will be handed down to unit are sent to data and connect
Mouth server 110, the data to be issued client of data interface server 110 are sent to database, under database 120 stores
The data of hair.
Preferably, database 120 storage by client 201 ..., 20n issue data when, while storing target machine
Group mark (such as address Mac of GPRS module).Application server 110 can obtain from database and be directed to target unit as a result,
Issue data, and the data that issue of acquirement are sent to target unit.
As it can be seen that by setting data interface server 110, by data interface server 110 come adapter tube processing client
201 ..., the data communication between 20n and application server 130 eliminates the company of various client applications and application server
Relationship is connect, allows application server to be absorbed in processing unit and is transmitted back to the unit data come, alleviate application server
Operating pressure, and without providing the address of database and application server, to improve the peace of database and application server
Quan Xing.
Further, application server 130 is handled slave unit 301 ..., the data that receive of 30n and/or data connect
Mouthful server 110 from client 201 ..., the data that receive of 20n include real time data.Database 120 includes for storing
The real-time data base of the real time data, the real-time data base is based on subscription, release model is realized, builds in real-time data base
The real time data of vertical data channel, publication is distinguished in the corresponding data channel of deposit with data type.Wherein, further
Ground, subscription-release model are that real time data by data classification defines data channel, the type of data as needed and order
Read corresponding data channel, and/or according to the types of data by data publication to corresponding data channel.
Still by taking air-conditioner set as an example, unit 301 ..., 30n can generate a large amount of real time datas, for example including but be not limited to
Operation of air conditioner data, the connection status of group communication module and server, the state of unit active reporting (for example including but it is unlimited
In: unit hair failure, unit is being debugged, unit producer parameter is modified, unit is in sub-health state, unit activly request
Connection status) etc..
Application server 130 processing (such as: parsing) from unit 301 ..., the communication module such as GPRS module of 30n
When being transmitted back to the data come, it is also possible to generate real time data, for example including but to be not limited to server error message prompt (wrong
False information is mainly the miscue that server detects during parsing data, automatically creating supervision control engineering).
Client 201 ..., 20n may also generate real time data, for example including but be not limited to producer grade parameter modification under
Send instructions or other control instructions (by taking air-conditioner set as an example: producer's grade parameter is usually in air-conditioner set shipment debugging process
The settable parameter of some units set, only associate are by inputting the unit ginseng that designated pin can just modify
Number).
Further, Fig. 3 shows an embodiment of data interface server and real-time data base in system of the invention
Structural block diagram.
Using subscribe to, release model realize real-time data base 121 in establish data channel 1211 ..., 121n, and will
Real time data recited above is stored in corresponding channel.The channel is, for example, to be classified to determine according to the type of the real time data
Justice.Illustratively, channel designation for example designs are as follows: initial+data type code (can also be function code)+" _ "+unit mark
Know (since the address the Mac whole world is unique, it is therefore possible to use the address Mac of the communication module of unit such as GPRS module is as machine
The mark of group, is certainly not limited to this, such as can also use IP address, and the address as communication such as address wifi can also adopt
Usually there is unique number with the unit of machine group #, each producer's production).Wherein,
Initial: publisher, client C, application server S are represented;
Data type code: operation of air conditioner data are 96, the connection status of unit GPRS module and server is 97, server
It is 91 that error message, which prompts for sending instructions under EE, producer's grade parameter modification for 98 and unit active reporting state,;
Group identity: being the unique identification that data are transmitted in each GPRS monitoring module such as the address GPRS module Mac.
It is exemplified below, real-time data base 121 is that the operation data of unit 301 establishes an individual channel, it is assumed that
The address GPRS module Mac of unit 301 is " 00-01-6C-06-A6-29 ", then the channel can be named are as follows: S96_00-01-
6C-06-A6-29.Real-time data base 121 is that client 201 is issued under producer's grade parameter modification of unit 301 foundation that sends instructions
One individual channel, then the channel can be named are as follows: C98_00-01-6C-06-A6-29.
Further, in order to realize data subscription and the publication of client, data interface server 110 includes that data are ordered
It reads and realizes that module 111 and data publication realize module 112.
Data subscription realizes that module 111 connects real-time data base 121, subscribes to the visitor from the real-time data base 121
Family end 201 ..., the corresponding data channel of real time data of 20n request, and record the subscription of the client with corresponding channel
Relationship.
When client request obtains real time data, Fig. 4 shows a reality of Real time data acquisition in method of the invention
Apply the flow chart of example.
Step S411 is subscribed to corresponding with the real time data of request from the real-time data base 121 in database 120
Data channel;
Step S412 records the subscribing relationship of client and corresponding channel;
Step S413 receives the data of the data channel push of subscription;
Data are returned to the client that subscribing relationship is established with data channel based on the subscribing relationship of record by step S414.
Preferably, before step S411 subscribes to data channel, it is right to judge whether data interface server had subscribed
Channel (step S410) is answered, if had subscribed, without subscribing to again, jumps directly to step S411.
Preferably, the data subscription of data interface server 110 realizes the obtaining based on the real time data of module 111
Request is taken, the address Mac for needing the data type and group identity such as GPRS module subscribed to is obtained, according to the subscription data
Type and group identity subscribe to corresponding channel from real-time data base 121.Wherein, data interface server can be mentioned to client
It, can be by client to the calling of the acquisition request trigger data method for subscribing of real time data for data subscription method.
In real-time data base 121, the subscription of corresponding channel is realized, such as add in subscriber's inventory of corresponding channel
Data interface server 110 is subscriber.
Example is named to illustrate, such as when client 201 needs to monitor such as operation data of unit 301, then client
End 201 can be gone to subscribe to the corresponding channel of operation data, and client 201 calls the data subscription side of data interface server 110
Method, the calling of the method for subscribing based on the data of data interface server 110, the data type to be subscribed to of acquisition are operation data
96, the mark of the target unit 301 such as address Mac is " 00-01-6C-06-A6-29 ", and then, data interface server 110 is to reality
When database 121 subscribe to and (be certainly not limited to this, data interface server 110 can basis comprising the channel of above-mentioned key message
Channel naming rule determines channel designation), real-time data base 121 finds entitled S96_00-01- according to above-mentioned key message
The channel of 6C-06-A6-29, it is subscriber that data interface server 110 is added in the channel.Data interface server 110 is remembered
Record the subscribing relationship of client 201 and channel S96_00-01-6C-06-A6-29.
Further, after establishing subscribing relationship, in real-time data base 121 when there are the channel data to update, according to
The subscriber of the channel records, can be by the data-pushing of update to interface server 110.Data interface server 110 receives reality
When database 121 in data channel push data, based on the subscribing relationship of record by data-pushing to the channel establish
The client of subscribing relationship, so that the data for realizing data acquisition request return.
For example, real-time data base 121 checks the frequency when there are channel S96_00-01-6C-06-A6-29 data to update
The subscriber list in road, discovery has data-interface to service 110, then by the data-pushing of update to interface server 110, interface
Server 110 is according to the subscribing relationship of record, then by data-pushing to subscribing to client 201.
Data publication realizes that module 112 connects real-time data base 121, requests to send out to 121 issue client terminal of real-time data base
The real time data sent.
Preferably, Fig. 5 shows the flow chart for the embodiment that real time data is sent in method of the invention.
Data interface server 110 is requested based on the transmission of the real time data, acquisition target group identity (such as Mac
Address) and the data type (step S510) sent is requested, channel is corresponded into real-time data base 121 issues the request transmission
Real time data (step S511).Wherein, data interface server 110 can be to clients providing data dissemination method, can be with
By client to the calling of the posting request trigger data dissemination method of real time data.
For example, client 201 needs to push to unit 301 when sending instructions under producer's grade parameter modification, client 201 is called
The data publication method of data interface server 110, data publication realizes that module 112 is based on number in data interface server 110
According to the calling of dissemination method, the mark such as MAC Address for obtaining target unit 301 is that " 00-01-6C-06-A6-29 " and needs push away
The data type sent is to send instructions 98 under producer's grade parameter modification, includes the frequency of above-mentioned key message into real-time data base 121
Road C98_00-01-6C-06-A6-29 is issued to send instructions under producer's grade parameter modification.
Further, data interface server 110 further include: data subscription, which is cancelled, realizes module 113, connects number in real time
According to library 121, after realizing and subscribing to corresponding data channel in real-time data base 121, when receiving cancellation number from client
According to subscription request when, cancel the subscription of the corresponding data channel of data that client unsubscribes request.
Fig. 6 shows the flow chart for cancelling an embodiment of data subscription in method of the invention in real time,
Step S610 deletes the subscribing relationship of client and corresponding channel,
Step S611, judge corresponding channel whether there is also subscribing relationship,
Step S612, if it is, continuing to the data of corresponding channel push;
Step S613, if it is not, then cancelling subscription of the data interface server to corresponding channel from real-time data base.
Wherein, data interface server 110 can be provided to client cancels data subscription method, can pass through client
Cancel the calling of data subscription method to the subscription cancellation request triggering of real time data.
Further, application server 130 connects real-time data base 121, to the data channel of real-time data base 121
1211 ..., 121n issue unit 301 ..., 30n needs the real time data issued, and subscribes to machine from the real-time data base
Group 301 ..., 30n need the data channel subscribed to.
For example, new data transmission is returned application server 130, application service when unit 301 generates new operation data
Mac address " 00-01-6C-06-A6-29 " and data type (operation of the device 130 according to the mark such as GPRS module of unit 301
Data 96), new operation data is published to data channel S96_00-01-6C-06-A6-29 in the real-time data base.
For example, sending instructions under producer's grade parameter modification for itself when unit 301 needs to subscribe to, then unit 301 is requested
Application server 130 goes in real-time data base to subscribe to, and application server 130 is according to the mark such as GPRS module of unit 301
The address Mac 00-01-6C-06-A6-29, and data type (sending instructions 98 under producer's grade parameter modification) is subscribed to, it is counted in real time
According to subscription channel C98_00-01-6C-06-A6-29 in library 121.
Further, when unit 301 has subscribed channel C98_00- to real-time data base 121 by application server 130
01-6C-06-A6-29, then when there are the channel data to update, the real-time data base 121 checks subscriber's column of the channel
Table, discovery have application server 130, and then by the data-pushing of update to application service 130, application service 130 will update again
Data-pushing extremely subscribes to unit 301.
Real-time data base 121 is realized by using release model is subscribed to, and client and unit is allowed actively to go to subscribe to them
The data channel that oneself is needed, application server are only needed the air-conditioner set data publication parsed to corresponding data channel,
To realize the processing of the relationships such as client application link, request of data on removal application server, server operation is reduced
Pressure and raising Server Security, while the access of the air-conditioning data of compatible a variety of applications is called.
Preferably, real-time data base 121 is Redis database, and this database (memory database) has orders well
Issue mechanism is read, a channel can be subscribed to and receives the complete news release record from application server, also, it can be with
Storage system is used for using key-value data in memory can persistence.
Further, application server 130 from unit 301 ..., the data that receive of 30n include non-real-time data,
Database 120 includes the historical data base 122 for storing the non-real-time data,
The historical data base 122 by interface server 110 to client 201 ..., 20n provide non-real-time data.
Non-real-time data includes but is not limited to: engineering details (include: engineering name, installation site, sales company
Deng), unit details (including: machine set type, unit model, unit bar code, maintenance date etc.), unit break down record
Information (including: break down unit information, failure title, time of origin etc.), data unit operation etc..
Further, data interface server 110 asks the access of the non-real-time data from client reception
It asks, data interface server 110 obtains non-real-time data from historical data base 122, and the non-real-time data that will acquire
Return to client.Wherein, data interface server 110 can provide non-real-time data access method, Ke Yitong to client
Client is crossed to the calling of the access request triggering non-real-time data access method of non-real-time data.
That is, when client will access non-real-time data, the non-real-time data of client call interface server
Access method, data interface server 110 are incited somebody to action from non-real-time data required for acquisition client in historical data base 122
The non-real-time data obtained returns to client.
Fig. 7 shows in data processing system of the invention while having a reality in real-time data base and non-real-time data library
Apply the block diagram of example.
Client 201~20n connection data interface server 110, from 110 request data of data interface server or to
Data interface server 110 sends data,
The request of data that data interface server 110 distinguishes client is for real time data or for non real-time number
According to when being directed to real time data, data interface server 110 subscribes to real time data from real-time data base 121 or to real-time
Issue real time data in database 121, real-time data base 121 is by the data-pushing of subscription to data interface server 110, data
Data are returned to client by interface server 110;When request of data is for non-real-time data, data interface server 110
Non-real-time data is obtained from such as historical data base 122 or sends non-real-time data to historical data base 122, from history number
Client is returned to according to the non-real-time data that library 122 obtains.
Application server 120 connects the communication module of 301~30n of unit, handles unit real time data to real-time data base
121 publication and from real-time data base 121 subscribe to unit needed for real time data, and non-real-time data is stored in historical data
For client call in library 122.
Data processing system and method for the invention are described above.Above scheme according to the present invention, passes through
Be arranged and subscribe to and issue the data relay interface of data such as: data interface server is taken over processing by data interface server
Data communication between client and application server and database eliminates various client applications and application server sum number
According to the connection relationship in library, server is also just eliminated for client and its linking relationship, real time data request relationship and visitor
The processing of the GPRS module relationship of family end connection mitigates the pressure of server, that is, server is allowed to be absorbed in the parsing of the data of unit
Operation and the operating pressure for storing and alleviating application server;There is provided unified interface address (such as: data-interface service simultaneously
Device) to each application calling real time data and historical data, obtained using the compatible various calling using unit data of unified interface,
The acquisition of the real time data and historical data of unified unit simultaneously, reducing server content modification leads to the unnecessary of other application
Change;Also, the actual address exposure for avoiding server and database, improves the safety of database and application server
Property.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention can phase
Mutually combination.
The above described is only a preferred embodiment of the present invention, be not intended to limit the present invention in any form, according to
According to technical spirit any simple modification, equivalent change and modification to the above embodiments of the invention, this hair is still fallen within
In the range of bright technical solution.
Claims (17)
1. a kind of data processing system characterized by comprising
Database, the data-interface being connect with client and the database communication;Wherein,
Data-interface, receive the data from client to be sent to the data channel for the type for corresponding to the data in database and
Carry out data publication, and/or, database is connected according to the request of data of client with obtain the real-time of the corresponding request or
Non-real-time data;
Database includes:
For storing the real-time data base of real time data and/or storing the historical data base of non-real-time data;
The real-time data base is based on subscription-release model, and data channel, the real time data of publication are established in real-time data base
It is distinguished in the corresponding data channel of deposit with data type;
Wherein, subscription-release model includes: that real time data by data classification defines data channel, data as needed
Type and subscribe to corresponding data channel, and/or according to the types of the data to be sent by data publication to corresponding data
Channel.
2. the system as claimed in claim 1 characterized by comprising
Application server is connect with unit and the database communication, will be sent to after the received data processing from unit
Database purchase, and/or, the data that the unit obtained from database needs are sent to unit;
Data, the data from client, the data of the request that the data from unit, the unit need
It include: real time data and/or non-real-time data;
And/or
Data-interface includes data interface server, connects database according to the request of data of client to obtain corresponding institute
The data for stating request include:
The type pair with the data of the client request in client and database is established according to the request of data of client
The relationship for the data channel answered, and the real time data on the data channel is obtained to be distributed to the client;And/or
Database is connected according to the request of data of client, the non-real-time data of acquisition request.
3. such as the described in any item systems of claims 1 or 2, which is characterized in that
Data interface server includes:
Data subscription realizes module, according to the request of data of client, the real-time data base is connected, from the real time data
Corresponding with the type of the real time data of client request data channel is subscribed in library, and record the client with it is corresponding
The subscribing relationship of data channel, to establish the relationship of client and data channel;And/or
Data publication realizes module, connects the real-time data base, needs to issue with client in Xiang Suoshu real-time data base
The corresponding data channel of type of specified real time data issue the real time data that the client request is sent;
And/or
When the system comprises application server, application server includes:
The real-time data base is connected, the data channel of Xiang Suoshu real-time data base issues the real time data that unit needs to issue,
The data channel that the unit needs to subscribe to is subscribed to from the real-time data base;
And/or
Historical data base provides the non-real-time data of client request to client by data interface server.
4. system as claimed in claim 3, which is characterized in that
Data subscription realizes module, comprising:
The acquisition request of client-based real time data obtains the type and group identity for needing the data subscribed to, according to institute
It states and subscribes to data type and group identity to the corresponding data channel of real-time data base subscription, and record the subscription and close
System;
And/or
Subscribing relationship based on record, the data of data channel push, will count in data interface server receiving real-time data library
According to pushing to the client for establishing subscribing relationship with data channel;
And/or
Data publication realizes module, comprising:
Transmission request based on the real time data obtains the type of the data of target group identity and request transmission, according to this
The type and target group identity of data corresponding data channel into the real-time data base issue the reality that the request is sent
When data.
5. system as claimed in claim 3, wherein data interface server further include:
Data subscription, which is cancelled, realizes module, connects the real-time data base, from the real-time data base to the correspondence
Data channel realize subscribe to after, when from the client receive cancel data subscription request when, cancel the client
Subscription to the corresponding data channel of data that request unsubscribes.
6. system as claimed in claim 5, wherein the data subscription, which is cancelled, realizes that module is cancelled the client request and taken
The subscription of the corresponding data channel of data of subscription of disappearing includes:
The subscribing relationship of the client with corresponding channel is deleted,
Judge the corresponding channel whether there is also subscribing relationship,
If it is, continuing to the data of the corresponding channel push;
If it is not, then cancelling subscription of the data interface server to the corresponding channel from the real-time data base.
7. the system as described in one of claim 2,4-6, in which:
The real-time data base is Redis database;
And/or
Application server is by the type of treated real-time data memory is published to Redis database corresponding real time data
Data channel;Wherein, the processing includes parsing;Data interface server will be published to the real-time number of the data channel
According to be sent to data channel record with it establishes the clients of corresponding relationship, and/or, data interface server according to
Client real-time data warehouse is requested and the data channel publication of the type of corresponding real time data is from this into Redis database
The real time data of client.
8. system as claimed in claim 3, in which:
The real-time data base is Redis database;
And/or
Application server is by the type of treated real-time data memory is published to Redis database corresponding real time data
Data channel;Wherein, the processing includes parsing;Data interface server will be published to the real-time number of the data channel
According to be sent to data channel record with it establishes the clients of corresponding relationship, and/or, data interface server according to
Client real-time data warehouse is requested and the data channel publication of the type of corresponding real time data is from this into Redis database
The real time data of client.
9. system as claimed in claim 1 or 2, wherein further include:
Data interface server receives the access request to the non-real-time data from the client, from the historical data base
It obtains non-real-time data and returns to the client.
10. a kind of data processing method, which is characterized in that data processing system of the method and step described in one of claim 1-9
It is executed in system, comprising:
The data from client are received to correspond to the data channel of the data in database to be sent to and carry out data publication;
And/or
Database is connected according to the request of data of client, to obtain the data of the corresponding request.
11. method as claimed in claim 10 characterized by comprising
Receive the request of the data acquisition from client pair specified data relevant to specified unit or transmission;
When the request is sends request, the type of the data and the data frequency of specified unit are corresponded in Xiang Suoshu database
Road sends the specified data that the request is sent;
When the request is acquisition request, the real-time or non real-time data of the request are obtained from database, and will
The data of the acquirement return to the client;
Wherein, the specified data relevant to the specified unit of request are by the application that connect with the specified group communication
Server is sent in the database and stores.
12. method as claimed in claim 11, wherein when the request is acquisition request, from database described in acquirement
The real-time or non real-time data of request, and the data of the acquirement are returned into the client, comprising:
It is subscribed to if request real time data, in real-time data base from the database real-time with the request
The corresponding data channel of data;
Record the subscribing relationship of the client with the corresponding channel;
Receive the data of the data channel push of the subscription;
Data are returned to the client that subscribing relationship is established with the data channel by the subscribing relationship based on the record;
And/or
If request non-real-time data, non-real-time data is obtained from the historical data base in database, and will acquire
The non-real-time data returns to the client.
13. method as claimed in claim 12, wherein further include:
To the clients providing data method for subscribing;
It is subscribed to from the real-time data base and includes: with the step of real time data corresponding data channel specified
Based on the acquisition request of the real time data, the data type for needing to subscribe to and group identity are obtained;
Corresponding channel is subscribed to from the real-time data base according to the subscription data type and group identity.
14. method as claimed in claim 11, wherein corresponding in Xiang Suoshu database when the request is sends request
The data channel of the type of the data and specified unit sends the specified data that the request is sent, comprising:
When the specified data of transmission include real time data, specified in the real-time data base in Xiang Suoshu database with described
Real time data type and the corresponding data channel of specified unit, issue the real time data.
15. method as claimed in claim 14, wherein when the specified data of transmission include real time data, Xiang Suoshu
Data channel corresponding with the type of the specified real time data and specified unit in real-time data base in database, publication
The real time data, comprising:
Transmission request based on the specified real time data, obtains the type of target group identity and the data for needing to send,
The data channel of type and group identity that the data are corresponded into the real-time data base issues what the needs were sent
Data.
16. method as claimed in claim 12, in which:
After realizing subscription to the corresponding data channel in the real-time data base, taken when being received from the client
Disappear data subscription request when,
The subscribing relationship of the client with corresponding channel is deleted,
Judge the corresponding channel whether there is also subscribing relationship,
If it is, continuing to the data of the corresponding channel push;
If it is not, then cancelling subscription of the data interface server to the corresponding channel from the real-time data base.
17. the method as described in one of claim 12-16, which is characterized in that the real-time data base is Redis database.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610573076.2A CN106210099B (en) | 2016-07-18 | 2016-07-18 | Data processing system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610573076.2A CN106210099B (en) | 2016-07-18 | 2016-07-18 | Data processing system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106210099A CN106210099A (en) | 2016-12-07 |
CN106210099B true CN106210099B (en) | 2019-07-09 |
Family
ID=57494621
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610573076.2A Active CN106210099B (en) | 2016-07-18 | 2016-07-18 | Data processing system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106210099B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108228625B (en) * | 2016-12-15 | 2022-02-11 | 腾讯科技(深圳)有限公司 | Push message processing method and device |
CN109147803B (en) * | 2017-06-28 | 2020-10-23 | 武汉斗鱼网络科技有限公司 | Multi-person voice communication method, storage medium, electronic device and system |
CN109254853B (en) * | 2018-07-24 | 2020-10-27 | 福建星网视易信息系统有限公司 | Data sharing method, data sharing system and computer readable storage medium |
CN109785129A (en) * | 2018-12-14 | 2019-05-21 | 平安证券股份有限公司 | Data capture method, device, equipment and computer readable storage medium |
CN109885779B (en) * | 2019-01-09 | 2024-04-02 | 中国平安人寿保险股份有限公司 | Subsystem management method, device, computer device and storage medium |
CN110619080A (en) * | 2019-09-09 | 2019-12-27 | 珠海格力电器股份有限公司 | Real-time data display system and method capable of improving data loading rate |
CN112612985A (en) * | 2020-12-24 | 2021-04-06 | 广州致远电子有限公司 | Websocket-based multi-user and multi-type message pushing system and method |
CN113010789A (en) * | 2021-03-24 | 2021-06-22 | 珠海格力电器股份有限公司 | Air conditioning unit data pushing method and device, computer equipment and storage medium |
CN113190778A (en) * | 2021-04-30 | 2021-07-30 | 深圳壹账通创配科技有限公司 | Business data pushing method, system, computer equipment and computer storage medium |
WO2023015545A1 (en) * | 2021-08-13 | 2023-02-16 | 宁波伟立机器人科技股份有限公司 | Interaction method for heavy-load ganrty robot and mes system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101741896A (en) * | 2009-11-24 | 2010-06-16 | 中兴通讯股份有限公司 | Data processing method, device and system in WEB system |
CN202058147U (en) * | 2011-05-23 | 2011-11-30 | 北京六所和瑞科技发展有限公司 | Distribution type real-time database management system |
CN104536405A (en) * | 2014-12-16 | 2015-04-22 | 珠海格力电器股份有限公司 | Remote monitoring system of air conditioning unit |
CN105260479A (en) * | 2015-11-10 | 2016-01-20 | 南京国电南自美卓控制系统有限公司 | observer pattern-based real-time database real time data publishing method |
CN105592164A (en) * | 2016-01-25 | 2016-05-18 | 珠海格力电器股份有限公司 | Distributed system and method for data processing |
-
2016
- 2016-07-18 CN CN201610573076.2A patent/CN106210099B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101741896A (en) * | 2009-11-24 | 2010-06-16 | 中兴通讯股份有限公司 | Data processing method, device and system in WEB system |
CN202058147U (en) * | 2011-05-23 | 2011-11-30 | 北京六所和瑞科技发展有限公司 | Distribution type real-time database management system |
CN104536405A (en) * | 2014-12-16 | 2015-04-22 | 珠海格力电器股份有限公司 | Remote monitoring system of air conditioning unit |
CN105260479A (en) * | 2015-11-10 | 2016-01-20 | 南京国电南自美卓控制系统有限公司 | observer pattern-based real-time database real time data publishing method |
CN105592164A (en) * | 2016-01-25 | 2016-05-18 | 珠海格力电器股份有限公司 | Distributed system and method for data processing |
Also Published As
Publication number | Publication date |
---|---|
CN106210099A (en) | 2016-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106210099B (en) | Data processing system and method | |
CN102710593B (en) | Method, device and system for publishing message in graph mashup | |
US7194529B2 (en) | Method and apparatus for the delivery and integration of an asset management system into an existing enterprise network | |
CN104573611A (en) | Distributed face recognition trunking system | |
CN104809506A (en) | Room information interacting method, device and system | |
CN201323637Y (en) | Palmtop operation system | |
CN105100002B (en) | The operating method and device of attribute | |
CN110996339A (en) | eSIM resource management platform and management method | |
CN111737023A (en) | Vehicle-mounted event processing method, cloud server and computer-readable storage medium | |
CN105180367A (en) | Data transmitting method and system for air conditioner unit | |
CN101272523A (en) | Mobile inquiry system and method thereof | |
CN101924815A (en) | 3G MOA phone middleware embedded system | |
CN110049503B (en) | Method and equipment for acquiring data | |
CN103532932A (en) | Capability opening system, service processing method and equipment | |
CN102045182B (en) | Service fault localization method, device and system | |
CN115834634B (en) | Intelligent building networking equipment oriented management method and system | |
CN104243483A (en) | Message processing method and message processing equipment | |
US8001234B2 (en) | Method and server for coordination of telecommunication services | |
CN107222392B (en) | Communication method, device, system and computer storage medium | |
EP2071763A1 (en) | Method, system and agent server for charging data services | |
CN114710757A (en) | Information processing method, network side equipment and terminal | |
CN113986965A (en) | Data processing method based on monitoring operation and maintenance system and monitoring operation and maintenance system | |
CN113727138A (en) | HLS intranet source returning method | |
KR100748089B1 (en) | Method for providing individual information based on user data management open api | |
CN115168438B (en) | Transaction return data integration method and related device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |