WO2018040168A1 - 分布式缓存同步方法、装置及系统 - Google Patents

分布式缓存同步方法、装置及系统 Download PDF

Info

Publication number
WO2018040168A1
WO2018040168A1 PCT/CN2016/100564 CN2016100564W WO2018040168A1 WO 2018040168 A1 WO2018040168 A1 WO 2018040168A1 CN 2016100564 W CN2016100564 W CN 2016100564W WO 2018040168 A1 WO2018040168 A1 WO 2018040168A1
Authority
WO
WIPO (PCT)
Prior art keywords
cache
web terminal
event
clear
server
Prior art date
Application number
PCT/CN2016/100564
Other languages
English (en)
French (fr)
Inventor
赖旭东
Original Assignee
广州市乐商软件科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州市乐商软件科技有限公司 filed Critical 广州市乐商软件科技有限公司
Publication of WO2018040168A1 publication Critical patent/WO2018040168A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5682Policies or rules for updating, deleting or replacing the stored data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/566Grouping or aggregating service requests, e.g. for unified processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Definitions

  • the present invention relates to the field of computer information processing technologies, and in particular, to a distributed cache synchronization method, apparatus, and system.
  • Cache is the industry's first, centralized cache, that is, multiple WEB terminals (or applications) connect to a cache terminal through the network. Distributed caching came into being when this centralized cached terminal could not withstand and respond to high concurrent requests from multiple webs (or applications). Distributed cache means that multiple cache terminals provide cache response to multiple WEB terminals (or applications) at the same time.
  • a distributed cache synchronization method includes:
  • the first WEB terminal clears the cache data corresponding to the data identifier of the database update instruction in the cache of the application on the first WEB terminal according to the database update instruction, and sends a clear cache event to the server; the clear cache event Including the data identifier;
  • the server broadcasts the received clear cache event to the second WEB terminal;
  • the second WEB terminal clears the cache data corresponding to the data identifier in the cache of the application program on the second WEB terminal according to the received clear cache event.
  • a distributed cache synchronization system comprising:
  • a first WEB terminal configured to: clear, according to a database update instruction, cache data corresponding to a data identifier of the database update instruction in a cache of an application on the first WEB terminal, and send the cached data Clearing the cache event to the server; the clearing cache event includes the data identifier;
  • the server is configured to broadcast the received clear cache event to a second WEB terminal;
  • the second WEB terminal is configured to: according to the received clear cache event, clear cache data corresponding to the data identifier in a cache of an application on the second WEB terminal.
  • a distributed cache synchronization device is disposed on a WEB terminal, and includes:
  • the event sending broadcast module is configured to: according to the database update instruction, clear the cache data corresponding to the data identifier of the database update instruction in the cache of the application of the WEB terminal, and send a clear cache event to the server, where the server will send the WEB
  • the clearing cache event sent by the terminal is broadcasted to the synchronous WEB terminal; the clearing cache event sent by the WEB terminal includes the data identifier;
  • the event receiving and executing module is configured to receive a clear cache event sent by the synchronous WEB terminal and broadcast by the server, and clear the cache of the application of the WEB terminal and the received clear cache event according to the received clear cache event.
  • the data identifies the corresponding cached data.
  • a distributed cache synchronization method running on a server including:
  • the clearing cache event sent after the cache data corresponding to the data identifier of the database update instruction in the cache of the application on the first WEB terminal is cleared according to the database update instruction; the clearing cache event is sent Including the data identifier;
  • the second WEB terminal Broadcasting the received clear buffer event to the second WEB terminal, and the second WEB terminal clears the cache of the application on the second WEB terminal and corresponds to the data identifier according to the received clear cache event. Cache data.
  • a distributed cache synchronization device is disposed on a server and includes:
  • An event receiving module configured to receive, after the first WEB terminal clears the cached data corresponding to the data identifier of the database update instruction in the cache of the application on the first WEB terminal according to the database update instruction, and sends a clear cache event
  • the clearing cache event includes the data identifier
  • An event forwarding module configured to broadcast the received clear cache event to the second WEB terminal, where the second WEB terminal clears the cache of the application on the second WEB terminal according to the received clear cache event, Cache data corresponding to the data identifier.
  • the distributed cache synchronization method, device and system can implement cache synchronization of applications on each WEB terminal; and when performing maintenance, if a new WEB terminal joins, only the WEB needs to be
  • the address information of the server is configured in the application of the terminal, so that the server establishes a communication link with the WEB terminal, and there is no need to modify the configuration of another WEB terminal application. Therefore, the above-described distributed cache synchronization method and apparatus have low maintenance cost.
  • FIG. 1 is a flow chart of a distributed cache synchronization method according to an embodiment
  • FIG. 2 is a flow chart of a distributed cache synchronization method of another embodiment
  • FIG. 3 is a relationship diagram of a server, a WEB terminal, and a database in a distributed cache synchronization method according to an embodiment
  • FIG. 4 is a structural diagram of a distributed cache synchronization system according to an embodiment
  • FIG. 5 is a structural diagram of a distributed cache synchronization apparatus of an embodiment running on a WEB terminal
  • FIG. 6 is a flow chart of a distributed cache synchronization method running on an embodiment of a server
  • FIG. 7 is a flow chart of another distributed cache synchronization method running on an embodiment of a server
  • FIG. 8 is a structural diagram of a distributed cache synchronization apparatus provided in an embodiment of a server
  • FIG. 9 is a structural diagram of another distributed cache synchronization apparatus provided in an embodiment of a server.
  • a distributed cache synchronization method includes:
  • the first WEB terminal clears the cache data corresponding to the data identifier of the database update instruction in the cache of the application on the first WEB terminal according to the database update instruction, and sends a clear cache event to the server.
  • the clear cache event includes the data identifier.
  • the first WEB terminal is a WEB terminal deployed by an application that initiates a database update instruction.
  • the WEB terminal is a smart terminal that can access a web page.
  • the database update instruction is used to indicate the modification of the data of the database or the deletion of the data of the database.
  • the first WEB terminal When the application needs to modify or delete the data of the database, the first WEB terminal generates a database update instruction, and the first WEB terminal clears the cache of the application on the first WEB terminal and updates with the database according to the database update instruction.
  • the data of the instruction identifies the corresponding cached data.
  • the database update instruction includes an update action and a data identifier.
  • the update action is an operation action that the database update instruction needs to complete;
  • the data identifier is an identifier of the operation object of the database update instruction, and preferably, the identifier is a unique identifier of the operation object of the database update instruction.
  • the operation object of the database update instruction is the data in the database.
  • the application When the application reads the data in the database, it first needs to read the database data into the cache to form the cached data.
  • the cached data has the same data identification as the database data. Thus, if the database data is not modified or deleted, when the database data is subsequently read, the cache data in the cache corresponding to the data identifier of the database data can be directly read.
  • clearing cache events includes data identification in database update instructions.
  • S140 The server broadcasts the cleared cache event received to the second WEB terminal.
  • the server is a communication server working in cooperation with each WEB terminal, and may be a communication server host.
  • the service terminal broadcasts the cleared cache event sent by the first WEB terminal to the second WEB terminal.
  • the second WEB terminal is the same application that is configured with the database of the application operation of the first WEB terminal, and correspondingly configured with a corresponding cache. To ensure data consistency, the cached data in the cache needs to be combined with the first WEB terminal. The cached data in the cache is kept in sync.
  • the clear cache event needs to be forwarded to the server through the server to
  • the second WEB terminal performs the clearing of the cached data in the second WEB terminal, thereby ensuring data consistency.
  • the server after receiving the clear cache event, stores the clear cache event and then broadcasts to each second WEB terminal. So, save the cache event, It can also be used for subsequent viewing or other program calls.
  • the second WEB terminal clears the cache data corresponding to the data identifier in the cache of the application program on the second WEB terminal according to the received clear cache event.
  • the second WEB terminal receives the clear cache event broadcasted by the server, and clears the cache data corresponding to the data identifier in the cache on the second WEB terminal according to the received clear cache event. In this way, cache synchronization of applications on each WEB terminal is achieved.
  • the distributed cache synchronization method the first WEB terminal clears the cache data corresponding to the data identifier of the database update instruction in the cache of the application program on the first WEB terminal according to the database update instruction, and sends a clear cache event to a server; the clearing cache event includes the data identifier; the server broadcasts the received clear cache event to a second WEB terminal; and the second WEB terminal clears the according to the received clear cache event
  • the cache is deployed on a WEB terminal deployed by the application that invoked the cache.
  • the application on the WEB terminal consumes a large amount of data and consumes a large amount of network resources when accessing the cache.
  • the cache is a JVM cache such that the cache is deployed on the same WEB terminal as the application.
  • the WEB terminal when the browser requests the database data from the WEB terminal, after the browser sends the request to the WEB terminal, the WEB terminal needs to Sending a request to the terminal where the cache is located through the network, and receiving the cache data corresponding to the database data through the network. After processing the request sent by the browser to the WEB terminal, the WEB terminal returns the database data to the browser. The WEB terminal needs to consume twice the size of the bandwidth resource of the database data requested by the browser when receiving the cache data corresponding to the database data through the network and returning the database data to the browser.
  • the cache is deployed on the WEB terminal deployed by the application that invokes the cache, and may be a JVM cache.
  • the WEB terminal does not need to send a request to the terminal where the cache is located through the network, and does not need to receive the cache data corresponding to the database data through the network. Therefore, network resources can be saved.
  • the method before the step of the server broadcasting the cleared cache event to the second WEB terminal, the method further includes the following steps:
  • the second WEB terminal sends subscription information to the server; the subscription information includes a subscription type, and the subscription type is information about a clear cache event related to an application of the second WEB terminal.
  • the subscription type may be specifically an identifier of an application of the second WEB terminal, or an identifier of a database of application operations of the two WEB terminals.
  • Clearing a cache event related to an application of the second WEB terminal that is, a clear cache event of an application corresponding to an identifier of an application of the second WEB terminal, or a database operating with an application of the second WEB terminal Identifies the clear cache event for the corresponding database.
  • the subscription information and the information related to the application related clearing cache event include the data identifier.
  • the server is made to know whether the database data operated by the application deployed on the second WEB terminal is the same as the database data operated by the application deployed on the first WEB terminal, so that the server receives the first WEB terminal to send the data.
  • the broadcast object that is, the second WEB terminal, can be determined according to the clear cache time and the database update instruction.
  • the second WEB terminal acquires address information of the server, and sends subscription information to the server according to the address information.
  • the address information of the server needs to be configured in the application of the WEB terminal, so that the server establishes a communication link with the WEB terminal.
  • the second WEB terminal can send the subscription information to the server according to the address information; the server can also send the broadcast clear cache event to the second WEB terminal through the established communication link.
  • the second WEB terminal clears, in the cache of the application on the second WEB terminal, the data according to the received clear cache event.
  • the method further includes:
  • S270 The first WEB terminal sends the database update instruction to the database terminal.
  • the database terminal is a terminal that deploys a database with database operation instruction operations.
  • step S270 the method further includes:
  • S280 The database terminal executes the database update instruction on a database.
  • the database terminal may complete the update action on the data corresponding to the data identifier in the database according to the update action and the data identifier of the database update instruction, and thus execute the database update instruction.
  • the data in the cache is kept consistent with the data in the database.
  • the server is a communication server host
  • the cache is a JVM (Java Virtual Machine) cache
  • the WEB terminal is a WEB host.
  • the application is deployed on a web host, and the application includes the JVM cache and the client.
  • the functions of the server host include:
  • the functions of the client of the WEB host include:
  • the present invention further provides a distributed cache synchronization system corresponding to the above distributed cache synchronization method, including:
  • the first WEB terminal 420 is configured to: according to the database update instruction, clear the cache data corresponding to the data identifier of the database update instruction in the cache of the application on the first WEB terminal 420, And sending a clear cache event to the server 440; the clear cache event includes the data identifier;
  • the server 440 is configured to broadcast the received clear cache event to the second WEB terminal 460;
  • the second WEB terminal 460 is configured to: according to the received clear cache event, clear cache data corresponding to the data identifier in a cache of an application on the second WEB terminal 460.
  • the first WEB terminal 420 clears the cache data corresponding to the data identifier of the database update instruction in the cache of the application program on the first WEB terminal 420 according to the database update instruction, and sends the clear cache.
  • the cache is deployed on a WEB terminal deployed by the application that invoked the cache.
  • the second WEB terminal 460 is further configured to send subscription information to the server 440; the subscription information includes a subscription type, and the subscription type is an application with the second WEB terminal 460. Program-related information for clearing cache events.
  • the second WEB terminal 460 acquires address information of the server, and transmits subscription information to the server according to the address information.
  • the first WEB terminal 420 is further configured to: in the second WEB terminal 460, clear the cache of the application on the second WEB terminal 460 according to the received clear cache event. After the cached data corresponding to the data identifier, the database update command is sent to the database terminal 480.
  • the method further includes:
  • the database terminal 480 is configured to execute the database update instruction on the database.
  • the present invention further provides a distributed cache synchronization apparatus corresponding to the distributed cache synchronization method, which is disposed on a WEB terminal, and includes:
  • the event sending broadcast module 520 is configured to: according to the database update instruction, clear the cache data corresponding to the data identifier of the database update instruction in the cache of the application of the WEB terminal, and send a clear cache event to the server, where the server
  • the clear cache event sent by the WEB terminal is broadcasted to the synchronous WEB terminal; the clear cache event sent by the WEB terminal includes the data identifier;
  • the event receiving and executing module 540 is configured to receive a clear cache event sent by the synchronous WEB terminal and broadcast by the server, and clear the cache of the application of the WEB terminal and the received clear cache event according to the received clear cache event.
  • the data in the ID identifies the corresponding cached data.
  • the own WEB terminal is a WEB terminal running the distributed cache synchronization device; the synchronous WEB terminal is another WEB terminal working with the own WEB terminal.
  • the event sending and broadcasting module 520 clears the cache data corresponding to the data identifier of the database update command in the cache of the application program of the WEB terminal according to the database update command, and sends a clear cache event to the server.
  • the server broadcasts the clear cache event sent by the WEB terminal to the synchronous WEB terminal; the clear cache event sent by the WEB terminal includes the data identifier; and the event receiving and executing module 540 receives the clear cache sent by the synchronous WEB terminal and broadcast by the server.
  • the event, and according to the received clear cache event clears the cache data corresponding to the data identifier in the received clear cache event in the cache of the application of the WEB terminal.
  • the cache synchronization of the application on each WEB terminal is implemented.
  • a new WEB terminal is added during maintenance, only the address information of the server needs to be configured in the application of the WEB terminal, so that the server and the WEB are configured.
  • the terminal can establish a communication link without modifying the configuration of other WEB terminal applications. Therefore, the above-described distributed cache synchronization device has low maintenance cost.
  • the cache is deployed on a WEB terminal deployed by the application that invoked the cache.
  • the method further includes:
  • the subscription information sending module 510 is configured to send subscription information to the server; the subscription information includes a subscription type, and the subscription type is information about a clear cache event related to an application of the WEB terminal.
  • the subscription information sending module 510 acquires the address information of the server, and according to the The address information sends subscription information to the server.
  • the method further includes:
  • the update instruction sending module 580 is configured to send the database update instruction to the database terminal, and the database terminal executes the database update instruction on the database.
  • the present invention further provides a distributed cache synchronization method corresponding to the distributed cache synchronization method, which is executed on a server, and includes:
  • the first WEB terminal After receiving the cached data corresponding to the data identifier of the database update instruction in the cache of the application on the first WEB terminal, the first WEB terminal sends a clear cache event sent by the first WEB terminal according to the database update instruction;
  • the cache event includes the data identifier;
  • S640 Broadcast the received clear buffer event to the second WEB terminal, and the second WEB terminal clears the cache of the application on the second WEB terminal and the data according to the received clear cache event. Identifies the corresponding cached data.
  • the distributed cache synchronization method after the first WEB terminal clears the cache data corresponding to the data identifier of the database update instruction in the cache of the application on the first WEB terminal according to the database update instruction, the clear cache sent
  • the clearing cache event includes the data identifier; the received clear cache event is broadcasted to the second WEB terminal, and the second WEB terminal clears the second WEB terminal according to the received clear cache event.
  • the cache synchronization of the application on each WEB terminal is implemented.
  • a new WEB terminal is added during maintenance, only the address information of the server needs to be configured in the application of the WEB terminal, so that the server and the WEB are configured.
  • the terminal can establish a communication link without modifying the configuration of other WEB terminal applications. Therefore, the above-described distributed cache synchronization method has low maintenance cost.
  • the cache is deployed on a WEB terminal deployed by the application that invoked the cache.
  • the received clear buffer event is broadcasted to a second WEB terminal, and the second WEB terminal clears the second WEB terminal according to the received clear cache event.
  • the method further includes:
  • S710 Receive subscription information sent by the second WEB terminal, where the subscription information includes a subscription type, where the subscription type is information about a clear cache event related to an application of the second WEB terminal.
  • the second WEB terminal After receiving the address information of the server, the second WEB terminal receives the subscription information according to the address information.
  • the present invention further provides a distributed cache synchronization apparatus corresponding to the distributed cache synchronization method, which is disposed on a server, and includes:
  • the event receiving module 820 is configured to receive, after the first WEB terminal clears the cache data corresponding to the data identifier of the database update instruction in the cache of the application on the first WEB terminal according to the database update instruction, and sends the clear cache.
  • the event forwarding module 840 is configured to broadcast the received clear cache event to the second WEB terminal, and the second WEB terminal clears the cache of the application on the second WEB terminal according to the received clear cache event. And cached data corresponding to the data identifier.
  • the distributed cache synchronization device receives the clear cache sent after the first WEB terminal clears the cache data corresponding to the data identifier of the database update command in the cache of the application on the first WEB terminal according to the database update command.
  • the clearing cache event includes the data identifier; the received clear cache event is broadcasted to the second WEB terminal, and the second WEB terminal clears the second WEB terminal according to the received clear cache event.
  • When a new WEB terminal is added during maintenance only the address information of the server needs to be configured in the application of the WEB terminal, so that the server and the WEB are configured.
  • the terminal can establish a communication link without modifying the configuration of other WEB terminal applications. Therefore, the above-described distributed cache synchronization device has low maintenance cost.
  • the cache is deployed on a WEB terminal deployed by the application that invoked the cache.
  • the method further includes:
  • the subscription receiving module 910 is configured to receive subscription information sent by the second WEB terminal, where the subscription information includes a subscription type, where the subscription type is information about a clear cache event related to an application of the second WEB terminal.
  • the subscription receiving module 910 receives the subscription information sent by the second WEB terminal according to the address information after acquiring the address information of the server.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

