A kind of method of data synchronization and equipment
Technical field
The application is related to internet information treatment technology and computer processing technology field, more particularly to a kind of data are same
One step process and equipment.
Background technology
As computer system is to the extension in distributed system direction, caching technology in a distributed system is referred to as point
Cloth caching technology.EhCache (Cache Framework in pure Java process) is extensive as a kind of distributed caching component
Apply in various distributed systems.
EhCache applications are generally deployed in cluster environment.The respective caching of each node maintenance in cluster environment
Data, when some node is updated to data cached, these data updated can not be shared in the other node, and this not only can
The efficiency of node operation is reduced, and the nonsynchronous situation of data can be caused to occur.Therefore, in order to overcome EhCache apply in
The nonsynchronous problem of each node data, it is proposed that by the scheme of third party's container, i.e., realize cluster by third party's container
The data syn-chronization of local cache in environment (or distributed system) between different nodes.
However, the security in order to ensure data in distributed system, distributed system is generally delayed using remote distributed
Deposit, by distributed Key/value storage engines of increasing income, the data on caching server are obtained, to realize in distributed system
Remote cache between different dimensions server is synchronous.But, remote cache there are problems that in actual applications:When waiting to delay
Deposit data amount than it is larger when, remote cache takes substantial amounts of system resource than relatively time-consuming so that system resources consumption compares
Greatly, so influence system runnability.
The content of the invention
In view of this, the embodiment of the present application provides a kind of method of data synchronization and equipment, for solving in the prior art
Remote cache technology exist system resources consumption than it is larger the problem of.
The embodiment of the present application provides a kind of method of data synchronization, applied in controller, including:
Data cached attribute to be cleaned is included in the clearance order that order caching component is sent, the clearance order
What is stored in the data cached local cache with operation system stored in value, the caching component is data cached synchronous;
According to the clearance order, data syn-chronization instruction is sent to remote cache server, the data syn-chronization instruction is used
In indicating the remote cache server, synchronously the property value is corresponding data cached from the caching component.
The embodiment of the present application also provides a kind of method of data synchronization, applied in caching component, is deposited in the caching component
What is stored in the data cached local cache with operation system of storage is data cached synchronous, including:
The clearance order that the operation system is sent is received, the clearance order is used to point out the operation system to start this
Ground, which is cached, includes data cached property value to be cleaned in clear operation, the clearance order;
The clearance order is transmitted to control device, the control device is used to long-range delay according to the clearance order
Deposit server and send data syn-chronization instruction, the data syn-chronization is instructed for indicating the remote cache server from the caching
The synchronous property value is corresponding data cached in component;
Receive in the data synchronization request that the remote cache server is sent, the data synchronization request and include the category
Property value;
According to the property value included in the data synchronization request, by the corresponding data cached synchronization of the property value
To the remote cache server.
The embodiment of the present application also provides a kind of method of data synchronization, applied in remote cache server, including:
The data syn-chronization instruction that receiving control apparatus is sent, the data syn-chronization instruction is that the control device is being received
Sent during clearance order, the data syn-chronization is instructed for indicating that the remote cache server synchronously belongs to from caching component
Property value it is corresponding data cached, what the clearance order was sent by caching component;
Sent to the caching component and the property value is included in data synchronization request, the data synchronization request;
The property value for receiving the caching component transmission is corresponding data cached, and synchronously stores the caching number
According to.
The embodiment of the present application additionally provides a kind of data syn-chronization equipment, applied in controller, including:
Caching number to be cleaned is included in receiving unit, the clearance order that order caching component is sent, the clearance order
According to property value, what is stored in the local cache of the data cached and operation system stored in the caching component is data cached same
Step;
Transmitting element, according to the clearance order, data syn-chronization instruction is sent to remote cache server, the data are same
Step instruction is used to indicate that the remote cache server synchronous property value from the caching component is corresponding data cached.
The embodiment of the present application additionally provides a kind of data syn-chronization equipment, applied in caching component, in the caching component
What is stored in the data cached local cache with operation system of storage is data cached synchronous, including:
Receiving unit, receives the clearance order that the operation system is sent, and the clearance order is used to point out the business
System, which starts, includes data cached property value to be cleaned in local cache clear operation, the clearance order;
Transmitting element, control device is transmitted to by the clearance order, and the control device is used to be referred to according to the removing
Make to remote cache server and send data syn-chronization instruction, the data syn-chronization is instructed for indicating the remote cache server
The synchronous property value is corresponding data cached from the caching component;
The receiving unit, receives the data synchronization request that the remote cache server is sent, and the data syn-chronization please
The property value is included in asking;
Synchronization unit, it is according to the property value included in the data synchronization request, the property value is corresponding slow
Deposit data is synchronized to the remote cache server.
The embodiment of the present application additionally provides a kind of data syn-chronization equipment, applied in remote cache server, including:
Receiving unit, the data syn-chronization instruction that receiving control apparatus is sent, the data syn-chronization instruction is that the control is set
For what is sent when receiving clearance order, the data syn-chronization is instructed for indicating the remote cache server from caching group
Synchronization properties value is corresponding data cached in part, what the clearance order was sent by caching component;
Transmitting element, sends to the caching component and the category is included in data synchronization request, the data synchronization request
Property value;
Synchronization unit, the property value for receiving the caching component transmission is corresponding data cached, and synchronously stores institute
State data cached.
At least one above-mentioned technical scheme that the embodiment of the present application is used can reach following beneficial effect:
In the embodiment of the present application by increasing caching component and controller, controller is receiving caching component transmission
During clearance order, sent to remote cache server in data syn-chronization instruction, the clearance order and include caching number to be cleaned
According to property value, what is stored in the local cache of the data cached and operation system stored in the caching component is data cached same
Step, the data syn-chronization is instructed for indicating the remote cache server synchronous property value pair from the caching component
That answers is data cached.The cache synchronization function of remote cache server is so controlled by controller, enables to remote cache to take
It is data cached in the local cache for device quick obtaining operation system of being engaged in, keep data cached and update most fast, lift remote cache
Buffer efficiency, efficiently solve remote cache service in the prior art consumption system resource it is big the problem of, greatly improve
The overall performance of system.
Brief description of the drawings
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes the part of the application, this Shen
Schematic description and description please is used to explain the application, does not constitute the improper restriction to the application.In the accompanying drawings:
A kind of schematic flow sheet for method of data synchronization that Fig. 1 provides for the embodiment of the present application;
A kind of schematic flow sheet for method of data synchronization that Fig. 2 provides for the embodiment of the present application;
A kind of schematic flow sheet for method of data synchronization that Fig. 3 provides for the embodiment of the present application;
A kind of schematic flow sheet for method of data synchronization that Fig. 4 provides for the embodiment of the present application;
A kind of structural representation for data syn-chronization equipment that Fig. 5 provides for the embodiment of the present application;
A kind of structural representation for data syn-chronization equipment that Fig. 6 provides for the embodiment of the present application;
A kind of structural representation for data syn-chronization equipment that Fig. 7 provides for the embodiment of the present application;
A kind of structural representation for data synchronous system that Fig. 8 provides for the embodiment of the present application.
Embodiment
In order to realize the purpose of the application, the embodiment of the present application provides a kind of method of data synchronization and equipment, in this Shen
Please in embodiment by increasing caching component and controller, controller when receiving the clearance order of caching component transmission, to
Remote cache server sends in data syn-chronization instruction, the clearance order and includes data cached property value to be cleaned, institute
Stored in the data cached local cache with operation system stored in caching component data cached synchronous is stated, the data are same
Step instruction is used to indicate that the remote cache server synchronous property value from the caching component is corresponding data cached.
The cache synchronization function of remote cache server is so controlled by controller, remote cache server quick obtaining industry is enabled to
It is data cached in the local cache of business system, it is ensured that most fast, the buffer efficiency of lifting remote cache of data cached renewal, have
The problem of consumption system resource of remote cache service in the prior art is big is solved to effect, the globality of system is greatly improved
Energy.
It should be noted that caching component described in the embodiment of the present application is different from caching group of the prior art
Part, can realize data cached synchronous in the local cache with operation system, and realize and remote cache server
Data cached synchronization in remote cache.Accumulation layer, API (Application Program are included in the caching component
Interface;Application programming interfaces) service layer and Core Feature layer.
Wherein, what accumulation layer was synchronously obtained for storing is data cached;API service layer be used for outside controller or other
Portion's equipment carries out data interaction;Core Feature layer be used to realizing it is data cached synchronous with the local cache of operation system,
And realize data cached synchronous with the remote cache of remote cache server.
The caching component can be in the local cache of operation system it is data cached when being eliminated, start remote cache clothes
The data syn-chronization flow of business device, to ensure in time to take the data cached remote cache that is synchronized in the local cache of operation system
It is engaged in device, can be prevented effectively from and be synchronized to remote cache server by data cached when buffer data size is larger in the prior art
The problem of causing occupying system resources.
Described controller can carry out data friendship with caching component, remote cache server in the embodiment of the present application
Mutually, controller starts the data syn-chronization flow of remote cache server, passed through when receiving the clearance order of caching component
The mode of " pushing away " realizes the data syn-chronization of remote cache server.
To make the purpose, technical scheme and advantage of the application clearer, below in conjunction with the application specific embodiment and
Technical scheme is clearly and completely described corresponding accompanying drawing.Obviously, described embodiment is only the application one
Section Example, rather than whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing
Go out the every other embodiment obtained under the premise of creative work, belong to the scope of the application protection.
Below in conjunction with accompanying drawing, the technical scheme that each embodiment of the application is provided is described in detail.
Embodiment 1
A kind of schematic flow sheet for method of data synchronization that Fig. 1 provides for the embodiment of the present application.Methods described can be as follows
It is shown.The executive agent of the embodiment of the present application is controller described in the embodiment of the present application.
Step 101:The clearance order that order caching component is sent.
Data cached property value to be cleaned is included in the clearance order.
What is stored in the data cached local cache with operation system stored in the caching component is data cached synchronous.
In the embodiment of the present application, when operation system is needed to data cached execution clear operation in local cache,
Sent to caching component and remove notification message.Now, caching component is by calling RPC interfaces to controller transmission clearance order.
Here controller can be remote controllers, and the remote controllers can set up data cube computation with remote cache server.
Assuming that caching component described in the embodiment of the present application is integrated in operation system, then caching component can be right
Data cached in the local cache of operation system is managed:A kind of way to manage can be by the local cache of operation system
In data cached be synchronized in the accumulation layer of caching component that (synchronization here can be stored data cached to local cache
Synchronized transmission is stored to local cache to caching component or data cached when middle, is resynchronized by local cache
Into caching component, it is not specifically limited here), accordingly even when data cached in the local cache of operation system is eliminated,
Also these data cached can be synchronized in remote cache server in time;Another way to manage can also be to store
Layer in it is data cached be synchronized to after remote cache server, remove it is data cached, to save memory space.
It should be noted that data cached property value described in the embodiment of the present application can be understood as it is data cached
The corresponding key values of type, different types of data cached corresponding key values are different.
Step 102:According to the clearance order, data syn-chronization instruction is sent to remote cache server.
The data syn-chronization is instructed for indicating the remote cache server synchronous category from the caching component
Property value it is corresponding data cached.
In the embodiment of the present application, controller receive caching component transmission clearance order when, it is possible to use with not
With the long connection set up between remote cache server, instructed to the remote cache server broadcast data syn-chronization.
Alternatively, controller is when receiving the clearance order of caching component transmission, first, will be wrapped in the clearance order
The data cached property value to be cleaned contained is stored into the storehouse that clears data.
In the embodiment of the present application, controller can safeguard the storehouse that clears data, and record and treat in this clears data storehouse
That removes is data cached.
For example:What is recorded in the storehouse that clears data to be cleaned data cached can be carried out in the form of key/value
Storage.By it is to be cleaned it is data cached store to clear data storehouse when, data note is typically generated in the storehouse that clears data
Record, in the data record comprising operation system mark, cashing indication (local cache or remote cache can be referred to here) and
Data cached property value to be cleaned.
Secondly, read and to be cleaned data cached stored described to the storehouse that clears data from the storehouse that clears data
The data cached property value to be cleaned stored in setting time before.
In the embodiment of the present application, caching component, can be according to the local slow of operation system before clearance order is sent
The order of middle memory buffers data is deposited, being cleared data to control device transmission, (clearing data here can be understood as local delay
Deposit the data cached of middle storage), by the local cache of record traffic system in what such control device was safeguarded clear data storehouse
The data cached property value of middle storage.
Once controller receives the clearance order of caching component transmission, then controller can be read from the storehouse that clears data
Stored in the setting time between receiving the clearance order data cached is taken, these data cached epicycles that are considered as are treated
That removes is data cached, i.e. to be synchronized data cached of epicycle.
For example:The data cached time cycle that operation system removes in local cache is 1 minute, then caching component exists
The data cached property value in the local cache of operation system is sent to control device in real time within 1 minute so that control
Control equipment stores the data cached property value received into the storehouse that clears data.Sent when controller receives caching component
Clearance order when, from the storehouse that clears data read preceding 1 minute store data cached property value.
Finally, by the data cached property value to be cleaned read and the data cached category to be cleaned received
Property value carry data syn-chronization instruction in be sent to remote cache server.
Specifically, using the data cached property value to be cleaned that reads and receive it is to be cleaned data cached
Property value update the data synchronous list;And the data syn-chronization list after renewal is sent to remote cache server.Make
Obtain the synchronous list of remote cache server based on data and carry out data cached data syn-chronization, remote cache server data is synchronous
Mode detailed content referring to embodiment 3, be not described in detail here.
The technical scheme provided by the embodiment of the present application, in the embodiment of the present application by increasing caching component and control
Device, controller sends data syn-chronization instruction, institute when receiving the clearance order of caching component transmission to remote cache server
State the data cached and business system for including and being stored in data cached property value to be cleaned, the caching component in clearance order
The data cached synchronization stored in the local cache of system, the data syn-chronization instruct for indicate the remote cache server from
The synchronous property value is corresponding data cached in the caching component.The slow of remote cache server is so controlled by controller
Synchronizing function is deposited, is enabled to data cached in the local cache of remote cache server quick obtaining operation system, it is ensured that
Most fast, the buffer efficiency of lifting remote cache of data cached renewal, efficiently solves remote cache service in the prior art
The problem of system resource is big is consumed, the overall performance of system is greatly improved.
Embodiment 2
A kind of schematic flow sheet for method of data synchronization that Fig. 2 provides for the embodiment of the present application.Methods described can be as follows
It is shown.Method of data synchronization described in the embodiment of the present application is applied in caching component.
In the embodiment of the present application, deposited in the data cached local cache with operation system stored in the caching component
The data cached synchronization of storage.
Specifically, in order to mitigate when buffer data size is larger data syn-chronization between operation system and remote cache server
To the pressure caused by whole operation system, described caching component possesses storage capacity, Ke Yishi in the embodiment of the present application
When or stored periodically from operation system in the local cache of synchronous service system it is data cached, so in operation system
When removing data cached in local cache, start data syn-chronization operation described in the embodiment of the present application, by operation system
Local cache in data cached be synchronized in caching component.
Step 201:The clearance order that the operation system is sent is received, the clearance order is used to point out the business system
System, which starts, includes data cached property value to be cleaned in local cache clear operation, the clearance order.
In the embodiment of the present application, caching component receives the clearance order that operation system is sent, and illustrates that operation system prepares
Start to the data cached clear operation in local cache.In order to which ensure in local cache data cached can also be searched
To, it is necessary to data cached in local cache is synchronized into remote cache server, so, caching component is receiving business system
During the clearance order sent of uniting, triggering performs step 202.
Step 202:The clearance order is transmitted to control device, the control device is used for according to the clearance order
To remote cache server send data syn-chronization instruction, the data syn-chronization instruct for indicate the remote cache server from
The synchronous property value is corresponding data cached in the caching component.
Step 203:Receive and wrapped in the data synchronization request that the remote cache server is sent, the data synchronization request
Containing the property value.
In the embodiment of the present application, if remote cache server receives the data syn-chronization list of control device transmission,
The property value in the data syn-chronization list is included in data synchronization request transmitted by remote cache server.
Step 204:According to the property value included in the data synchronization request, by the corresponding caching of the property value
Data syn-chronization is to the remote cache server.
In the embodiment of the present application, caching component receive remote cache server transmission data synchronization request when,
According to the property value included in the data synchronization request, searched and the property value pair from the accumulation layer of caching component
That answers is data cached, and will find it is data cached be sent to remote cache server, to reach the local cache of operation system
In the data cached purpose for being synchronized to remote server.
In another embodiment of the application, methods described also includes:
Sent to the remote cache server and institute is included in data syn-chronization query messages, the data syn-chronization query messages
State property value;The data synchronization result message that the remote cache server is sent is received, and according to the data syn-chronization knot
When fruit message determines that the remote cache server data is synchronously finished, send data syn-chronization to the operation system and complete to disappear
Breath.
In another embodiment of the application, the data synchronization result that the remote cache server is sent is being received
During message, methods described also includes:
If the data synchronization result message is synchronous success message, data cached execution corresponding to the property value
Clear operation.
Because the local cache data of operation system performs clear operation, then caching component is it is determined that will be data cached same
After step to remote cache server, it is also desirable to the data cached execution clear operation to storage so that keep and operation system
Local cache it is synchronous.
In another embodiment of the application, methods described also includes:
In data cached execution clear operation corresponding to the property value, data syn-chronization is sent to the operation system
Request, the data synchronization request is used for data cached in its synchronous local cache from the operation system.
Caching in the technical scheme provided by the embodiment of the present application, the local cache of caching component storage service system
Data, and operation system remove local cache it is data cached when, notification controller log-on data synchronization flow, by business system
Data cached in the local cache of system is synchronized to remote cache server, so controls remote cache server by controller
Cache synchronization function, enables to data cached in the local cache of remote cache server quick obtaining operation system, guarantor
The most fast of data cached renewal is demonstrate,proved, the buffer efficiency of remote cache is lifted, remote cache clothes in the prior art are efficiently solved
The problem of business consumption system resource is big, greatly improves the overall performance of system.
Embodiment 3
A kind of schematic flow sheet for method of data synchronization that Fig. 3 provides for the embodiment of the present application.Methods described can be as follows
It is shown.The method of data synchronization is applied in remote cache server.
Step 301:The data syn-chronization instruction that receiving control apparatus is sent.
The data syn-chronization instructs the control device to be sent when receiving clearance order, and the data syn-chronization refers to
Make for indicating that remote cache server synchronization properties value from caching component is corresponding data cached, the clearance order
Sent by caching component.
Step 302:Sent to the caching component and the attribute is included in data synchronization request, the data synchronization request
Value.
Step 303:The property value for receiving the caching component transmission is corresponding data cached, and synchronously stores described
It is data cached.
The technical scheme provided by the embodiment of the present application, remote cache server is receiving the data syn-chronization of controller
During instruction, data interaction is carried out with caching component, realize data cached in the local cache of operation system is synchronized to it is long-range
Caching server.The cache synchronization function of remote cache server is so controlled by controller, remote cache service is enabled to
It is data cached in the local cache of device quick obtaining operation system, it is ensured that most fast, the lifting remote cache of data cached renewal
Buffer efficiency, efficiently solve remote cache service in the prior art consumption system resource it is big the problem of, greatly improve
The overall performance of system.
Embodiment 4
A kind of schematic flow sheet for method of data synchronization that Fig. 4 provides for the embodiment of the present application.Methods described can be as follows
It is shown.
Step 401:Operation system data cached is synchronized to caching group in real time or periodically by what is stored in local cache
In part.
Step 402:Operation system determines to remove the data cached of local cache, to caching component transmission clearance order, institute
State and data cached property value to be cleaned is included in clearance order.
Step 403:Caching component receives the clearance order that the operation system is sent.
Step 404:The clearance order is transmitted to control device by caching component.
Step 405:The clearance order that control device order caching component is sent.
Step 406:Control device by the data cached property value to be cleaned included in the clearance order store to
Clear data in storehouse.
Step 407:Control device is read from the storehouse that clears data to be cleaned data cached to be stored to institute described
The data cached property value to be cleaned stored in setting time before stating the storehouse that clears data.
Step 408:Control device by the data cached property value to be cleaned read and receive it is to be cleaned
Data cached property value is carried is sent to remote cache server in data syn-chronization instruction.
Step 409:The data syn-chronization instruction that remote cache server receiving control apparatus is sent.
Step 410:Remote cache server sends data synchronization request to the caching component.
Step 411:Caching component receives the data synchronization request that the remote cache server is sent.
Step 412:Caching component is according to the property value included in the data synchronization request, by the property value pair
That answers data cached is synchronized to the remote cache server.
Step 413:Caching component sends data syn-chronization query messages to the remote cache server.
Step 414:Caching component receives the data synchronization result message that the remote cache server is sent, and in basis
When the data synchronization result message determines that the remote cache server data is synchronously finished, number is sent to the operation system
According to synchronously completing message.
Step 415:Caching component when receiving the data synchronization result message that the remote cache server is sent, if
The data synchronization result message is synchronous success message, then data cached execution clear operation corresponding to the property value.
Step 416:Caching component is in data cached execution clear operation corresponding to the property value, to the business
System sends data synchronization request, and the data synchronization request is used for slow in its synchronous local cache from the operation system
Deposit data.
Embodiment 5
A kind of structural representation for data syn-chronization equipment that Fig. 5 provides for the embodiment of the present application.The embodiment of the present application is provided
Data syn-chronization equipment can with it is integrated in the controller.The data syn-chronization equipment includes:Receiving unit 51 and transmitting element 52,
Wherein:
Caching to be cleaned is included in receiving unit 51, the clearance order that order caching component is sent, the clearance order
What is stored in the data cached local cache with operation system stored in the property value of data, the caching component is data cached
It is synchronous;
Transmitting element 52, according to the clearance order, data syn-chronization instruction, the data are sent to remote cache server
Synchronic command is used to indicate the remote cache server corresponding caching number of the synchronization property value from the caching component
According to.
In another embodiment of the application, the transmitting element 52 takes according to the clearance order to remote cache
Business device sends data syn-chronization instruction, including:
The data cached property value to be cleaned included in the clearance order is stored into the storehouse that clears data;
Read and to be cleaned data cached stored described to before the storehouse that clears data from the storehouse that clears data
Setting time in the data cached property value to be cleaned that has stored;
By the data cached property value to be cleaned read and the data cached property value to be cleaned received
Carry and be sent to remote cache server in data syn-chronization instruction.
In another embodiment of the application, the transmitting element 52 is by the data cached category to be cleaned read
Property value and the data cached property value to be cleaned that receives carry and be sent to remote cache service in data syn-chronization instruction
Device, including:
Utilize the data cached property value to be cleaned read and the data cached attribute to be cleaned received
Value updates the data synchronous list;
The data syn-chronization list after renewal is sent to remote cache server.
In another embodiment of the application, the transmitting element 52 sends data syn-chronization to remote cache server and referred to
Order, including:
It is connected using the length set up between remote cache server, to the remote cache server broadcast data syn-chronization
Instruction.
It should be noted that data syn-chronization equipment described in the embodiment of the present application can be realized by software mode,
It can also be realized, be not specifically limited here by hardware mode.By receive caching component send clearance order when,
Sent to remote cache server in data syn-chronization instruction, the clearance order and include data cached property value to be cleaned,
What is stored in the data cached local cache with operation system stored in the caching component data cached synchronous, data
Synchronic command is used to indicate the remote cache server corresponding caching number of the synchronization property value from the caching component
According to.The cache synchronization function of remote cache server is so controlled by controller, enables to remote cache server quickly to obtain
Take data cached in the local cache of operation system, it is ensured that most fast, the caching effect of lifting remote cache of data cached renewal
Rate, efficiently solves the problem of consumption system resource of remote cache service in the prior art is big, greatly improves the whole of system
Body performance.
Embodiment 6
A kind of structural representation for data syn-chronization equipment that Fig. 6 provides for the embodiment of the present application.The data syn-chronization equipment
The caching stored in local cache applied to the data cached and operation system in caching component, stored in the caching component
Data syn-chronization.The data syn-chronization equipment includes:Receiving unit 61, transmitting element 62 and synchronization unit 63, wherein:
Receiving unit 61, receives the clearance order that the operation system is sent, and the clearance order is used to point out the industry
Business system, which starts, includes data cached property value to be cleaned in local cache clear operation, the clearance order;
Transmitting element 62, control device is transmitted to by the clearance order, and the control device is used to be removed according to described
Instruct to remote cache server and send data syn-chronization instruction, the data syn-chronization is instructed for indicating the remote cache service
Device synchronous property value from the caching component is corresponding data cached;
The receiving unit 61, receives the data synchronization request that the remote cache server is sent, the data syn-chronization
The property value is included in request;
Synchronization unit 63, it is according to the property value included in the data synchronization request, the property value is corresponding
It is data cached to be synchronized to the remote cache server.
In another embodiment of the application, the transmitting element 62 sends data to the remote cache server
The property value is included in synchronous query message, the data syn-chronization query messages;
The receiving unit 61, receives the data synchronization result message that the remote cache server is sent;
The transmitting element 62, is determining that the remote cache server data is same according to the data synchronization result message
When step is finished, data syn-chronization completion message is sent to the operation system.
In another embodiment of the application, the data syn-chronization equipment also includes:Clearing cell 64, wherein:
The clearing cell 64, when receiving the data synchronization result message that the remote cache server is sent, if
The data synchronization result message is synchronous success message, then data cached execution clear operation corresponding to the property value.
In another embodiment of the application, the synchronization unit 63, corresponding data cached to the property value
When performing clear operation, data synchronization request is sent to the operation system, the data synchronization request is used for from the business
It is data cached in its synchronous local cache in system.
It should be noted that data syn-chronization equipment described in the embodiment of the present application can be realized by software mode,
It can also be realized, be not specifically limited here by hardware mode.Described data syn-chronization equipment is deposited in the embodiment of the present application
Store up operation system local cache in it is data cached, and operation system remove local cache it is data cached when, notify control
The synchronous flow of device log-on data processed, remote cache server is synchronized to by data cached in the local cache of operation system, this
Sample is controlled the cache synchronization function of remote cache server by controller, enables to remote cache server quick obtaining business
It is data cached in the local cache of system, it is ensured that most fast, the buffer efficiency of lifting remote cache of data cached renewal, effectively
Ground solves the problem of consumption system resource of remote cache service in the prior art is big, greatly improves the overall performance of system.
Embodiment 7
A kind of structural representation for data syn-chronization equipment that Fig. 7 provides for the embodiment of the present application.The data syn-chronization equipment
Applied in remote cache server.The data syn-chronization equipment includes:Receiving unit 71, transmitting element 72 and synchronization unit
73, wherein:
Receiving unit 71, the data syn-chronization instruction that receiving control apparatus is sent, the data syn-chronization instruction is the control
What equipment was sent when receiving clearance order, the data syn-chronization is instructed for indicating the remote cache server from caching
Synchronization properties value is corresponding data cached in component, what the clearance order was sent by caching component;
Transmitting element 72, sends in data synchronization request, the data synchronization request comprising described to the caching component
Property value;
Synchronization unit 73, the property value for receiving the caching component transmission is corresponding data cached, and synchronously stores
It is described data cached.
It should be noted that data syn-chronization equipment described in the embodiment of the present application can be realized by software mode,
It can also be realized, be not specifically limited here by hardware mode.Described data syn-chronization equipment exists in the embodiment of the present application
When receiving the data syn-chronization instruction of controller, data interaction is carried out with caching component, is realized the local cache of operation system
In data cached be synchronized to remote cache server.The cache synchronization work(of remote cache server is so controlled by controller
Can, enable to data cached in the local cache of remote cache server quick obtaining operation system, it is ensured that data cached
What is updated is most fast, lifts the buffer efficiency of remote cache, efficiently solves the consumption system of remote cache service in the prior art
The problem of resource is big, greatly improves the overall performance of system.
Embodiment 8
A kind of structural representation for data synchronous system that Fig. 8 provides for the embodiment of the present application.The data synchronous system
Including:Operation system 81, caching component 82, controller 83 and remote cache server 84, wherein:
Operation system 81 is business described in the embodiment of the present application, the memory buffers data in local cache, and in fact
When or be synchronized to data cached periodically in caching component 82.
Caching component 82 possesses function described in the embodiment of the present application 6, is not detailed herein.
Alternatively, caching component 82 described in the embodiment of the present application can include buffer service module, buffer service
Management module, removing notification module, synchronization module, Ehcache modules, Tair modules, Rcache modules etc..
Controller 83 possesses function described in the embodiment of the present application 5, is not detailed herein.
Remote cache server 84 possesses function described in the embodiment of the present application 7, is not detailed herein.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the present invention can be used in one or more computers for wherein including computer usable program code
The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moved
State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.Define, calculate according to herein
Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability
Comprising so that process, method, commodity or equipment including a series of key elements are not only including those key elements, but also wrap
Include other key elements being not expressly set out, or also include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described
Also there is other identical element in process, method, commodity or the equipment of element.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product.
Therefore, the application can be using the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Form.Deposited moreover, the application can use to can use in one or more computers for wherein including computer usable program code
The shape for the computer program product that storage media is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
Embodiments herein is the foregoing is only, the application is not limited to.For those skilled in the art
For, the application can have various modifications and variations.It is all any modifications made within spirit herein and principle, equivalent
Replace, improve etc., it should be included within the scope of claims hereof.