Embodiments of the subject matter described herein relate generally to methods and systems for caching data. More particularly, embodiments of the subject matter relate to methods and systems for caching data based on a dynamic schedule.
In services that provide views of certain resources from other services, information is polled from the other services. When polling the information upon request, the process may be slow and expensive. In order to resolve this issue, a data cache may be established to poll and store data from the other services. The polling and storing is performed as a background job. In some instances, cache updates may be performed for groups of data. However, users may have to wait for the entire cache cycle for the group to finish before receiving an updated view of a specific item within the group's cache data.
Accordingly, it is desirable to provide a caching process that minimizes this wait issue. Furthermore, other desirable features and characteristics will become apparent from the subsequent detailed description and the appended claims, taken in conjunction with the accompanying drawings and the foregoing technical field and background.
In one embodiment, a computer-implemented method executable by a server system to store data in a data cache is provided. The method includes: receiving, by a processor, data from a first resource; storing, by the processor, the data in a data cache; determining, by the processor, a type of the data, and an access frequency of the data; determining, by the processor, a dynamic schedule based on the type of the data, and the access frequency of the data; and refreshing the data cache with new data from the first resource based on the dynamic schedule.
A more complete understanding of the subject matter may be derived by referring to the detailed description and claims when considered in conjunction with the following figures, wherein like reference numbers refer to similar elements throughout the figures.
The following detailed description is merely exemplary in nature and is not intended to limit the disclosure the application and uses of the disclosure. Furthermore, there is no intention to be bound by any expressed or implied theory presented in the preceding technical field, background, brief summary or the following detailed description. It should be understood that throughout the drawings, corresponding reference numerals indicate like or corresponding parts and features.
The exemplary embodiments presented here relate to a caching system and related techniques, methodologies, procedures, and technology for data caching. As can be appreciated, the described subject matter can be implemented in the context of various environments. For exemplary purposes, the subject matter is described in the context of a computer-implemented environment relating to, for example, software products for a software-based system, a database system, a multi-tenant environment, or the like. Moreover, the described subject matter can be implemented in connection with two or more separate and distinct computer-implemented systems that cooperate and communicate with one another.
In accordance with exemplary embodiments described below, a computer based system is provided, such as a multi-tenant system that is used to provide a service to a plurality of different tenants, a plurality of different end users, and/or a plurality of different tenant applications. In various embodiments, the service provides aggregated views of certain other services information. The other services information is polled from resources associated with the other services. The resources may be a part of the multi-tenant system and/or a separate from the multi-tenant system. The caching system of the present disclosure generally provides a data cache that selectively polls and stores the other services information based on a dynamic schedule. The caching system selectively polls and stores the other services information such that wait times for results is minimized.
Turning now to
The server 102 generally includes any sort of conventional processing hardware 114, such as a processor 116, memory 118, input/output features 120 and the like, that are managed and accessed by a suitable operating system 122. The processor 116 may be implemented using one or more of microprocessors, microcontrollers, processing cores and/or other computing resources spread across any number of distributed or integrated systems, including any number of “cloud-based” or other virtual systems. The memory 118 represents any non-transitory short or long term storage capable of storing programming instructions for execution on the processor 116, including any sort of random access memory (RAM), read only memory (ROM), flash memory, magnetic or optical mass storage, and/or the like. The input/output features 120 represent conventional interfaces to networks (e.g., to a network 112, or any other local area, wide area or other network), mass storage, display devices, data entry devices and/or the like. As can be appreciated, the server 102 may be implemented using a cluster of actual and/or virtual servers operating in conjunction with each other, typically in association with conventional network communications, cluster management, load balancing and other features as appropriate.
The server 102 typically includes or cooperates with some type of computer-readable media 124, where a tangible computer-readable medium has computer-executable instructions stored thereon. The computer-executable instructions, when read and executed by the server 102, cause the server 102 to perform certain tasks, operations, functions, and processes described in more detail herein. In this regard, the memory 118 may represent one suitable implementation of such computer-readable media. Alternatively or additionally, the server 102 could receive and cooperate with computer-readable media (not separately shown) that is realized as a portable or mobile component or platform, e.g., a portable hard drive, a USB flash drive, an optical disc, or the like.
The data source 104 is any sort of repository or other data storage system capable of storing and managing the data 106 associated with any number of tenants. The data source 104 may be implemented using any type of conventional database server hardware. In various embodiments, the data source 104 shares processing hardware 114 with the server 102. In other embodiments, the data source 104 is implemented using separate physical and/or virtual database server hardware that communicates with the server 102 to perform the various functions described herein.
In various embodiments, the computer-readable media 124 associated with the server 102 includes at least one web application 126 and a data caching module 128 associated with the web application 126 in accordance with the present disclosure. The web application 126 includes computer-executable instructions that, when executed by the processor 116 of the server 102, allows the users to access data from resources such as the server 102, the data source 104, or from other virtual machines 108, 110 through, for example, one or more web pages.
The data caching module 128 includes computer-executable instructions that, when executed by the processor 116 of the server 102, selectively polls and stores data from the various resources in a data cache 130. In operation, the data caching module 128 generates one or more requests to cache data based on a dynamic schedule. The data caching module 128 determines the dynamic schedule based on one or more of a type or class of the data, an access frequency of the data, and an age of the data.
Referring now to
The data cache 202 stores data from the various resources. The data may be stored for a particular user and/or amongst multiple users of the system 100. The schedule datastore 204 stores a dynamic schedule 300 (
The initialization module 206 receives as input a request for new data 214. The request for new data 214 is a request for data from a resource or resources The request for new data 214 may be generated, for example, based on a user's interaction with a web page of the web application. The requested data is new data to be cached and may include files or any other type of information from a resource or resources that are associated with a particular service. In response to the request for new data 214, the initialization module 206 receives the new data 216 from the resource or resources.
The initialization module 206 determines a type or class (hereinafter referred to as the type) of the new data 216 based on the request for data 214 or the new data 216 itself. In various embodiments, the type may be determined based on the resource or resources the data 216 is from, the type of the data 216, and/or the behavior of the data 216.
The initialization module 206 then generates and stores schedule data 218 in the dynamic schedule 300 of schedule datastore 204 based on the determined type. The schedule data 218 is stored in the list of groups 304 to be refreshed. In various embodiments, as shown in
The initialization module 206 stores the group identifier 306, the group item identifier 308, the refresh time 310, and an identifier 312 of the resource or resources from which the data 216 is from in the dynamic schedule 300 of the schedule datastore 204.
As can be appreciated, as additional data is received from the same or additional resources, the initialization module 206 (
Once the schedule data 218 has been stored in the schedule datastore 204, the initialization module 206 stores the data 216 in the data cache 202 based on, for example, the group identifier 306 (
The first schedule update module 208 receives as input a request for cached data 220, and a current time 222. Based on the request for cached data 220, the first schedule update module 208 selectively updates the list of items 302 to be refreshed in the dynamic schedule 300 with schedule data 224. For example, if the request for cached data 220 is a frequent request for the same data (e.g., based on a frequency of the request for a particular user or amongst multiple users), the first schedule update module 208 generates and stores schedule data 224. The schedule data 224 is added to the list of items 302 to be refreshed. For example, as shown in
In various embodiments, the list of items 302 can include multiple tiers 318, 320, each tier 318, 320 being associated with a refresh time or a range of refresh times. In such embodiments, the first schedule update module 208 adds the schedule data 224 including the group item identifier 308 and the identifiers 312 of the resource or resources, the new refresh time 314, and the time accessed 316 to a first tier 318 of the list of items 302. As or after the schedule data 224 is being stored in the schedule datastore 204, the cached data 226 is retrieved from the data cache 202 and presented to the requestor.
The second schedule update module 210 receives as input a current time 228. The second schedule update module 210 evaluates each item in the list of items 302 and selectively moves or removes the items from the list of items 302 (via schedule data 230) based on the current time 228 and the time accessed 316 for each item. For example, the second schedule update module 210 computes an age for each item in the list of items 302 based on, for example, a difference between the current time 228 and the time last accessed 316. The second schedule update module 210 moves or removes the item from the list of items 302 when the computed age is greater than a threshold age according to the type of the data. In various embodiments, when the list of items 302 includes multiple tiers 318, 320, the item may be moved to the next tier (e.g., tier 2, or other tier) when the age is greater than the threshold age; and may be removed from the list of items 302 when the age is greater than a threshold age of a last tier (e.g., tier 2).
The data refresh module 212 receives as input a current time 232 and schedule data 234 from the dynamic schedule 300. The data refresh module 212 compares the current time 232 with the refresh times in the schedule data 234 and generates refresh requests 235 based on the comparison. In response to the refresh requests 235, the data refresh module 212 receives data 236 from the resource(s). The received data 238 is stored in the data cache 202 according to, for example, the group identifier 306 and the item identifier 308.
Turning now to
With reference to
With reference to
With reference to
The method 600 continues until all of the items in the item list and for each tier have been evaluated. Thereafter, the method 600 may end at 690.
With reference to
Once the refresh times for all of the groups in the list of refresh groups have been evaluated at 730, each item in the list of refresh items is evaluated at 760-780. For example, for each item in the list of refresh items in the dynamic schedule at 760, the refresh time is evaluated at 770. If the refresh time for the item is equal to the current time (e.g., or an increment of the refresh time) at 770, then the data in the data cache is refreshed from the resource for the particular item at 780. If however, the refresh time is not equal to the current time at 770, the method 700 continues with evaluating the refresh time for the next item at 760.
Once the refresh times for all of the items in the list of refresh items have been evaluated at 760, only then the method 700 may end at 790.
The foregoing detailed description is merely illustrative in nature and is not intended to limit the embodiments of the subject matter or the application and uses of such embodiments. As used herein, the word “exemplary” means “serving as an example, instance, or illustration.” Any implementation described herein as exemplary is not necessarily to be construed as preferred or advantageous over other implementations. Furthermore, there is no intention to be bound by any expressed or implied theory presented in the preceding technical field, background, or detailed description.
Techniques and technologies may be described herein in terms of functional and/or logical block components, and with reference to symbolic representations of operations, processing tasks, and functions that may be performed by various computing components or devices. Such operations, tasks, and functions are sometimes referred to as being computer-executed, computerized, software-implemented, or computer-implemented. In practice, one or more processor devices can carry out the described operations, tasks, and functions by manipulating electrical signals representing data bits at memory locations in the system memory, as well as other processing of signals. The memory locations where data bits are maintained are physical locations that have particular electrical, magnetic, optical, or organic properties corresponding to the data bits. It should be appreciated that the various block components shown in the figures may be realized by any number of hardware, software, and/or firmware components configured to perform the specified functions. For example, an embodiment of a system or a component may employ various integrated circuit components, e.g., memory elements, digital signal processing elements, logic elements, look-up tables, or the like, which may carry out a variety of functions under the control of one or more microprocessors or other control devices.
When implemented in software or firmware, various elements of the systems described herein are essentially the code segments or instructions that perform the various tasks. The program or code segments can be stored in a processor-readable medium or transmitted by a computer data signal embodied in a carrier wave over a transmission medium or communication path. The “processor-readable medium” or “machine-readable medium” may include any medium that can store information. Examples of the processor-readable medium include an electronic circuit, a semiconductor memory device, a ROM, a flash memory, an erasable ROM (EROM), a floppy diskette, a CD-ROM, an optical disk, a hard disk, a fiber optic medium, a radio frequency (RF) link, or the like. The computer data signal may include any signal that can propagate over a transmission medium such as electronic network channels, optical fibers, air, electromagnetic paths, or RF links. The code segments may be downloaded via computer networks such as the Internet, an intranet, a LAN, or the like.
While at least one exemplary embodiment has been presented in the foregoing detailed description, it should be appreciated that a vast number of variations exist. It should also be appreciated that the exemplary embodiment or embodiments described herein are not intended to limit the scope, applicability, or configuration of the claimed subject matter in any way. Rather, the foregoing detailed description will provide those skilled in the art with a convenient road map for implementing the described embodiment or embodiments. It should be understood that various changes can be made in the function and arrangement of elements without departing from the scope defined by the claims, which includes known equivalents and foreseeable equivalents at the time of filing this patent application.
This application claims the benefit of U.S. provisional patent application Ser. No. 62/040,523, filed Aug. 22, 2014, which is hereby incorporated by reference in its entirety.
Number | Name | Date | Kind |
---|---|---|---|
5577188 | Zhu | Nov 1996 | A |
5608872 | Schwartz et al. | Mar 1997 | A |
5649104 | Carleton et al. | Jul 1997 | A |
5715450 | Ambrose et al. | Feb 1998 | A |
5761419 | Schwartz et al. | Jun 1998 | A |
5819038 | Carleton et al. | Oct 1998 | A |
5821937 | Tonelli et al. | Oct 1998 | A |
5831610 | Tonelli et al. | Nov 1998 | A |
5873096 | Lim et al. | Feb 1999 | A |
5918159 | Fomukong et al. | Jun 1999 | A |
5963953 | Cram et al. | Oct 1999 | A |
6092083 | Brodersen et al. | Jul 2000 | A |
6161149 | Achacoso et al. | Dec 2000 | A |
6169534 | Raffel et al. | Jan 2001 | B1 |
6178425 | Brodersen et al. | Jan 2001 | B1 |
6189011 | Lim et al. | Feb 2001 | B1 |
6216135 | Brodersen et al. | Apr 2001 | B1 |
6233617 | Rothwein et al. | May 2001 | B1 |
6266669 | Brodersen et al. | Jul 2001 | B1 |
6295530 | Ritchie et al. | Sep 2001 | B1 |
6324568 | Diec et al. | Nov 2001 | B1 |
6324693 | Brodersen et al. | Nov 2001 | B1 |
6336137 | Lee et al. | Jan 2002 | B1 |
D454139 | Feldcamp et al. | Mar 2002 | S |
6367077 | Brodersen et al. | Apr 2002 | B1 |
6393605 | Loomans | May 2002 | B1 |
6405220 | Brodersen et al. | Jun 2002 | B1 |
6434550 | Warner et al. | Aug 2002 | B1 |
6446089 | Brodersen et al. | Sep 2002 | B1 |
6535909 | Rust | Mar 2003 | B1 |
6549908 | Loomans | Apr 2003 | B1 |
6553563 | Ambrose et al. | Apr 2003 | B2 |
6560461 | Fomukong et al. | May 2003 | B1 |
6574635 | Stauber et al. | Jun 2003 | B2 |
6577726 | Huang et al. | Jun 2003 | B1 |
6601087 | Zhu et al. | Jul 2003 | B1 |
6604117 | Lim et al. | Aug 2003 | B2 |
6604128 | Diec | Aug 2003 | B2 |
6609150 | Lee et al. | Aug 2003 | B2 |
6621834 | Scherpbier et al. | Sep 2003 | B1 |
6654032 | Zhu et al. | Nov 2003 | B1 |
6665648 | Brodersen et al. | Dec 2003 | B2 |
6665655 | Warner et al. | Dec 2003 | B1 |
6684438 | Brodersen et al. | Feb 2004 | B2 |
6711565 | Subramaniam et al. | Mar 2004 | B1 |
6724399 | Katchour et al. | Apr 2004 | B1 |
6728702 | Subramaniam et al. | Apr 2004 | B1 |
6728960 | Loomans et al. | Apr 2004 | B1 |
6732095 | Warshavsky et al. | May 2004 | B1 |
6732100 | Brodersen et al. | May 2004 | B1 |
6732111 | Brodersen et al. | May 2004 | B2 |
6754681 | Brodersen et al. | Jun 2004 | B2 |
6763351 | Subramaniam et al. | Jul 2004 | B1 |
6763501 | Zhu et al. | Jul 2004 | B1 |
6768904 | Kim | Jul 2004 | B2 |
6772229 | Achacoso et al. | Aug 2004 | B1 |
6782383 | Subramaniam et al. | Aug 2004 | B2 |
6804330 | Jones et al. | Oct 2004 | B1 |
6826565 | Ritchie et al. | Nov 2004 | B2 |
6826582 | Chatterjee et al. | Nov 2004 | B1 |
6826745 | Coker | Nov 2004 | B2 |
6829655 | Huang et al. | Dec 2004 | B1 |
6842748 | Warner et al. | Jan 2005 | B1 |
6850895 | Brodersen et al. | Feb 2005 | B2 |
6850949 | Warner et al. | Feb 2005 | B2 |
7062502 | Kesler | Jun 2006 | B1 |
7069231 | Cinarkaya et al. | Jun 2006 | B1 |
7181758 | Chan | Feb 2007 | B1 |
7289976 | Kihneman et al. | Oct 2007 | B2 |
7340411 | Cook | Mar 2008 | B2 |
7356482 | Frankland et al. | Apr 2008 | B2 |
7401094 | Kesler | Jul 2008 | B1 |
7412455 | Dillon | Aug 2008 | B2 |
7508789 | Chan | Mar 2009 | B2 |
7620655 | Larsson et al. | Nov 2009 | B2 |
7698160 | Beaven et al. | Apr 2010 | B2 |
7779475 | Jakobson et al. | Aug 2010 | B2 |
8014943 | Jakobson | Sep 2011 | B2 |
8015495 | Achacoso et al. | Sep 2011 | B2 |
8032297 | Jakobson | Oct 2011 | B2 |
8082301 | Ahlgren et al. | Dec 2011 | B2 |
8095413 | Beaven | Jan 2012 | B1 |
8095594 | Beaven et al. | Jan 2012 | B2 |
8209308 | Rueben et al. | Jun 2012 | B2 |
8275836 | Beaven et al. | Sep 2012 | B2 |
8457545 | Chan | Jun 2013 | B2 |
8484111 | Frankland et al. | Jul 2013 | B2 |
8490025 | Jakobson et al. | Jul 2013 | B2 |
8504945 | Jakobson et al. | Aug 2013 | B2 |
8510045 | Rueben et al. | Aug 2013 | B2 |
8510664 | Rueben et al. | Aug 2013 | B2 |
8566301 | Rueben et al. | Oct 2013 | B2 |
8646103 | Jakobson et al. | Feb 2014 | B2 |
20010044791 | Richter et al. | Nov 2001 | A1 |
20020072951 | Lee et al. | Jun 2002 | A1 |
20020082892 | Raffel | Jun 2002 | A1 |
20020129352 | Brodersen et al. | Sep 2002 | A1 |
20020140731 | Subramanian et al. | Oct 2002 | A1 |
20020143997 | Huang et al. | Oct 2002 | A1 |
20020162090 | Parnell et al. | Oct 2002 | A1 |
20020165742 | Robbins | Nov 2002 | A1 |
20030004971 | Gong | Jan 2003 | A1 |
20030018705 | Chen et al. | Jan 2003 | A1 |
20030018830 | Chen et al. | Jan 2003 | A1 |
20030066031 | Laane et al. | Apr 2003 | A1 |
20030066032 | Ramachandran et al. | Apr 2003 | A1 |
20030069936 | Warner et al. | Apr 2003 | A1 |
20030070000 | Coker et al. | Apr 2003 | A1 |
20030070004 | Mukundan et al. | Apr 2003 | A1 |
20030070005 | Mukundan et al. | Apr 2003 | A1 |
20030074418 | Coker et al. | Apr 2003 | A1 |
20030120675 | Stauber et al. | Jun 2003 | A1 |
20030151633 | George et al. | Aug 2003 | A1 |
20030159136 | Huang et al. | Aug 2003 | A1 |
20030187921 | Diec et al. | Oct 2003 | A1 |
20030189600 | Gune et al. | Oct 2003 | A1 |
20030204427 | Gune et al. | Oct 2003 | A1 |
20030206192 | Chen et al. | Nov 2003 | A1 |
20030225730 | Warner et al. | Dec 2003 | A1 |
20040001092 | Rothwein et al. | Jan 2004 | A1 |
20040010489 | Rio et al. | Jan 2004 | A1 |
20040015981 | Coker et al. | Jan 2004 | A1 |
20040027388 | Berg et al. | Feb 2004 | A1 |
20040107319 | D'Orto | Jun 2004 | A1 |
20040128001 | Levin et al. | Jul 2004 | A1 |
20040186860 | Lee et al. | Sep 2004 | A1 |
20040193510 | Catahan et al. | Sep 2004 | A1 |
20040199489 | Barnes-Leon et al. | Oct 2004 | A1 |
20040199536 | Barnes-Leon et al. | Oct 2004 | A1 |
20040199543 | Braud et al. | Oct 2004 | A1 |
20040249854 | Barnes-Leon et al. | Dec 2004 | A1 |
20040260534 | Pak et al. | Dec 2004 | A1 |
20040260659 | Chan et al. | Dec 2004 | A1 |
20040268299 | Lei et al. | Dec 2004 | A1 |
20050050555 | Exley et al. | Mar 2005 | A1 |
20050091098 | Brodersen et al. | Apr 2005 | A1 |
20060021019 | Hinton et al. | Jan 2006 | A1 |
20080154903 | Crowley | Jun 2008 | A1 |
20080249972 | Dillon | Oct 2008 | A1 |
20090063414 | White et al. | Mar 2009 | A1 |
20090100342 | Jakobson | Apr 2009 | A1 |
20090177744 | Marlow et al. | Jul 2009 | A1 |
20110247051 | Bulumulla et al. | Oct 2011 | A1 |
20120042218 | Cinarkaya et al. | Feb 2012 | A1 |
20120218958 | Rangaiah | Aug 2012 | A1 |
20120233137 | Jakobson et al. | Sep 2012 | A1 |
20130212497 | Zelenko et al. | Aug 2013 | A1 |
20130218948 | Jakobson | Aug 2013 | A1 |
20130218949 | Jakobson | Aug 2013 | A1 |
20130218966 | Jakobson | Aug 2013 | A1 |
20130247216 | Cinarkaya et al. | Sep 2013 | A1 |
Number | Date | Country | |
---|---|---|---|
20160055900 A1 | Feb 2016 | US |
Number | Date | Country | |
---|---|---|---|
62040523 | Aug 2014 | US |