一种分布式缓存同步方法及系统,包括:第一WEB终端根据数据库更新指令清除所述第一WEB终端上的应用程序的缓存中、与所述数据库更新指令的数据标识对应的缓存数据,并发送清除缓存事件至服务器(S120);所述清除缓存事件包括所述数据标识;所述服务器将接收的所述清除缓存事件,广播至第二WEB终端(S140);所述第二WEB终端根据接收的所述清除缓存事件,清除所述第二WEB终端上的应用程序的缓存中、与所述数据标识对应的缓存数据(S160)。另提供一种运行于WEB终端的分布式缓存同步装置,以及一种运行于服务器的分布式缓存同步方法及装置。上述分布式缓存同步方法、装置及系统的维护成本低。

Description

分布式缓存同步方法、装置及系统 技术领域
本发明涉及计算机信息处理技术领域,尤其涉及一种分布式缓存同步方法、装置及系统。
背景技术
缓存在行业中,最先出现的是集中式缓存,就是多台WEB终端(或应用程序)通过网络连接一台缓存终端。当这台集中式缓存的终端无法承受和响应多台WEB(或应用程序)的高并发请求时,分布式缓存应运而生。分布式缓存就是多台缓存终端同时向多台WEB终端(或应用程序)提供缓存响应。
传统的分布式缓存,存在一个难题:各缓存终端之间的缓存同步通讯问题。多台缓存终端之间的通讯非常复杂,每新增一台缓存终端都要修改各台缓存终端的配置,告诉各缓存终端,有新成员进来。因此,传统的分布式缓存同步方法,维护成本高。
发明内容
基于此,有必要针对传统的分布式缓存同步方法维护成本高的问题,提供一种降低维护成本的分布式缓存同步方法、装置及系统。
一种分布式缓存同步方法,包括:
第一WEB终端根据数据库更新指令清除所述第一WEB终端上的应用程序的缓存中、与所述数据库更新指令的数据标识对应的缓存数据,并发送清除缓存事件至服务器;所述清除缓存事件包括所述数据标识;
所述服务器将接收的所述清除缓存事件,广播至第二WEB终端;
所述第二WEB终端根据接收的所述清除缓存事件,清除所述第二WEB终端上的应用程序的缓存中、与所述数据标识对应的缓存数据。
一种分布式缓存同步系统,包括:
第一WEB终端,用于根据数据库更新指令清除所述第一WEB终端上的应用程序的缓存中、与所述数据库更新指令的数据标识对应的缓存数据,并发送 清除缓存事件至服务器;所述清除缓存事件包括所述数据标识;
所述服务器,用于将接收的所述清除缓存事件,广播至第二WEB终端;
所述第二WEB终端,用于根据接收的所述清除缓存事件,清除所述第二WEB终端上的应用程序的缓存中、与所述数据标识对应的缓存数据。
一种分布式缓存同步装置,设置于WEB终端上,包括:
事件发送广播模块,用于根据数据库更新指令清除自身WEB终端的应用程序的缓存中、与所述数据库更新指令的数据标识对应的缓存数据,并发送清除缓存事件至服务器,由所述服务器将WEB终端发送的清除缓存事件,广播至同步WEB终端;WEB终端发送的清除缓存事件包括所述数据标识;
事件接收执行模块,用于接收由同步WEB终端发送、经服务器广播的清除缓存事件,并根据接收到的清除缓存事件,清除自身WEB终端的应用程序的缓存中、与接收到的清除缓存事件中的数据标识对应的缓存数据。
一种分布式缓存同步方法,运行于服务器上,包括:
接收第一WEB终端根据数据库更新指令清除所述第一WEB终端上的应用程序的缓存中、与所述数据库更新指令的数据标识对应的缓存数据之后,发送的清除缓存事件;所述清除缓存事件包括所述数据标识;
将接收的所述清除缓存事件广播至第二WEB终端,由第二WEB终端根据接收的所述清除缓存事件,清除所述第二WEB终端上的应用程序的缓存中、与所述数据标识对应的缓存数据。
一种分布式缓存同步装置,设置于服务器上,包括:
事件接收模块,用于接收第一WEB终端根据数据库更新指令清除所述第一WEB终端上的应用程序的缓存中、与所述数据库更新指令的数据标识对应的缓存数据之后,发送的清除缓存事件;所述清除缓存事件包括所述数据标识;
事件转发模块,用于将接收的所述清除缓存事件广播至第二WEB终端,由第二WEB终端根据接收的所述清除缓存事件,清除所述第二WEB终端上的应用程序的缓存中、与所述数据标识对应的缓存数据。
上述分布式缓存同步方法、装置及系统,可以实现各WEB终端上的应用程序的缓存同步;而在进行维护时,若有新的WEB终端加入,仅需要在该WEB 终端的应用程序中配置服务器的地址信息,以使服务器与该WEB终端建立通信链接即可,无需修改别的WEB终端应用程序的配置。因此,上述分布式缓存同步方法及装置的维护成本低。
附图说明
图1为一实施例的分布式缓存同步方法的流程图;
图2为另一实施例的分布式缓存同步方法的流程图;
图3为一个具体实施例的分布式缓存同步方法中服务器、WEB终端及数据库的关系图;
图4为一实施例的分布式缓存同步系统的结构图;
图5为一运行于WEB终端的实施例的分布式缓存同步装置的结构图;
图6为一运行于服务器的实施例的分布式缓存同步方法的流程图;
图7为另一运行于服务器的实施例的分布式缓存同步方法的流程图;
图8为一设置于服务器的实施例的分布式缓存同步装置的结构图;
图9为另一设置于服务器的实施例的分布式缓存同步装置的结构图。
具体实施方式
为了便于理解本发明,下面将参照相关附图对本发明进行更全面的描述。附图中给出了本发明的较佳的实施例。但是,本发明可以以许多不同的形式来实现,并不限于本文所描述的实施例。相反地,提供这些实施例的目的是使对本发明的公开内容的理解更加透彻全面。
除非另有定义,本文所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。本文中在本发明的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本发明。本文所使用的术语“或/和”包括一个或多个相关的所列项目的任意的和所有的组合。
如图1所示,为本发明一实施例的分布式缓存同步方法,包括:
S120:第一WEB终端根据数据库更新指令清除所述第一WEB终端上的应用程序的缓存中、与所述数据库更新指令的数据标识对应的缓存数据,并发送清除缓存事件至服务器。所述清除缓存事件包括所述数据标识。
第一WEB终端为发起数据库更新指令的应用程序所部署于的WEB终端。WEB终端为可以访问网页的智能终端。数据库更新指令用于指示修改数据库的数据或删除数据库的数据。当应用程序需要修改或删除数据库的数据时,第一WEB终端将生成一个数据库更新指令,第一WEB终端根据该数据库更新指令,清除第一WEB终端上的应用程序的缓存中、与该数据库更新指令的数据标识对应的缓存数据。
具体地,数据库更新指令包括更新动作及数据标识。更新动作为数据库更新指令需要完成的操作动作;数据标识为数据库更新指令的操作对象的标识,优选地,该标识为数据库更新指令的操作对象的唯一标识。可以理解的,数据库更新指令的操作对象是数据库中的数据。在应用程序对数据库中的数据进行读取时,首先需要将数据库数据读取到缓存中,形成缓存数据。该缓存数据与数据库数据具有相同的数据标识。如此,若该数据库数据并未被修改或删除,在后续读取数据库数据时,可以直接读取该数据库数据的数据标识对应的缓存中的缓存数据。
为了使分布式缓存中的其它缓存与第一WEB终端上设置的缓存同步,需要发送清除缓存事件至服务器,以进一步清除其它WEB终端上的缓存。可以理解地,清除缓存事件包括数据库更新指令中的数据标识。
S140:所述服务器将接收的所述清除缓存事件,广播至第二WEB终端。
服务器为协同各WEB终端工作的通讯服务器,可以是一个通讯服务端主机。服务终端将接收到的第一WEB终端发送的清除缓存事件,广播至第二WEB终端。第二WEB终端为配置有与第一WEB终端的应用程序操作的数据库相同的应用程序,并对应配置有相应的缓存,为保证数据的一致性,该缓存中的缓存数据需与第一WEB终端的缓存中的缓存数据保持同步。因此,在第一WEB终端根据数据库更新指令清除所述第一WEB终端上的应用程序的缓存中、与所述数据库更新指令的数据标识对应的缓存数据之后,需要将清除缓存事件通过服务器转发至第二WEB终端,以进行第二WEB终端中的缓存数据的清除,从而保证数据的一致性。
在一个具体实施例中,服务器接收到清除缓存事件后,先对该清除缓存事件进行存储,然后再广播至各第二WEB终端。如此,对清除缓存事件进行保存, 也可供后续查看或其它程序调用。
S160:所述第二WEB终端根据接收的所述清除缓存事件,清除所述第二WEB终端上的应用程序的缓存中、与所述数据标识对应的缓存数据。
第二WEB终端接收服务器广播的清除缓存事件,并根据接收的清除缓存事件,清除第二WEB终端上的缓存中、与数据标识对应的缓存数据。如此,实现各WEB终端上的应用程序的缓存同步。
上述分布式缓存同步方法,第一WEB终端根据数据库更新指令清除所述第一WEB终端上的应用程序的缓存中、与所述数据库更新指令的数据标识对应的缓存数据,并发送清除缓存事件至服务器;所述清除缓存事件包括所述数据标识;所述服务器将接收的所述清除缓存事件,广播至第二WEB终端;所述第二WEB终端根据接收的所述清除缓存事件,清除所述第二WEB终端上的应用程序的缓存中、与所述数据标识的缓存数据。如此,实现各WEB终端上的应用程序的缓存同步;而在进行维护时,若有新的WEB终端加入,仅需要在该WEB终端的应用程序中配置服务器的地址信息,以使服务器与该WEB终端建立通信链接即可,无需修改别的WEB终端应用程序的配置。因此,上述分布式缓存同步方法的维护成本低。
在其中一个实施例中,缓存部署于调用所述缓存的应用程序所部署的WEB终端上。如此,避免部署缓存的缓存终端与WEB终端之间,因WEB终端上的应用程序在访问缓存时,需要大量的数据传输而消耗大量网络资源。
更具体地,所述缓存为JVM缓存,从而使得缓存与应用程序部署在同一WEB终端上。
需要说明的是,传统的非JVM缓存或者未与调用缓存的应用程序部署在同一WEB终端上的缓存,在浏览器向WEB终端请求数据库数据时,浏览器向WEB终端发送请求后,WEB终端需要通过网络向缓存所在的终端发送请求,并通过网络接收该数据库数据对应的缓存数据。根据浏览器向WEB终端发送的请求进行处理之后,WEB终端再将该数据库数据返回至浏览器。其中,WEB终端在通过网络接收该数据库数据对应的缓存数据,以及将该数据库数据返回至浏览器时,需要消耗不低于浏览器请求的数据库数据的两倍大小的带宽资源。 而本方案,缓存部署于调用所述缓存的应用程序所部署的WEB终端上,具体可以为JVM缓存。在浏览器向WEB终端请求数据库数据时,浏览器向WEB终端发送请求后,WEB终端不需要通过网络向缓存所在的终端发送请求,也不需要通过网络接收该数据库数据对应的缓存数据。因此,可以节约网络资源。
请参阅图2,在其中一个实施例中,所述服务器将接收的所述清除缓存事件,广播至第二WEB终端的步骤之前,还包括步骤:
S210:所述第二WEB终端发送订阅信息至所述服务器;所述订阅信息包括订阅类型,所述订阅类型为与所述第二WEB终端的应用程序相关的清除缓存事件的信息。
订阅类型可具体为第二WEB终端的应用程序的标识,或二WEB终端的应用程序操作的数据库的标识。与所述第二WEB终端的应用程序相关的清除缓存事件,即为与第二WEB终端的应用程序的标识对应的应用程序的清除缓存事件,或与第二WEB终端的应用程序操作的数据库的标识对应的数据库的清除缓存事件。更具体地,订阅信息及应用程序相关的清除缓存事件的信息中均包括数据标识。
如此,使服务器知晓第二WEB终端上部署的应用程序所操作的数据库数据是否与第一WEB终端上部署的应用程序所操作的数据库数据相同,从而,使服务器在接收到第一WEB终端发送的清除缓存事件之后,根据该清除缓存时间及数据库更新指令可以确定广播的对象,即第二WEB终端。
进一步地,所述第二WEB终端获取所述服务器的地址信息,并根据所述地址信息发送订阅信息至所述服务器。
在本实施例中,当有新的WEB终端加入时,需要在该WEB终端的应用程序中配置服务器的地址信息,以使服务器与该WEB终端建立通信链接。如此,第二WEB终端可以根据所述地址信息发送订阅信息至所述服务器;服务器也可以通过建立的通信链接发送广播的清除缓存事件至第二WEB终端。
请继续参阅图2,在其中一个实施例中,所述第二WEB终端根据接收的所述清除缓存事件,清除所述第二WEB终端上的应用程序的缓存中、与所述数据 库更新指令的数据标识对应的缓存数据的步骤之后,还包括:
S270:所述第一WEB终端发送所述数据库更新指令至数据库终端。
如此,由数据库终端对数据库执行所述数据库更新指令。数据库终端为部署有数据库操作指令操作的数据库的终端。
进一步地,步骤S270之后,还包括:
S280:所述数据库终端对数据库执行所述数据库更新指令。
数据库终端可以根据数据库更新指令的更新动作及数据标识,对数据库中所述数据标识对应的数据完成所述更新动作,如此,执行数据库更新指令。从而,使缓存中的数据与数据库中的数据保持一致。
在一个具体实施例中,请参阅图3,服务器为通讯服务端主机,缓存为JVM(Java Virtual Machine,Java虚拟机)缓存,WEB终端为WEB主机。应用程序部署在WEB主机上,应用程序包括JVM缓存及客户端。
服务端主机的功能包括:
(1)接收WEB主机的客户端发送的订阅信息和接收WEB主机发送的清除缓存事件的功能。
(2)存储WEB主机的客户端的通信链接。
(3)存储WEB主机的客户端发送的清除缓存事件的功能。
(4)向WEB主机的客户端广播该WEB主机的订阅信息所涉及的清除缓存事件。
WEB主机的客户端的功能,包括:
(1)向通讯服务端主机订阅感兴趣事件的功能,即发送订阅信息的功能。
(2)向通讯服务端主机发送清除缓存事件的功能。
(3)接收通讯服务端主机广播的清除缓存事件的功能。
请参阅图4,本发明还提供一种与上述分布式缓存同步方法对应的分布式缓存同步系统,包括:
第一WEB终端420,用于根据数据库更新指令清除所述第一WEB终端420上的应用程序的缓存中、与所述数据库更新指令的数据标识对应的缓存数据, 并发送清除缓存事件至服务器440;所述清除缓存事件包括所述数据标识;
所述服务器440,用于将接收的所述清除缓存事件,广播至第二WEB终端460;
所述第二WEB终端460,用于根据接收的所述清除缓存事件,清除所述第二WEB终端460上的应用程序的缓存中、与所述数据标识对应的缓存数据。
上述分布式缓存同步系统,第一WEB终端420根据数据库更新指令清除所述第一WEB终端420上的应用程序的缓存中、与所述数据库更新指令的数据标识对应的缓存数据,并发送清除缓存事件至服务器440;所述清除缓存事件包括所述数据标识;所述服务器440将接收的所述清除缓存事件,广播至第二WEB终端460;所述第二WEB终端460根据接收的所述清除缓存事件,清除所述第二WEB终端460上的应用程序的缓存中、与所述数据标识对应的缓存数据。如此,实现各WEB终端上的应用程序的缓存同步;而在进行维护时,若有新的WEB终端加入,仅需要在该WEB终端的应用程序中配置服务器的地址信息,以使服务器与该WEB终端建立通信链接即可,无需修改别的WEB终端应用程序的配置。因此,上述分布式缓存同步系统的维护成本低。
在其中一个实施例中,缓存部署于调用所述缓存的应用程序所部署的WEB终端上。
在其中一个实施例中,所述第二WEB终端460,还用于发送订阅信息至所述服务器440;所述订阅信息包括订阅类型,所述订阅类型为与所述第二WEB终端460的应用程序相关的清除缓存事件的信息。
在其中一个实施例中,第二WEB终端460获取所述服务器的地址信息,并根据所述地址信息发送订阅信息至所述服务器。
在其中一个实施例中,所述第一WEB终端420,还用于在所述第二WEB终端460根据接收的所述清除缓存事件,清除所述第二WEB终端460上的应用程序的缓存中、与所述数据标识对应的缓存数据之后,发送所述数据库更新指令至数据库终端480。
在其中一个实施例中,还包括:
数据库终端480,用于对数据库执行所述数据库更新指令。
请参阅图5,本发明还提供一种设置于WEB终端的、与上述分布式缓存同步方法对应的分布式缓存同步装置,包括:
事件发送广播模块520,用于根据数据库更新指令清除自身WEB终端的应用程序的缓存中、与所述数据库更新指令的数据标识对应的缓存数据,并发送清除缓存事件至服务器,由所述服务器将WEB终端发送的清除缓存事件,广播至同步WEB终端;WEB终端发送的清除缓存事件包括所述数据标识;
事件接收执行模块540,用于接收由同步WEB终端发送、经服务器广播的清除缓存事件,并根据接收到的清除缓存事件,清除自身WEB终端的应用程序的缓存中、与接收到的清除缓存事件中的数据标识对应的缓存数据。
这里的自身WEB终端,即为运行上述分布式缓存同步装置的WEB终端;同步WEB终端,为与该自身WEB终端配合工作的其它WEB终端。
上述分布式缓存同步装置,事件发送广播模块520根据数据库更新指令清除自身WEB终端的应用程序的缓存中、与所述数据库更新指令的数据标识对应的缓存数据,并发送清除缓存事件至服务器,由所述服务器将WEB终端发送的清除缓存事件,广播至同步WEB终端;WEB终端发送的清除缓存事件包括所述数据标识;事件接收执行模块540,接收由同步WEB终端发送、经服务器广播的清除缓存事件,并根据接收到的清除缓存事件,清除自身WEB终端的应用程序的缓存中、与接收到的清除缓存事件中的数据标识对应的缓存数据。如此,实现各WEB终端上的应用程序的缓存同步;而在进行维护时,若有新的WEB终端加入,仅需要在该WEB终端的应用程序中配置服务器的地址信息,以使服务器与该WEB终端建立通信链接即可,无需修改别的WEB终端应用程序的配置。因此,上述分布式缓存同步装置的维护成本低。
在其中一个实施例中,缓存部署于调用所述缓存的应用程序所部署的WEB终端上。
在其中一个实施例中,还包括:
订阅信息发送模块510,用于发送订阅信息至所述服务器;所述订阅信息包括订阅类型,所述订阅类型为与自身WEB终端的应用程序相关的清除缓存事件的信息。
进一步地,订阅信息发送模块510获取所述服务器的地址信息,并根据所 述地址信息发送订阅信息至所述服务器。
在其中一个实施例中,还包括:
更新指令发送模块580,用于发送所述数据库更新指令至数据库终端,由所述数据库终端对数据库执行所述数据库更新指令。
请参阅图6,本发明还提供一种运行于服务器、与上述分布式缓存同步方法对应的分布式缓存同步方法,包括:
S620:接收第一WEB终端根据数据库更新指令清除所述第一WEB终端上的应用程序的缓存中、与所述数据库更新指令的数据标识对应的缓存数据之后,发送的清除缓存事件;所述清除缓存事件包括所述数据标识;
S640:将接收的所述清除缓存事件广播至第二WEB终端,由第二WEB终端根据接收的所述清除缓存事件,清除所述第二WEB终端上的应用程序的缓存中、与所述数据标识对应的缓存数据。
上述分布式缓存同步方法,接收第一WEB终端根据数据库更新指令清除所述第一WEB终端上的应用程序的缓存中、与所述数据库更新指令的数据标识对应的缓存数据之后,发送的清除缓存事件;所述清除缓存事件包括所述数据标识;将接收的所述清除缓存事件广播至第二WEB终端,由第二WEB终端根据接收的所述清除缓存事件,清除所述第二WEB终端上的应用程序的缓存中、与所述数据标识对应的缓存数据。如此,实现各WEB终端上的应用程序的缓存同步;而在进行维护时,若有新的WEB终端加入,仅需要在该WEB终端的应用程序中配置服务器的地址信息,以使服务器与该WEB终端建立通信链接即可,无需修改别的WEB终端应用程序的配置。因此,上述分布式缓存同步方法的维护成本低。
在其中一个实施例中,缓存部署于调用所述缓存的应用程序所部署的WEB终端上。
请参阅图7,在其中一个实施例中,将接收的所述清除缓存事件广播至第二WEB终端,由第二WEB终端根据接收的所述清除缓存事件,清除所述第二WEB终端上的应用程序的缓存中、与所述数据库更新指令的数据标识对应的缓存数据的步骤之前,还包括:
S710:接收第二WEB终端发送的订阅信息;所述订阅信息包括订阅类型,所述订阅类型为与所述第二WEB终端的应用程序相关的清除缓存事件的信息。
具体地,接收第二WEB终端在获取所述服务器的地址信息后,根据所述地址信息发送的订阅信息。
请参阅图8,本发明还提供一种设置于服务器、与上述分布式缓存同步方法对应的分布式缓存同步装置,包括:
事件接收模块820,用于接收第一WEB终端根据数据库更新指令清除所述第一WEB终端上的应用程序的缓存中、与所述数据库更新指令的数据标识对应的缓存数据之后,发送的清除缓存事件;所述清除缓存事件包括所述数据标识;
事件转发模块840,用于将接收的所述清除缓存事件广播至第二WEB终端,由第二WEB终端根据接收的所述清除缓存事件,清除所述第二WEB终端上的应用程序的缓存中、与所述数据标识对应的缓存数据。
上述分布式缓存同步装置,接收第一WEB终端根据数据库更新指令清除所述第一WEB终端上的应用程序的缓存中、与所述数据库更新指令的数据标识对应的缓存数据之后,发送的清除缓存事件;所述清除缓存事件包括所述数据标识;将接收的所述清除缓存事件广播至第二WEB终端,由第二WEB终端根据接收的所述清除缓存事件,清除所述第二WEB终端上的应用程序的缓存中、与所述数据标识对应的缓存数据。如此,实现各WEB终端上的应用程序的缓存同步;而在进行维护时,若有新的WEB终端加入,仅需要在该WEB终端的应用程序中配置服务器的地址信息,以使服务器与该WEB终端建立通信链接即可,无需修改别的WEB终端应用程序的配置。因此,上述分布式缓存同步装置的维护成本低。
在其中一个实施例中,缓存部署于调用所述缓存的应用程序所部署的WEB终端上。
请参阅图9,在其中一个实施例中,还包括:
订阅接收模块910,用于接收第二WEB终端发送的订阅信息;所述订阅信息包括订阅类型,所述订阅类型为与所述第二WEB终端的应用程序相关的清除缓存事件的信息。
具体地,订阅接收模块910接收第二WEB终端在获取所述服务器的地址信息后,根据所述地址信息发送的订阅信息。
以上实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出多个变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。

