CN109213792A - Method, server-side, client, device and the readable storage medium storing program for executing of data processing - Google Patents
Method, server-side, client, device and the readable storage medium storing program for executing of data processing Download PDFInfo
- Publication number
- CN109213792A CN109213792A CN201810735359.1A CN201810735359A CN109213792A CN 109213792 A CN109213792 A CN 109213792A CN 201810735359 A CN201810735359 A CN 201810735359A CN 109213792 A CN109213792 A CN 109213792A
- Authority
- CN
- China
- Prior art keywords
- data
- server
- database
- relevant database
- client
- 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.)
- Granted
Links
Abstract
The embodiment of the invention provides a kind of method of data processing, server-side, client, device and readable storage medium storing program for executing.This method comprises: the server-side determines the data updated in the relevant database, the mark of the data updated to relevant database write-in sends a notification message, the notification message is used to indicate the data updated to client.Client's termination determines the mark of the data updated according to the notification message, from the corresponding relevant database of mark of the data updated, obtain corresponding with the mark of the data updated data value, respectively by corresponding data value be updated to example it is data cached in.By using this programme, client can timely update data cached in example, guarantee the consistency of data.
Description
Technical field
The present invention relates to software technology field more particularly to a kind of method of data processing, server-side, clients, device
And readable storage medium storing program for executing.
Background technique
In field of software engineering, there are the data access of big flow, in order to improve data search efficiency and reduce request response
Time is looked into generally by the data buffer storage of relevant database into memory database with improving data throughput capabilities and brilliant
Ask performance.But the data consistency being the need to ensure that in data and relevant database that memory database is cached, if data
It is inconsistent, then it is possible that traffic issues.
To realize the consistent purpose of data, while relevant database is written in server-side, synchronous refresh internal storage data
The caching in library, and then realize the consistency of data.But the mode of this kind of synchronous refresh is only limitted to the less field of memory database
Scape, and developer needs to know have which client to use the data in the relevant database.By the synchronous refresh side
When formula is applied to the memory database of multiple dispersion deployment, since the memory database of these dispersion deployment has cached the relationship
Data in type database, so developer is needed to desynchronize one by one refresh data, the operation week of this synchronous refresh mode
Phase is long, and synchronous refresh is there are higher time delay and then causes the reliability of business more lower.
Summary of the invention
The embodiment of the invention provides a kind of method of data processing, server-side, client, device and storage mediums, use
In the reliability for the synchronous efficiency and business for improving data.
In a first aspect, being applied to system R, feature the present invention provides a kind of method of data processing
It is, the system R includes server-side and multiple client, and the server-side includes at least one relationship type
Database, the server-side, which refers to, provides the service side of relevant database, refers to relational data described in the client
The user in library, the relevant database refer to the database established on the basis of relational model, the relevant database
It is the database for coordinating quotient based on distributed application program, the distributed application program coordination quotient refers to distributed, open
The distributed application program coordination service of source code, the relevant database include at least Oracle, SQL Server and Mysql
One in database;The described method includes:
The server-side determines the data updated in the relevant database;
The mark for the data that the server-side is updated to relevant database write-in;
The server-side sends a notification message to client, and the notification message is used to indicate the letter of the data updated
Breath.
Optionally, the mark for the data that the server-side is updated to relevant database write-in, comprising:
The server-side empties node corresponding with the mark of the data updated in the relevant database
Historical data;
Corresponding node is written in the mark of the data updated by the server-side.
Optionally, the information for being used to indicate the data updated includes the mark or hair of the data updated
The mark of the raw corresponding node of data updated.
Optionally, the method also includes:
The server-side is determined by the relevant database of multiple client-caches;
The server-side registers node corresponding with each relevant database respectively on the relevant database.
Second aspect, the embodiment of the invention provides a kind of methods of data processing, are applied to system R,
It is characterized in that, the system R includes server-side, at least one relevant database and multiple client, institute
The service side that server-side refers to offer relevant database is stated, the use of relevant database is referred to described in the client
Side, the relevant database refer to that the database established on the basis of relational model, the relevant database are to be based on dividing
Cloth application program coordinates the database of quotient, and the distributed application program coordinates quotient and refers to distributed, open source code point
Cloth application program coordination service, the relevant database include at least in Oracle, SQL Server and Mysql database
One;The described method includes:
The client receives the notification message from the server-side, and the notification message, which is used to indicate, to be updated
The information of data;
The client determines the mark of the data updated according to the notification message;
In the corresponding relevant database of the mark of the client from the data updated, obtains and update
The corresponding data value of the mark of data, respectively by corresponding data value be updated to example it is data cached in.
Optionally, the method also includes:
The client monitors at least one described relevant database that client described in the server-side uses.
Optionally, the information for being used to indicate the data updated includes the mark or hair of the data updated
The mark of the raw corresponding node of data updated.
The third aspect has the embodiment of the invention provides a kind of server-side and realizes that corresponding to above-mentioned first aspect provides
Data processing method function.The function can also execute corresponding software by hardware realization by hardware
It realizes.Hardware or software include one or more modules corresponding with above-mentioned function, and the module can be software and/or firmly
Part.It can be applied to system R, which is characterized in that the system R include the server-side and
Multiple client, the server-side include at least one relevant database, and the server-side refers to offer relevant database
Service side, the user of relevant database is referred to described in the client, the relevant database refers to that foundation exists
Database on the basis of relational model, the relevant database are the database for coordinating quotient based on distributed application program, institute
It states distributed application program coordination quotient and refers to distributed, open source code distributed application program coordination service, the relationship
Type database includes at least one in Oracle, SQL Server and Mysql database;Described device includes:
Processing module, for determining the data updated in the relevant database;
The mark of the data updated to relevant database write-in;
Transceiver module, for sending a notification message to client, the notification message is used to indicate the data updated
Information.
Optionally, the processing module is specifically used for:
Empty the historical data of node corresponding with the mark of the data updated the relevant database Nei;
Corresponding node is written into the mark of the data updated.
Optionally, optionally, the information for being used to indicate the data updated includes the mark of the data updated
The mark of knowledge or the corresponding node of data updated.
Optionally, the processing module is also used to:
It determines by the relevant database of multiple client-caches;
Register node corresponding with each relevant database respectively on the relevant database.
Fourth aspect has the embodiment of the invention provides a kind of client and realizes that corresponding to above-mentioned second aspect provides
Data processing method function.The function can also execute corresponding software by hardware realization by hardware
It realizes.Hardware or software include one or more modules corresponding with above-mentioned function, and the module can be software and/or firmly
Part.It can be applied to system R, which is characterized in that the system R includes server-side, at least
One relevant database and multiple clients, the server-side, which refers to, provides the service side of relevant database, institute
The user for referring to relevant database described in client is stated, the relevant database refers to foundation on the basis of relational model
Database, the relevant database be based on distributed application program coordinate quotient database, the Distributed Application journey
Sequence coordinates quotient and refers to distributed, open source code distributed application program coordination service, and the relevant database at least wraps
Include one in Oracle, SQL Server and Mysql database;The client includes:
Transceiver module, for receiving the notification message from the server-side, the notification message is used to indicate generation more
The information of new data;
Processing module, for determining the mark of the data updated according to the notification message;Pass through the transmitting-receiving mould
In the corresponding relevant database of the mark of block from the data updated, obtain corresponding with the mark of the data updated
Data value, respectively by corresponding data value be updated to example it is data cached in.
Optionally, the client further include:
Module is monitored, for monitoring at least one described relational data that client described in the server-side uses
Library.
Optionally, the information for being used to indicate the data updated includes the mark or hair of the data updated
The mark of the raw corresponding node of data updated.
5th aspect, the embodiment of the invention provides a kind of data processing equipments, including processor described in processor to be used for
It is realized as described in aforementioned first aspect embodiment or second aspect embodiment when executing the computer program stored in memory
Data processing method the step of.
6th aspect, the embodiment of the invention provides a kind of readable storage medium storing program for executing, are stored thereon with computer program, described
Such as aforementioned first aspect embodiment or second aspect data as described in the examples are realized when computer program is executed by processor
The step of processing method.
Said one or multiple technical solutions in the embodiment of the present invention at least have following one or more technology effects
Fruit:
In the technical solution of the embodiment of the present invention, system R includes server-side and multiple client, is
Guarantee the consistency of data, and improves the efficiency of real-time synchronization, the method in the present embodiment, described in the server-side determines
After data update occurs in relevant database, the mark of the data updated to relevant database write-in.It is described
Server-side sends the notification message for being used to indicate the data updated to client, without knowing which client uses these
Data.In this way, after client receives the notification message, so that it may explicitly know oneself relational data currently in use
Library updates, and client directly can voluntarily go in the relevant database of server-side to obtain the data of update, Jin Erji
When update example in it is data cached, guarantee the consistency of data.
Detailed description of the invention
Fig. 1 is the flow chart of one of the embodiment of the present invention method of data processing;
Fig. 2 is the flow chart of one of the embodiment of the present invention method of data processing;
Fig. 3 is a kind of structural schematic diagram of the server-side in the embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of the client in the embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of the data processing equipment in the embodiment of the present invention.
Specific embodiment
The embodiment of the invention provides a kind of method of data processing, server-side, client terminal device and readable storage medium storing program for executing,
For improving the synchronous efficiency of data and the reliability of business.The method of data processing in the embodiment of the present invention can be applied to close
It is type Database Systems, the system R includes server-side and multiple client.
Wherein, server-side, which refers to, provides the service side of relevant database.Server-side is configured at least one relationship type
Database, relevant database, which refers to, establishes database on the basis of relational model, and being can mutually joining two by multiple
The database for tieing up ranks table composition, can be handled by means of the mathematical concepts such as algebra of sets and method, be queried, updated, and managed
Data in relational database, by the various connections between various entities in the real world and entity with relational model come
It indicates.It is the system of relevant row and column by data organization, every various record names of behavior are often classified as corresponding to record name
Data field.Such as relevant database may include relational database management system (Relational Database
Management System, RDBMS), the computer software of administrative relationships type database refers to relational database management system,
Common database software has Oracle, SQL Server and Mysql database etc..Relational data in the embodiment of the present invention
Library can be the database for coordinating quotient based on distributed application program, and distributed application program coordinates quotient, such as ZooKeeper,
ZooKeeper is distributed, open source code a distributed application program coordination service, is one and mentions for Distributed Application
For the software of Consistency service, the function of providing can include: configuring maintenance, domain name service, distributed synchronization, group service etc..
Client refers to the user of relevant database.Monitor can be set on the node of server-side, work as service
When (such as data generation the operations such as increases, is deleted or modified and changing) occurs to update for node state on end, then it can trigger and occur more
Operation corresponding to monitor on new node.After the monitor is triggered, ZooKeeper will send logical to client
Message is known, to notify the corresponding data of which node of client to update.It, can be according to logical after the notified message of client
Know that the mark for the data for indicating to update in message determines corresponding node, then from the corresponding relational data of the node
The data of update are obtained in library, and are cached into memory database, to realize the purpose of real-time synchronization data.Memory database
Refer to the database that data are put and are directly operated in memory, such as can be redis example.
Technical solution of the present invention is described in detail below by attached drawing and specific embodiment, it should be understood that the application
Specific features in embodiment and embodiment are the detailed description to technical scheme, rather than to present techniques
The restriction of scheme, in the absence of conflict, the technical characteristic in the embodiment of the present application and embodiment can be combined with each other.
The terms "and/or", only a kind of incidence relation for describing affiliated partner, indicates that there may be three kinds of passes
System, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.In addition, herein
Middle character "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or".
In order to solve the above technical problems, in the embodiment of the present invention the following technical schemes are provided:
The data of relevant database based on ZooKeeper are data cached synchronous in redis example, are based on
The event notification strategy of ZooKeeper, triggering caching user timely update oneself Redis it is data cached, to guarantee number
According to consistency, guarantee service reliability.The embodiment of the present invention is particularly suitable for the data of relevant database by a large amount of redis
Example uses in the case where caching.
Embodiment
With reference to Fig. 1, the method for introducing a kind of data processing of the embodiment of the present invention from server-side angle below is applied to close
It is type Database Systems, the system R includes server-side and multiple client, and the server-side includes at least
One relevant database.The described method includes:
S101: the server-side determines the data updated in the relevant database.
Before step S101, the method may also include that
The server-side is determined by the relevant database of multiple client-caches, on the relevant database
Node corresponding with each relevant database is registered respectively.That is server-side also needs for each data in relevant database
Library table all defines a unique major key field, such as major key field can be self-propagation id.Also needing will be each buffered
Database table registers a node on ZooKeeper, and by taking the entitled nodename of database table as an example, pseudocode is as follows:
ZooKeeper.create("/myTable")
S102: the mark for the data that the server-side is updated to relevant database write-in.
S103: the server-side sends a notification message to client, and the notification message is used to indicate the number updated
According to information.
Compared with current mechanism, in the embodiment of the present invention, the server-side, which determines in the relevant database, to be occurred more
After new data, the mark of the data updated to relevant database write-in.The server-side is sent to client
It is used to indicate the notification message of the data updated, without knowing which client uses these data.In this way, in client
After receiving the notification message, so that it may explicitly know that oneself relevant database currently in use updates, client
It directly can voluntarily go in the relevant database of server-side to obtain the data of update, and then timely update slow in example
Deposit data guarantees the consistency of data.
For example, the data change of update is written in the corresponding node of ZooKeeper server-side, it is not necessary which visitor known
Family end uses these data.Client only needs to monitor the notification message of the node change of ZooKeeper, more according to notification message
Itself new data cached, the coupling of server-side and FTP client FTP is low, is not limited to example number, maintenance personnel without
Judge which client has used the data of which relevant database, it is maintainable high.
Optionally, in some embodiments of the invention, the server-side occurs more to relevant database write-in
The mark of new data, comprising:
The server-side empties node corresponding with the mark of the data updated in the relevant database
Historical data;
Corresponding node is written in the mark of the data updated by the server-side.
By taking Mysql database table as an example, when content alteration has occurred in Mysql database table, the master of Mysql database table
Body side's (i.e. server-side) needs to be written the unique identification id of the data of change to ZooKeeper, to use the Mysql database
The client of table can learn which data changes, to update the caching of itself.Pseudocode is as follows:
zookeeper.deleteContent("/myTable")
zookeeper.addContent("/myTable","11,12,13,14")
Wherein, deleteContent ("/myTable ") refers to the content for emptying corresponding node, that is, empties zookeeper
Historical data before the myTable node of record.AddContent ("/myTable ", " 11,12,13,14 ") refers to this
In the myTable node of unique id write-in zookeeper of the data of secondary change, " 11,12,13,14 " refer to this hair here
The id of the raw data updated.
Optionally, in some embodiments of the invention, the information for being used to indicate the data updated includes hair
The mark of the raw data updated or the mark of the corresponding node of data updated.
With reference to Fig. 2, the method for introducing the data processing of one of embodiment of the present invention from client angle below is applied to
System R, which is characterized in that the system R includes server-side, at least one relational data
Library and multiple client.This method comprises:
S201: the client receives the notification message from the server-side, and the notification message is used to indicate generation
The information of the data of update.
S202: the client determines the mark of the data updated according to the notification message.
S203: it in the corresponding relevant database of the mark of the client from the data updated, obtains and occurs
The corresponding data value of the mark of the data of update.
S204: shown client respectively by corresponding data value be updated to example it is data cached in.
In the embodiment of the present invention, after data update occurs in the relevant database of server-side, client can
The notification message for being used to indicate the data updated is received from server-side, oneself is used so that client is explicitly known
Relevant database update, directly can voluntarily go in the relevant database of server-side to obtain the data of update, into
And timely update data cached in example, guarantee the consistency of data.
Specifically, the present embodiment provides the barrage connection methods for being applied to client to have explained in detail in the first embodiment
It states, here, the application repeats no more.
Optionally, in some embodiments of the present application, the method also includes:
The client monitors at least one described relevant database that client described in the server-side uses, when
After client receives the notification message from server-side triggering, so that it may know which relevant database oneself used occurs
Data updates.
Optionally, in some embodiments of the present application, the information for being used to indicate the data updated includes hair
The mark of the raw data updated or the mark of the corresponding node of data updated.
By taking Mysql database table as an example, when content alteration has occurred in the Mysql database table of server-side, server-side is needed
The unique identification id that the data of change to be written to ZooKeeper, by sending a notification message to client, to notify client
The id of the id of the data updated or the corresponding node of the data updated.Which data hair is client be known that in this way
It changes more, can directly send the data for obtaining update in corresponding Mysql database table, timely update local data cached.
For example, server-side indicates 4 id (i.e. 11,12,13 and 14) in an announcement message, client only needs the corresponding id that updates to distinguish
For 11,12,13 and 14 Mysql database table.
A kind of structural schematic diagram of server-side 30 as shown in Figure 3 can be applied to system R, the pass
It is type Database Systems include the server-side 30 and multiple client, the server-side 30 includes at least one relational data
Library.Server-side in the embodiment of the present application can be realized corresponding in embodiment corresponding to above-mentioned Fig. 1 as performed by server-side
Data processing method the step of.The function that server-side is realized can also execute phase by hardware by hardware realization
The software realization answered.Hardware or software include one or more modules corresponding with above-mentioned function, and the module can be soft
Part and/or hardware.The server-side may include transceiver module 301 and processing module 302, and the function realization of the processing module can
Determined in the embodiment with reference to corresponding to Fig. 1 by server-side the data updated, write-in update data mark, clearly
The operation such as empty historical data, does not repeat herein.The function realization of the transceiver module can refer in embodiment corresponding to Fig. 1
It the operation such as is sent a notification message by server-side, processing module can be used for controlling the transmitting-receiving operation of the transceiver module.
In some embodiments, the processing module 301, which can be used for determining, to be updated in the relevant database
Data;The mark of the data updated to relevant database write-in;
The transceiver module 302 can be used for sending a notification message to client, and the notification message is used to indicate generation more
The information of new data.
In the embodiment of the present invention, the processing module 301 of the server-side, which determines, occurs data in the relevant database
After update, the mark of the data updated to relevant database write-in is sent by transceiver module 302 to client
It is used to indicate the notification message of the data updated, without knowing which client uses these data.In this way, in client
After receiving the notification message, so that it may explicitly know that oneself relevant database currently in use updates, client
It directly can voluntarily go in the relevant database of server-side to obtain the data of update, and then timely update slow in example
Deposit data guarantees the consistency of data.
In some embodiments, the processing module 301 is specifically used for:
Empty the historical data of node corresponding with the mark of the data updated the relevant database Nei;
Corresponding node is written into the mark of the data updated.
In some embodiments, the information for being used to indicate the data updated includes the mark of the data updated
The mark of knowledge or the corresponding node of data updated.
In some embodiments, the processing module 301 is also used to:
It determines by the relevant database of multiple client-caches;
Register node corresponding with each relevant database respectively on the relevant database.
A kind of structural schematic diagram of client 40 as shown in Figure 4 can be applied to system R, the pass
It is type Database Systems include the server-side 30 and multiple client 40, the server-side 30 includes at least one relationship type number
According to library.Client 40 in the embodiment of the present application can be realized corresponding in embodiment corresponding to above-mentioned Fig. 1 by client 40
The step of method of performed data processing.The function that client 40 is realized can be by hardware realization, can also be by hard
Part executes corresponding software realization.Hardware or software include one or more modules corresponding with above-mentioned function, the module
It can be software and/or hardware.The client 40 may include transceiver module 401 and processing module 402, the processing module
402 function is realized to can refer in embodiment corresponding to Fig. 2 and determines the mark of the data updated by client 40, obtains
Data value corresponding with the mark of the data updated, the operation such as more new data value and monitoring relevant database, herein not
It repeats.The function realization of the transceiver module, which can refer in embodiment corresponding to Fig. 1, receives notification message etc. by client
Operation, processing module can be used for controlling the transmitting-receiving operation of the transceiver module.
In some embodiments, the transceiver module 401 can be used for receiving the notification message from the server-side, described
Notification message is used to indicate the information of the data updated;
The processing module 402 can be used for determining the mark of the data updated according to the notification message;Pass through institute
In the corresponding relevant database of the mark for stating transceiver module from the data updated, the mark with the data updated is obtained
Know corresponding data value, respectively by corresponding data value be updated to example it is data cached in.
In the embodiment of the present invention, after data update occurs in the relevant database of server-side, client 40
Transceiver module can receive the notification message for being used to indicate the data updated from server-side, so that processing module 402 determines
Oneself relevant database currently in use updates, and therefore, directly can voluntarily go in the relevant database of server-side
The data updated are obtained, and then timely update data cached in example, guarantee the consistency of data.
In some embodiments, the client 40 further include:
Module 403 is monitored, for monitoring at least one described relationship type number that client described in the server-side uses
According to library.
In some embodiments, the information for being used to indicate the data updated includes the mark of the data updated
The mark of knowledge or the corresponding node of data updated.
Server-side and client in the embodiment of the present application are described respectively from the angle of modular functionality entity above, with
Under from hardware point of view introduce a kind of data processing equipment, comprising: processor, memory, transceiver (are also possible to input and output list
Member does not identify in Fig. 5) and storage is in the memory and the computer program that can run on the processor.Example
Such as, which can be the corresponding program of data processing method in embodiment corresponding to Fig. 1.For example, at data
When reason device realizes the function of server-side 30 as shown in Figure 3, the processor is realized above-mentioned when executing the computer program
Each step in the method for the data processing executed in embodiment corresponding to Fig. 3 by server-side;Alternatively, the processor executes
The function of each module in the server-side of embodiment corresponding to above-mentioned Fig. 3 is realized when the computer program.In another example for example,
The computer program can be the corresponding program of data processing method in embodiment corresponding to Fig. 2.When data processing equipment reality
When the function of client 40 now as shown in Figure 4, the processor is realized corresponding to above-mentioned Fig. 4 when executing the computer program
Embodiment in by each step in the method for the data processing of client executing;Alternatively, the processor executes the calculating
The function of each module in the client of embodiment corresponding to above-mentioned Fig. 4 is realized when machine program.
Illustratively, the computer program can be divided into one or more module/units, one or more
A module/unit is stored in the memory, and is executed by the processor, to complete the present invention.It is one or more
A module/unit can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing institute
State implementation procedure of the computer program in the computer installation.
The data processing equipment may include, but be not limited only to, processor, memory.Those skilled in the art can manage
Solution, it is described signal be only computer installation example, do not constitute the restriction to server, may include than illustrate it is more or
Less component perhaps combines certain components or different components, such as the server can also be set including input and output
Standby, network access equipment, bus etc..
Alleged processor can be central processing unit (Central Processing Unit, CPU), can also be it
His general processor, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng the processor is the control centre of the computer installation, utilizes various interfaces and the entire computer installation of connection
Various pieces.
The memory can be used for storing the computer program and/or module, and the processor is by operation or executes
Computer program in the memory and/or module are stored, and calls the data being stored in memory, described in realization
The various functions of computer installation.The memory can mainly include storing program area and storage data area, wherein storage program
It area can application program (such as sound-playing function, image player function etc.) needed for storage program area, at least one function
Deng;Storage data area, which can be stored, uses created data (such as audio data, video data etc.) etc. according to mobile phone.This
Outside, memory may include high-speed random access memory, can also include nonvolatile memory, such as hard disk, memory, insert
Connect formula hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash memory
Block (Flash Card), at least one disk memory, flush memory device or other volatile solid-state parts.
The transceiver can also be replaced with receiver and transmitter, can be same or different physical entity.For
When identical physical entity, transceiver may be collectively referred to as.The memory can integrate in the processor, can also be with institute
Processor is stated to be provided separately.The transceiver can be input-output unit.
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored thereon with computer program, when Fig. 3 institute
Client in embodiment corresponding to server-side or Fig. 4 in corresponding embodiment is realized in the form of SFU software functional unit simultaneously
When sold or used as an independent product, it can store in a computer readable storage medium.Based on such reason
Solution, the present invention realize all or part of in the method for the data processing executed in embodiment corresponding to above-mentioned Fig. 1 by server-side
Whole or portion in process, or embodiment corresponding to realization above-mentioned 2 in the method for the data processing as performed by client
Split flow can also instruct relevant hardware to complete by computer program, and the computer program can be stored in one
In computer readable storage medium, the computer program is when being executed by processor, it can be achieved that above-mentioned each embodiment of the method
Step.Wherein, the computer program includes computer program code, and the computer program code can be source code shape
Formula, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium may include: that can take
Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, computer with the computer program code are deposited
Reservoir, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access
Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the computer-readable medium
The content for including can carry out increase and decrease appropriate according to the requirement made laws in jurisdiction with patent practice, such as in certain departments
Method administrative area does not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer-readable medium.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (10)
1. a kind of method of data processing is applied to system R, which is characterized in that the relevant database system
System includes server-side and multiple client, and the server-side includes at least one relevant database, and the server-side, which refers to, to be mentioned
For the service side of relevant database, the user of relevant database, the relationship type number are referred to described in the client
Refer to that the database established on the basis of relational model, the relevant database are coordinated based on distributed application program according to library
The database of quotient, the distributed application program coordinate quotient and refer to that distributed, open source code distributed application program is coordinated
Service, the relevant database include at least one in Oracle, SQL Server and Mysql database;The method
Include:
The server-side determines the data updated in the relevant database;
The mark for the data that the server-side is updated to relevant database write-in;
The server-side sends a notification message to client, and the notification message is used to indicate the information of the data updated.
2. the method as described in claim 1, which is characterized in that the server-side occurs more to relevant database write-in
The mark of new data, comprising:
The server-side is emptied in the relevant database and is gone through with the corresponding node of mark of the data updated
History data;
Corresponding node is written in the mark of the data updated by the server-side.
3. the method as described in claim 1, which is characterized in that the information for being used to indicate the data updated includes hair
The mark of the raw data updated or the mark of the corresponding node of data updated.
4. such as method as claimed in any one of claims 1-3, which is characterized in that the method also includes:
The server-side is determined by the relevant database of multiple client-caches;
The server-side registers node corresponding with each relevant database respectively on the relevant database.
5. a kind of method of data processing is applied to system R, which is characterized in that the relevant database system
System includes server-side, at least one relevant database and multiple client, and the server-side refers to offer relevant database
Service side, the user of relevant database is referred to described in the client, the relevant database refers to that foundation exists
Database on the basis of relational model, the relevant database are the database for coordinating quotient based on distributed application program, institute
It states distributed application program coordination quotient and refers to distributed, open source code distributed application program coordination service, the relationship
Type database includes at least one in Oracle, SQL Server and Mysql database;The described method includes:
The client receives the notification message from the server-side, and the notification message is used to indicate the data updated
Information;
The client determines the mark of the data updated according to the notification message;
In the corresponding relevant database of the mark of the client from the data updated, acquisition and the data updated
The corresponding data value of mark, respectively by corresponding data value be updated to example it is data cached in.
6. method as claimed in claim 5, which is characterized in that the method also includes:
The client monitors at least one described relevant database that client described in the server-side uses.
7. such as method described in claim 5 or 6, which is characterized in that the packet for being used to indicate the data updated
The mark of the corresponding node of data for including the mark of the data updated or updating.
8. a kind of server-side is applied to system R, which is characterized in that the system R includes institute
Server-side and multiple client are stated, the server-side includes at least one relevant database, and the server-side, which refers to, provides pass
It is the service side of type database, the user of relevant database, the relevant database is referred to described in the client
Refer to that the database established on the basis of relational model, the relevant database are to coordinate quotient based on distributed application program
Database, the distributed application program coordinate quotient and refer to distributed, open source code distributed application program coordination service,
The relevant database includes at least one in Oracle, SQL Server and Mysql database;Described device includes:
Processing module, for determining the data updated in the relevant database;It is written to the relevant database
The mark of the data updated;
Transceiver module, for sending a notification message to client, the notification message is used to indicate the data updated.
9. a kind of client is applied to system R, which is characterized in that the system R includes clothes
Business end, at least one relevant database and multiple clients, the server-side, which refers to, provides relevant database
Service side, the user of relevant database is referred to described in the client, and the relevant database refers to foundation in relationship
Database on the basis of model, the relevant database be based on distributed application program coordinate quotient database, described point
Cloth application program coordinates quotient and refers to distributed, open source code distributed application program coordination service, the relationship type number
One in Oracle, SQL Server and Mysql database is included at least according to library;The client includes:
Transceiver module, for receiving the notification message from the server-side, the notification message, which is used to indicate, to be updated
Data;
Processing module, for determining the mark of the data updated according to the notification message;By the transceiver module from
In the corresponding relevant database of the mark of the data updated, data corresponding with the mark of the data updated are obtained
Value, respectively by corresponding data value be updated to example it is data cached in.
10. a kind of data processing equipment, which is characterized in that including processor, the processor is stored for executing in memory
Computer program when the step of realizing the method such as the data processing executed in claim 1-4 by server-side, or execute
Such as the step of in claim 5-7 by the method for the data processing of client executing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810735359.1A CN109213792B (en) | 2018-07-06 | 2018-07-06 | Data processing method, server, client, device and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810735359.1A CN109213792B (en) | 2018-07-06 | 2018-07-06 | Data processing method, server, client, device and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109213792A true CN109213792A (en) | 2019-01-15 |
CN109213792B CN109213792B (en) | 2021-11-09 |
Family
ID=64989923
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810735359.1A Active CN109213792B (en) | 2018-07-06 | 2018-07-06 | Data processing method, server, client, device and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109213792B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110392102A (en) * | 2019-07-16 | 2019-10-29 | 北京辰森世纪科技股份有限公司 | Processing method and client, the server-side of data |
CN110413418A (en) * | 2019-06-25 | 2019-11-05 | 北京三快在线科技有限公司 | Cache synchronization device and method, cache synchronization system, electronic equipment |
CN110765165A (en) * | 2019-10-23 | 2020-02-07 | 中国银行股份有限公司 | Method, device and system for synchronously processing cross-system data |
CN111143382A (en) * | 2019-12-13 | 2020-05-12 | 新华三大数据技术有限公司 | Data processing method, system and computer readable storage medium |
CN111162995A (en) * | 2019-12-26 | 2020-05-15 | 苏州浪潮智能科技有限公司 | Data change notification method, device, equipment and readable storage medium |
CN111259031A (en) * | 2020-01-16 | 2020-06-09 | 上海米哈游天命科技有限公司 | Data updating method, device, equipment and storage medium |
CN111782666A (en) * | 2020-06-19 | 2020-10-16 | 京东数字科技控股有限公司 | Cache service system |
CN112347202A (en) * | 2020-11-27 | 2021-02-09 | 中国工商银行股份有限公司 | Method and device for notifying data change message |
CN113076329A (en) * | 2020-01-03 | 2021-07-06 | 上海亲平信息科技股份有限公司 | Memory database |
CN114064807A (en) * | 2021-11-29 | 2022-02-18 | 四川虹美智能科技有限公司 | User system and data providing method thereof |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1520562A (en) * | 2001-06-30 | 2004-08-11 | 国际商业机器公司 | System and method for caching mechanism for central synchronization |
CN103905537A (en) * | 2014-03-20 | 2014-07-02 | 冶金自动化研究设计院 | System for managing industry real-time data storage in distributed environment |
CN104092591A (en) * | 2014-08-04 | 2014-10-08 | 飞狐信息技术(天津)有限公司 | Task monitoring method and system |
CN105243067A (en) * | 2014-07-07 | 2016-01-13 | 北京明略软件系统有限公司 | Method and apparatus for realizing real-time increment synchronization of data |
US20160078052A1 (en) * | 2010-06-19 | 2016-03-17 | Mapr Technologies, Inc. | Map-Reduce Ready Distributed File System |
CN106210151A (en) * | 2016-09-27 | 2016-12-07 | 深圳市彬讯科技有限公司 | A kind of zedis distributed caching and server cluster monitoring method |
CN106331147A (en) * | 2016-09-09 | 2017-01-11 | 深圳市彬讯科技有限公司 | REDIS distributed type invoking method and system thereof |
CN106357449A (en) * | 2016-09-27 | 2017-01-25 | 深圳市彬讯科技有限公司 | zedis distributed type buffer method |
CN106815338A (en) * | 2016-12-25 | 2017-06-09 | 北京中海投资管理有限公司 | A kind of real-time storage of big data, treatment and inquiry system |
CN108132833A (en) * | 2017-12-08 | 2018-06-08 | 广州视源电子科技股份有限公司 | A kind of distributed timing method for scheduling task and device based on zookeeper technologies |
-
2018
- 2018-07-06 CN CN201810735359.1A patent/CN109213792B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1520562A (en) * | 2001-06-30 | 2004-08-11 | 国际商业机器公司 | System and method for caching mechanism for central synchronization |
US20160078052A1 (en) * | 2010-06-19 | 2016-03-17 | Mapr Technologies, Inc. | Map-Reduce Ready Distributed File System |
CN103905537A (en) * | 2014-03-20 | 2014-07-02 | 冶金自动化研究设计院 | System for managing industry real-time data storage in distributed environment |
CN105243067A (en) * | 2014-07-07 | 2016-01-13 | 北京明略软件系统有限公司 | Method and apparatus for realizing real-time increment synchronization of data |
CN104092591A (en) * | 2014-08-04 | 2014-10-08 | 飞狐信息技术(天津)有限公司 | Task monitoring method and system |
CN106331147A (en) * | 2016-09-09 | 2017-01-11 | 深圳市彬讯科技有限公司 | REDIS distributed type invoking method and system thereof |
CN106210151A (en) * | 2016-09-27 | 2016-12-07 | 深圳市彬讯科技有限公司 | A kind of zedis distributed caching and server cluster monitoring method |
CN106357449A (en) * | 2016-09-27 | 2017-01-25 | 深圳市彬讯科技有限公司 | zedis distributed type buffer method |
CN106815338A (en) * | 2016-12-25 | 2017-06-09 | 北京中海投资管理有限公司 | A kind of real-time storage of big data, treatment and inquiry system |
CN108132833A (en) * | 2017-12-08 | 2018-06-08 | 广州视源电子科技股份有限公司 | A kind of distributed timing method for scheduling task and device based on zookeeper technologies |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110413418A (en) * | 2019-06-25 | 2019-11-05 | 北京三快在线科技有限公司 | Cache synchronization device and method, cache synchronization system, electronic equipment |
CN110392102A (en) * | 2019-07-16 | 2019-10-29 | 北京辰森世纪科技股份有限公司 | Processing method and client, the server-side of data |
CN110765165B (en) * | 2019-10-23 | 2022-07-29 | 中国银行股份有限公司 | Method, device and system for synchronously processing cross-system data |
CN110765165A (en) * | 2019-10-23 | 2020-02-07 | 中国银行股份有限公司 | Method, device and system for synchronously processing cross-system data |
CN111143382A (en) * | 2019-12-13 | 2020-05-12 | 新华三大数据技术有限公司 | Data processing method, system and computer readable storage medium |
CN111143382B (en) * | 2019-12-13 | 2022-08-09 | 新华三大数据技术有限公司 | Data processing method, system and computer readable storage medium |
CN111162995A (en) * | 2019-12-26 | 2020-05-15 | 苏州浪潮智能科技有限公司 | Data change notification method, device, equipment and readable storage medium |
CN113076329A (en) * | 2020-01-03 | 2021-07-06 | 上海亲平信息科技股份有限公司 | Memory database |
CN111259031A (en) * | 2020-01-16 | 2020-06-09 | 上海米哈游天命科技有限公司 | Data updating method, device, equipment and storage medium |
CN111782666A (en) * | 2020-06-19 | 2020-10-16 | 京东数字科技控股有限公司 | Cache service system |
CN111782666B (en) * | 2020-06-19 | 2024-04-05 | 京东科技控股股份有限公司 | Cache service system |
CN112347202A (en) * | 2020-11-27 | 2021-02-09 | 中国工商银行股份有限公司 | Method and device for notifying data change message |
CN112347202B (en) * | 2020-11-27 | 2023-12-29 | 中国工商银行股份有限公司 | Method and device for notifying data change message |
CN114064807A (en) * | 2021-11-29 | 2022-02-18 | 四川虹美智能科技有限公司 | User system and data providing method thereof |
CN114064807B (en) * | 2021-11-29 | 2023-07-18 | 四川虹美智能科技有限公司 | User system and data providing method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN109213792B (en) | 2021-11-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109213792A (en) | Method, server-side, client, device and the readable storage medium storing program for executing of data processing | |
CN108280080B (en) | Data synchronization method and device and electronic equipment | |
CN110166409A (en) | Equipment cut-in method, related platform and computer storage medium | |
CN106095589B (en) | A kind of method, apparatus and system for distributing subregion | |
CN105229591A (en) | Overall situation polymerization NameSpace is created in order to storage administration | |
CN112069265A (en) | Configuration data synchronization method, service data system, computer system and medium | |
CN112953982B (en) | Service processing method, service configuration method and related device | |
CN108540568A (en) | Computing capability sharing method and smart machine | |
CN103338269A (en) | Data transmission method and device | |
CN114615096B (en) | Event-driven architecture-based telecommunication charging method, system and related equipment | |
CN105468619A (en) | Resource distribution method and device used for database connection pool | |
CN107229425A (en) | A kind of date storage method and device | |
CN109739661A (en) | The method, apparatus and system of information updating between a kind of cooperative module | |
CN107734017A (en) | Data service method and system | |
CN110011843A (en) | Alarm information processing method, electronic equipment and storage medium | |
CN109542627A (en) | Node switching method, device, supervisor, node device and distributed system | |
CN109783518A (en) | A kind of information query method, inquiry unit, storage medium and terminal device | |
CN115665284A (en) | Message processing method and device based on distributed configuration center and computer equipment | |
CN111460038A (en) | Quasi-real-time data synchronization method and device | |
CN107203437A (en) | The methods, devices and systems for preventing internal storage data from losing | |
CN109831473A (en) | Logistics service providing method and equipment | |
CN110198353B (en) | System for releasing weight gray scale of service version | |
CN110851186A (en) | Network equipment restarting method and device, electronic equipment and readable storage medium | |
CN102904739A (en) | Method for realizing event transmission and common information model (CIM) server | |
CN114968617A (en) | API conversion system, access request processing method thereof, electronic device and medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |