The present invention relates to data storage, and in particular to redirecting client-side storage operations to remote storage devices.
It is common for a web site to store information on a client device. Cookies are one example of such client-side storage. Cookies retain information generated by a web site while the web site is being accessed by a user. An example of data that may be stored in a cookie is user account information, such as a user identifier and password, that may be used by a web site to automatically authenticate the user to the web site without requiring reentry by the user of their respective user identifier and password each time the user navigates to the web site.
Storing data on a client device provides several advantages to a web site. First, physical storage device requirements are decreased by storing data on the client device rather than on a central server maintained by a web site operator. Second, storing data on the client device allows additional processing to be performed by the client device rather than by the web site, improving the scalability of the web site. Accordingly, there is significant interest in utilizing client-side storage among web site developers. Additional client-side storage technologies, such as client-side database storage, are being introduced to help satisfy this interest.
Unfortunately, client-side storage can result in data being spread across multiple devices that may be used by a user to access a web site. For example, the user may access a web site from an internet-capable phone, such as an iPhone, when shopping, from a home computer when at home, and from a work computer when at work. Information stored in client-side storage will only be available to the device on which the information was stored. For example, items placed into a “wish list” by a user while accessing a web site from a work computer will not be available to the user when they later access the same web site from their home computer. Accordingly, what is needed is a mechanism for redirecting client-side operations to remote storage locations, so that data may be accessed by devices in addition to the client device to which the web site directed the data.
The present invention automatically redirects client-side storage operations to remote storage devices. For example, read and write operations that are directed to a client device are redirected to one or more remote storage devices. In one embodiment, a web service generates a hypertext transfer protocol (HTTP) message and sends the HTTP message toward a user agent executing on a client device. A redirection module in a path of the HTTP message analyzes the HTTP message and detects a client-side storage operation contained in the message. Based on a defined criteria, the redirection module modifies the HTTP message by replacing the client-side storage operation with a remote storage instruction. The modified HTTP message is sent toward the user agent in place of the original HTTP message. The user agent receives the modified HTTP message and executes the remote storage instructions, wherein the client-side storage operation is executed on a remote storage device.
The defined criteria may include a type of service provided by the web service, a source address of the web service, a type of data that is the subject of the client-side storage operation, and the like. For example, if the HTTP message relates to an email service, the redirection module may replace the client-side storage operation with remote storage instructions directed to an email remote storage device. If the source of the HTTP message is from a particular web site, such as the web site BUY.COM, the redirection module may replace the client-side storage operation with remote storage instructions directed to a home server remote storage device.
The client-side storage operation may be, for example, a hypertext markup language (HTML) local storage command, an HTML local session storage command, or an HTML local database storage command. The remote storage instruction may identify one or more remote storage devices and one or more remote storage proxies. The remote storage instruction may also include remote storage commands used by a remote storage device to implement remote storage operations on the remote storage device. The remote storage device may provide a response to the user agent based on the remote storage instructions.
The user agent may send the remote storage instructions to a remote storage proxy for processing. The remote storage proxy may extract one or more remote storage device identifiers from the remote storage instructions identifying the remote storage devices to which remote storage commands should be sent. The remote storage proxy provides the remote storage commands to the remote storage devices, thus reducing processing requirements of the user agent.
The redirection module may be implemented in a network node or in the client device hosting the user agent. The redirection module may be a module of the user agent. The redirection module accesses configuration data that includes the defined criteria. The HTTP message may include a plurality of client-side storage operations. Some of the client-side storage operations may be replaced with remote storage instructions directing the storage operations to a first remote storage device, and others of the client-side storage operations may be replaced with remote storage instructions directing such other storage operations to a second remote storage device.
Those skilled in the art will appreciate the scope of the present invention and realize additional aspects thereof after reading the following detailed description of the preferred embodiments in association with the accompanying drawing figures.
The accompanying drawing figures incorporated in and forming a part of this specification illustrate several aspects of the invention, and together with the description serve to explain the principles of the invention.
The embodiments set forth below represent the necessary information to enable those skilled in the art to practice the invention and illustrate the best mode of practicing the invention. Upon reading the following description in light of the accompanying drawing figures, those skilled in the art will understand the concepts of the invention and will recognize applications of these concepts not particularly addressed herein. It should be understood that these concepts and applications fall within the scope of the disclosure and the accompanying claims.
The present invention includes a redirection module that redirects client-side storage operations from a client device to one or more remote storage devices. Prior to discussing certain aspects of the present invention,
The messages exchanged between the web server 14 and the client devices 12 can comprise any suitable message format and protocol capable of communicating the information necessary for the web server 14 to provide a desired web service to the client devices 12. According to one embodiment of the invention, the messages comprise hypertext transfer protocol (HTTP) messages.
The web server 14 may provide any type of web service to the client devices 12, such as, for example, a retail online shopping web service (e.g., the sale of toys via a www.toyz.com web site), a document generation and modification web service, an email web service, and the like. Generally, the user agent 18, such as the user agent 18A, generates and sends an HTTP message towards the web server 14 in response to input from a user. For example, the user may enter a URL such as www.toyz.com in an address window of the user agent 18A. The phrase “towards” means the HTTP message is being sent to an intended destination. The destination may be identified in the HTTP message, such as via a domain name or an internet protocol (IP) address, for example. In the present example, the HTTP message may contain an IP address identifying the web server 14, and the HTTP message is ultimately delivered to the web server 14 via the network 16 directly or indirectly through one or more intermediate network elements such as routers (not illustrated) and the like. The network 16 can comprise any proprietary or conventional network, or combination thereof, capable of routing messages between processing devices, such as the client devices 12 and the web server 14. Each of the client devices 12 and the web server 14 are coupled to the network 16 via an access link 20, which may comprise any suitable access technology, such as a cable or digital subscriber line (DSL) modem, WiFi, cellular technology, and the like.
In response to the HTTP message from the client device 12A, the web server 14 generates an HTTP response message and sends the HTTP response message towards the client device 12A. The HTTP response message may include a message body portion containing instructions that direct the user agent 18A to display information on a display 22A. The message body portion may comprise an HTML document, for example. The message body portion may also include one or more client-side storage operations that direct the user agent 18A to access a client-side storage 24A integral with, or coupled to, the client device 12A. The client-side storage 24A may comprise any suitable storage medium, including, for example, a hard disk drive, a flash drive, a USB drive, and the like. The client-side storage operations can comprise any type of conventional or proprietary storage instructions, such as, for example local storage instructions, session storage instructions, database storage instructions, and the like. The client-side storage operations may comprise a web storage command as defined by the W3C in one or more W3C specification documents, such as the Web Storage W3C Working Draft 29 Oct. 2009, available at www.w3.org, the contents of which are hereby incorporated herein by reference. One example of a type of data that may be stored on the client device 12A is shopping cart data 26A identifying one or more products the user has selected for purchase from the web server 14.
Assume for the purposes of illustration that the user selects a particular product for purchase from the web server 14 via the user agent 18A. The user agent 18A generates an HTTP message identifying the product and sends the HTTP message towards the web server 14. The web server 14 receives the HTTP message, generates an HTTP message including client-side storage instructions directing the user agent 18A to store product identification information identifying the selected product in the client-side storage 24A, and then sends the HTTP message towards the user agent 18A via the client device 12A. The client device 12A provides the HTTP message to the user agent 18A, which executes the client-side storage instructions and stores the product identification information in the client-side storage 24A. For purposes of illustration, assume the user is interrupted and is unable to consummate the purchase at that time.
Assume further that the user later accesses the web server 14 via the client device 12C while at home. While the client-side storage 24C similarly contains shopping cart data 26C, the shopping cart data 26C does not contain the product identification information previously stored in the shopping cart data 26A because the client-side storage operations previously generated by the web server 14 were directed to the client device 12A, not the client device 12C. This example illustrates one problem with client-side storage inherent in many web services; the information stored on a client device 12, such as the client device 12A, is not easily, or perhaps not at all, accessible by other client devices 12, such as the client devices 12B and 12C. Thus, the user must repeat on the client device 12C the steps that were previously performed on the client device 12A to identify and select the desired product from the web server 14.
The system 30 also includes one or more remote storage devices 36, such as remote storage devices 36A, 36B which are coupled to the network 16 via the respective access links 20. One or more of the remote storage devices 36A, 36B may be referred herein to generally as the remote storage device 36 or the remote storage devices 36. The remote storage device 36 may comprise any processing device capable of storing, modifying, or otherwise accessing data in a respective storage 38A, 38B upon request. For example, the remote storage device 36 may comprise a general purpose computer, such as a laptop computer, a desktop computer, a computer server, and the like, or a specialized computing device, such as a DVR, a media server, and the like. The storage devices 38A, 38B may comprise any suitable storage medium, including, for example, a hard disk drive, a flash drive, a USB drive, and the like.
The network element 32 includes a redirection module 40. The redirection module 40 detects a client-side storage operation directed to a client device 12 in an HTTP message, translates the client-side storage operation into remote storage instructions based on defined criteria 42, and generates a modified HTTP message wherein the client-side storage operation is replaced with the remote storage instructions. The defined criteria 42 are maintained in a configuration file accessible to the redirection module 40. Preferably, the configuration file is maintained in a memory on the network element 32.
The defined criteria 42 are used by the redirection module 40 to determine whether client-side storage instructions contained in a HTTP message should be translated into remote storage instructions, and if so, the particular remote storage devices 36A, 36B to which the remote storage instructions should refer. The defined criteria 42 can include criteria based on one or more attributes of the HTTP message, criteria based on the client device 12 to which the HTTP message is addressed, criteria based on contextual information such as time or date, and the like. Criteria based one or more attributes of the HTTP message can include, for example, a type of service associated with the HTTP message, a type of data that is the subject of the client-side storage operations contained in the HTTP message, or a source address, such as a domain or URL of the HTTP message. Criteria based on the client device 12 to which the HTTP message is directed can include, for example, an address associated with the client device 12, a location of the client device 12, a proximity of the client device 12 to another client device 12, and the like. Location information of a mobile client device 12 may be obtained by the network element 32 in any known manner, such as via a location detecting service, or via the service provider providing service to the mobile client device 12.
Upon determination by the redirection module 40 that the HTTP message contains a client-side storage operation which should be translated into a remote storage instruction based on the defined criteria 42, the redirection module 40 then determines the appropriate remote storage instructions necessary to implement the storage operations on the respective remote storage devices 36. The defined criteria 42 may include rewrite functions that analyze the client-side storage operations and generate remote storage instructions suitable for implementing the client-side storage operations on the designated remote storage device 36. According to one embodiment, the rewrite functions may be implemented via a programmatic language, such as JavaScript, Java, and the like. So long as the rewrite functions are written to a common interface, the rewrite functions may also be ‘pluggable’ such that the redirection module 40 may initiate rewrite functions on an as needed basis. In one embodiment, a third party, such as a web service, may provide the rewrite function for use with HTTP messages originating from the respective web service.
Table 1 contains an exemplary client-side storage operation that may be detected in an HTTP message by the redirection module.
Table 2 contains pseudo-code for an exemplary rewrite function that determines whether the HTTP message matches the defined criteria 42, and if so, rewrites the client-side storage operations into appropriate remote storage instructions based on the particular remote storage device 36. In this example, the defined criteria 42 relates to a location of the client device 12, and a source of the HTTP message. In particular, if the client device 12 is at a “home” location and the HTTP message is from a “goggle.com” source, then the defined criteria 42 is met, as indicated by the <match-function> pseudo-code. The <rewrite-function> pseudo-code generates remote storage instructions including identified IP addresses of the remote storage devices 36, and generates remote-storage instructions based on the type of user agent 18.
Table 3 contains exemplary remote storage instructions that may be generated by the pseudocode illustrated in Table 2 based on the exemplary client-side storage operations illustrated in Table 1.
After the modified HTTP message containing the remote storage instructions is generated, the redirection module 40 sends the modified HTTP message towards the user agent 18 via the client device 12, which is identified as the destination in the HTTP message. The user agent 18 receives the modified HTTP message and executes the remote storage instructions. In one embodiment, the remote storage instructions may include the destination address of the remote storage devices 36, and remote storage commands that are to be sent to each of the respective remote storage devices 36. For example, assume the redirection module 40 detects database client-side storage operations in an HTTP message. The redirection module 40 may replace the client-side storage operations with AJAX commands that, upon execution, send corresponding commands to the appropriate remote storage devices 36 to implement the storage operations on the remote storage devices 36.
In one embodiment, the modified HTTP message may also include feedback instructions, along with media, that provide feedback to a user while the remote storage operations are being processed. For example, the feedback instructions may include a progress meter that shows a current status of the remote storage operations.
Security or network restrictions may prevent a user agent 18 from making a connection to another device, such as one or more of the remote devices 36. According to one embodiment of the invention, to avoid such restrictions, the redirection module 40 may generate a script, such as a JavaScript, and store the script on a device accessible to the user agent 18, such as the network element 32. In such embodiment, the redirection module 40 modifies the HTTP message to include a remote storage instruction that comprises a reference to the stored script. The script may comprise remote storage device identifiers, such as IP addresses of the remote storage devices 36, and remote storage commands implementing the client-side operations on the respective remote storage device(s) 36. The script may be digitally signed and hosted by the network element 32, or another trusted source. Upon receipt of the modified HTTP message, the user agent 18 retrieves the instructions from the stored script. Because the instructions were obtained from a digitally signed script, the user agent 18 may not be prevented from opening a connection with the remote storage devices 36.
Table 4, below, provides an example of a remote storage instruction comprising a reference to a script generated by the redirection module 40 and stored on a device having an IP address “192.168.1.1.”.
Table 5, below, contains remote storage commands that may be stored in the script file referenced in Table 4. Upon receipt of the modified HTTP message, the user agent 18 obtains the JavaScript referenced in Table 4, above, and loads the remote storage commands from the JavaScript as illustrated in Table 5, below. Table 5 includes pseudo code representing remote storage commands that implement storage operations on the remote storage devices 36. In the example provided in Table 5, the remote storage devices 36 have IP addresses “192.168.1.101”, and “192.168.1.102”, respectively.
While for purposes of illustration the redirection module 40 has been described as being implemented in the network element 32, according to one embodiment of the invention the redirection module 40 may be implemented in one or more of the client devices 12A-12C, as represented by dashed boxes 40A-40C.
The redirection module 40 accesses the defined criteria 42 and determines, based on the defined criteria 42, that the client-side storage operations should be redirected to the remote storage devices 36A, 36B. The redirection module 40 generates remote storage instructions identifying the remote storage devices 36A, 36B. For example, the remote storage devices 36A, 36B may be identified via IP addresses associated with the remote storage devices 36A, 36B (step 54). The remote storage instructions may include remote storage commands that implement the desired storage operations on the remote storage devices 36A, 36B (step 56). The redirection module 40 generates a modified HTTP message by replacing the one or more client-side storage operations with one or more remote storage instructions (step 58). The redirection module 40 sends the modified HTTP message toward the user agent 18A via the client device 12A (step 60).
According to one embodiment of the invention, the redirection module 40 may use contextual information to determine whether or not to replace client-side storage operations with remote storage instructions. In such embodiment, a synchronization mechanism may be used to ensure that data contained in client-side storage locations and appropriate remote storage devices 36 are synchronized periodically.
The data type identifier 70 may identify a type of data that is the subject of the client-side storage operations, such as video data, image data, and the like. For example, based on the criteria illustrated in
The battery level identifier 74 can indicate a battery level threshold. For example, if a battery level of the client device 12 is below an identified threshold, the redirection module 40 will replace client-side storage operations with remote storage instructions, but if the battery level of the client device 12 is above the identified threshold, the client-side storage operations will not be replaced. Those of skill in the art will recognize the identifiers 68-74 are merely exemplary, and that any desired criteria could be defined and used by the redirection module 40.
As discussed above, restrictions associated with the client device 12 or the network 16 may prevent the user agent 18 from directly connecting to a remote storage device 36. According to another embodiment of the present invention, such restrictions may be avoided through the use of a remote storage proxy.
The remote storage proxy 80 receives the remote storage instructions, and directs the remote storage commands to the remote storage devices 36 identified in the remote storage instructions. In this manner, security restrictions preventing the user agent 18 from connecting to a device other than the originating web server 14 can be circumvented. The remote storage proxy 80 may serve additional functions, such as caching database information from the remote storage devices 36, load balancing requests across the remote storage devices 36, maintaining persistent connections to the remote storage devices 36 for quicker access, and the like. While the remote storage proxy 80 is illustrated for purposes of convenience in
The redirection module 40 sends the modified HTTP message towards the client device 12A (step 104). The user agent 18A executes the remote storage instructions (step 106). The execution of the remote storage instructions causes an HTTP message to be sent towards the web server 14 (step 108). The network element 32, acting as a mediating server, receives the HTTP message and determines that the HTTP message includes a remote storage proxy request (step 110). The network element 32 sends the remote storage instructions to the remote storage proxy 80 (step 112). The HTTP message is not sent to the web server 14. The remote storage proxy 80 receives the remote storage instructions and sends the identified remote storage commands to the remote storage devices 36A, 36B, respectively (steps 114-116). The remote storage devices 36A, 36B send responses to the remote storage proxy 80 in response to the execution of the remote storage commands (steps 118, 122). The remote storage proxy 80 provides the responses to the client device 12A (steps 120, 124). In this manner, client-side storage operations may be redirected to remote storage devices 36A, 36B even in the presence of network or device restrictions inhibiting a user agent 18 from sending responses to devices other than the device from which the user agent 18 received the response. While for purposes of convenience the network element 32 has been described as the recipient of the remote storage instructions sent by the user agent 18A, it will be apparent to those skilled in the art, that another network element such as a proxy server or mediating server could be the recipient of the remote storage instructions.
The system bus 136 can be any of several types of bus structure that may further interconnect to a memory bus (with or without a memory controller), a peripheral bus, and a local bus using any of a variety of commercially available bus architectures. The system memory 134 can include non-volatile memory 138 and/or volatile memory 140 (e.g., random access memory (RAM)). A basic input/output system (BIOS) 142 can be stored in the non-volatile memory 138 (e.g., ROM, EPROM, EEPROM, etc.), which can include the basic routines that help to transfer information between elements within the processing device 130. The volatile memory 140 can also include a high-speed RAM such as static RAM for caching data.
The processing device 130 may further include an internal hard disk drive (HDD) 143 (e.g., EIDE, SATA) for storage. The internal hard disk may also be configured for external use in a suitable chassis, such as an optical disk drive 144 (e.g., reading a CD-ROM disk 146). The drives and associated computer-readable media provide nonvolatile storage of data, data structures, computer-executable instructions, and so forth. For the processing device 130, the drives and media accommodate the storage of any data in a suitable digital format. Although the description of computer-readable media above refers to a HDD and a removable optical media such as a CD or DVD, it should be appreciated by those skilled in the art that other types of media which are readable by a computer, such as zip drives, magnetic cassettes, flash memory cards, cartridges, and the like, may also be used in the exemplary operating environment, and further, that any such media may contain computer-executable instructions for performing novel methods of the disclosed architecture.
A number of program modules can be stored in the drives and volatile memory 140, including an operating system 148, one or more application programs 150, including, for example, a redirection module 40 and/or user agent 18, and other program modules. All or portions of the operating system, applications, modules, and/or data storage 149 can also be cached in the volatile memory 140. It is to be appreciated that the disclosed architecture can be implemented with various commercially available operating systems or combinations of operating systems. All or a portion of the invention may be implemented as a computer program product, such as a computer usable medium having a computer readable program code embodied therein. The computer readable program code can include software instructions for implementing the functionality of the redirection module 40, and other aspects of the present invention, as discussed herein.
A user can enter commands and information into the processing device 130 through one or more wire/wireless input devices, for example, a keyboard and a pointing device, such as a mouse (not illustrated). Other input devices (not illustrated) may include a microphone, an IR remote control, a joystick, a game pad, a stylus pen, touch screen, or the like. These and other input devices are often connected to the processing unit 132 through an input device interface 152 that is coupled to the system bus 136, but can be connected by other interfaces such as a parallel port, IEEE 1394 serial port, a game port, a USB port, an IR interface, etc.
The processing device 130 may include a display 154, which may also be connected to the system bus 136 via an interface, such as a video adaptor 156. The processing device 130 may operate in a networked environment using wire and/or wireless communication network interface or adaptor 158. The adaptor 158 can facilitate wire and/or wireless communications to the network 16.
The processing device 130 may be operable to communicate with any wireless devices or entities operatively disposed in wireless communication, for example, a printer, scanner, desktop and/or portable computer, via wireless technologies, such as Wi-Fi and Bluetooth, for example.
Those skilled in the art will recognize improvements and modifications to the preferred embodiments of the present invention. All such improvements and modifications are considered within the scope of the concepts disclosed herein and the claims that follow.
The present application is a continuation of U.S. patent application Ser. No. 12/611,725, entitled SYSTEM AND METHOD FOR REDIRECTING CLIENT-SIDE STORAGE OPERATIONS, which was filed on Nov. 3, 2009; and the present application is related to U.S. patent application Ser. No. 12/639,287, entitled SYSTEM AND METHOD FOR REDIRECTING CLIENT-SIDE STORAGE OPERATIONS, which was filed on Dec. 16, 2009, which are incorporated by reference herein in its entirety for all purposes.
Number | Date | Country | |
---|---|---|---|
Parent | 12611725 | Nov 2009 | US |
Child | 14180599 | US |