Claims (10)

  1. 一种分布式缓存同步方法,其特征在于,包括:
    第一WEB终端根据数据库更新指令清除所述第一WEB终端上的应用程序的缓存中、与所述数据库更新指令的数据标识对应的缓存数据,并发送清除缓存事件至服务器;所述清除缓存事件包括所述数据标识;
    所述服务器将接收的所述清除缓存事件,广播至第二WEB终端;
    所述第二WEB终端根据接收的所述清除缓存事件,清除所述第二WEB终端上的应用程序的缓存中、与所述数据标识对应的缓存数据。
  2. 根据权利要求1所述的分布式缓存同步方法,其特征在于,缓存部署于调用所述缓存的应用程序所部署的WEB终端上。
  3. 根据权利要求1所述的分布式缓存同步方法,其特征在于,所述服务器将接收的所述清除缓存事件,广播至第二WEB终端的步骤之前,还包括:
    所述第二WEB终端发送订阅信息至所述服务器;所述订阅信息包括订阅类型,所述订阅类型为与所述第二WEB终端的应用程序相关的清除缓存事件的信息。
  4. 根据权利要求3所述的分布式缓存同步方法,其特征在于,所述第二WEB终端获取所述服务器的地址信息,并根据所述地址信息发送订阅信息至所述服务器。
  5. 根据权利要求1所述的分布式缓存同步方法,其特征在于,所述第二WEB终端根据接收的所述清除缓存事件,清除所述第二WEB终端上的应用程序的缓存中、与所述数据库更新指令的数据标识对应的缓存数据的步骤之后,还包括:
    所述第一WEB终端发送所述数据库更新指令至数据库终端;
    所述数据库终端对数据库执行所述数据库更新指令。
  6. 一种分布式缓存同步系统,其特征在于,包括:
    第一WEB终端,用于根据数据库更新指令清除所述第一WEB终端上的应用程序的缓存中、与所述数据库更新指令的数据标识对应的缓存数据,并发送清除缓存事件至服务器;所述清除缓存事件包括所述数据标识;
    所述服务器,用于将接收的所述清除缓存事件,广播至第二WEB终端;
    所述第二WEB终端,用于根据接收的所述清除缓存事件,清除所述第二WEB终端上的应用程序的缓存中、与所述数据标识对应的缓存数据。
  7. 一种分布式缓存同步装置,其特征在于,包括:
    事件发送广播模块,用于根据数据库更新指令清除自身WEB终端的应用程序的缓存中、与所述数据库更新指令的数据标识对应的缓存数据,并发送清除缓存事件至服务器,由所述服务器将WEB终端发送的清除缓存事件,广播至同步WEB终端;WEB终端发送的清除缓存事件包括所述数据标识;
    事件接收执行模块,用于接收由同步WEB终端发送、经服务器广播的清除缓存事件,并根据接收到的清除缓存事件,清除自身WEB终端的应用程序的缓存中、与接收到的清除缓存事件中的数据标识对应的缓存数据。
  8. 根据权利要求7所述的分布式缓存同步装置,其特征在于,还包括:
    订阅信息发送模块,用于发送订阅信息至所述服务器;所述订阅信息包括订阅类型,所述订阅类型为与自身WEB终端的应用程序相关的清除缓存事件的信息。
  9. 一种分布式缓存同步方法,其特征在于,包括:
    接收第一WEB终端根据数据库更新指令清除所述第一WEB终端上的应用程序的缓存中、与所述数据库更新指令的数据标识对应的缓存数据之后,发送的清除缓存事件;所述清除缓存事件包括所述数据标识;
    将接收的所述清除缓存事件广播至第二WEB终端,由第二WEB终端根据接收的所述清除缓存事件,清除所述第二WEB终端上的应用程序的缓存中、与所述数据标识对应的缓存数据。
  10. 一种分布式缓存同步装置,其特征在于,包括:
    事件接收模块,用于接收第一WEB终端根据数据库更新指令清除所述第一WEB终端上的应用程序的缓存中、与所述数据库更新指令的数据标识对应的缓存数据之后,发送的清除缓存事件;所述清除缓存事件包括所述数据标识;
    事件转发模块,用于将接收的所述清除缓存事件广播至第二WEB终端,由第二WEB终端根据接收的所述清除缓存事件,清除所述第二WEB终端上的应用程序的缓存中、与所述数据标识对应的缓存数据。
PCT/CN2016/100564 2016-08-31 2016-09-28 分布式缓存同步方法、装置及系统 WO2018040168A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610793659.6 2016-08-31
CN201610793659.6A CN106230978A (zh) 2016-08-31 2016-08-31 分布式缓存同步方法、装置及系统

Publications (1)

Publication Number Publication Date
WO2018040168A1 true WO2018040168A1 (zh) 2018-03-08

Family

ID=58073880

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/100564 WO2018040168A1 (zh) 2016-08-31 2016-09-28 分布式缓存同步方法、装置及系统

Country Status (2)

Country Link
CN (1) CN106230978A (zh)
WO (1) WO2018040168A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582730A (zh) * 2018-10-11 2019-04-05 阿里巴巴集团控股有限公司 缓存同步方法、装置、电子设备及计算机可读存储介质
WO2023035892A1 (zh) * 2021-09-09 2023-03-16 青岛海尔洗衣机有限公司 数据处理方法、装置、服务器及存储介质

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408224A (zh) * 2018-09-17 2019-03-01 华为技术有限公司 数据同步方法、分布式系统与应用节点
CN109582732A (zh) * 2018-10-25 2019-04-05 东软集团股份有限公司 应用间缓存同步的方法、装置、存储介质及电子设备
CN109710427A (zh) * 2018-12-26 2019-05-03 苏州沁游网络科技有限公司 一种信息处理方法、系统及服务器
CN113542340A (zh) * 2021-01-07 2021-10-22 腾讯科技(深圳)有限公司 多终端配置方法、终端和计算机可读存储介质
CN116401317B (zh) * 2023-04-19 2023-11-17 中国环球租赁有限公司 一种缓存数据同步方法、装置、电子设备及介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103338243A (zh) * 2013-06-20 2013-10-02 新浪网技术(中国)有限公司 Web节点的缓存数据更新方法和系统
CN103747091A (zh) * 2014-01-16 2014-04-23 电信科学技术第一研究所 一种嵌入式设备的分布式数据同步系统及方法
CN103929488A (zh) * 2014-04-25 2014-07-16 西安理邦科学仪器有限公司 分布式中央监护系统数据同步的方法及装置
US9332160B1 (en) * 2015-09-09 2016-05-03 Samuel Chenillo Method of synchronizing audio-visual assets

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103338243A (zh) * 2013-06-20 2013-10-02 新浪网技术(中国)有限公司 Web节点的缓存数据更新方法和系统
CN103747091A (zh) * 2014-01-16 2014-04-23 电信科学技术第一研究所 一种嵌入式设备的分布式数据同步系统及方法
CN103929488A (zh) * 2014-04-25 2014-07-16 西安理邦科学仪器有限公司 分布式中央监护系统数据同步的方法及装置
US9332160B1 (en) * 2015-09-09 2016-05-03 Samuel Chenillo Method of synchronizing audio-visual assets

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582730A (zh) * 2018-10-11 2019-04-05 阿里巴巴集团控股有限公司 缓存同步方法、装置、电子设备及计算机可读存储介质
WO2023035892A1 (zh) * 2021-09-09 2023-03-16 青岛海尔洗衣机有限公司 数据处理方法、装置、服务器及存储介质

Also Published As

Publication number Publication date
CN106230978A (zh) 2016-12-14

Similar Documents

Publication Publication Date Title
WO2018040168A1 (zh) 分布式缓存同步方法、装置及系统
CN107943594B (zh) 数据获取方法和装置
US11172023B2 (en) Data synchronization method and system
US10698717B2 (en) Accelerator virtualization method and apparatus, and centralized resource manager
WO2018054195A1 (zh) 一种资源分配的方法及基站
JP4792505B2 (ja) データの同期処理方法、クライアント、サーバ、及びクライアントとサーバとのデータ同期システム
CN108200219B (zh) 数据同步方法、装置、服务器及存储介质
US20080077690A1 (en) System, method, and program for reducing server load
KR20160030381A (ko) 웹 페이지 액세스 방법, 장치, 라우터, 프로그램 및 기록매체
WO2015035816A1 (zh) 一种nginx服务器配置维护方法及系统
WO2013097525A1 (zh) 传输网络视频的方法及系统
CN114070822B (zh) 一种Kubernetes Overlay IP地址管理方法
US11500666B2 (en) Container isolation method and apparatus for netlink resource
CN112087390A (zh) 一种网络路由方法及装置
CN100576906C (zh) 一种网络内容传输控制系统和方法
CN110764688A (zh) 对数据进行处理的方法和装置
CN113485821A (zh) 一种高可靠视频会议系统及其控制方法、存储介质
WO2021078208A1 (zh) 信息获取方法、云化机顶盒系统、实体机顶盒及存储介质
CN107566881B (zh) 一种vr设备控制方法、装置和系统
CN113259408A (zh) 数据传输方法和系统
KR20140049449A (ko) 홈 네트워크에서의 애플리케이션 이동성 관리 장치
CN112187916B (zh) 一种跨系统的数据同步方法与装置
CN105162874A (zh) 一种扩展移动终端运算能力的系统
WO2022121492A1 (zh) 文件传输方法、装置、计算机设备及存储介质
CN111083182B (zh) 分布式物联网设备管理方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16914731

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16914731

Country of ref document: EP

Kind code of ref document: A1