This invention relates to methods and systems for the delivery of dynamic web output.
Common nowadays in Web browsing and interaction is the use of embeddable units such as display advertisements and widgets. Preferably one would like to perform live updates for an embeddable unit to make information display and advertising more dynamic and relevant. Three requirements in solutions are key to the success of these live updates.
An advertisement or widget may appear on many web pages, so the ability to update these units without having to replace the embed tags each time, and in a manner that is fast, reliable, scalable, and cost-efficient, is very valuable to customers, including advertisers, publishers, and widget creators. The present invention addresses these requirements for live updates and advances the art by providing techniques to accomplishes all three goals at once: scalability, low cost, and fast, reliable changes.
The present invention referred to as Live Updates provides solutions for the delivery of dynamic web output at very high volume (scale) while providing rapid changes to the definition of that content (flexibility). This is accomplished using a combination of commodity servers serving dynamic content with global caches of static content (content delivery networks). The servers delivering dynamic content are used to direct client requests to static content via an HTTP redirect and with embedded information in the location of that content used to populate the cache with long lived content. The location information is a complex cache key comprised of identity and version data. The key is used both to locate content in the global cache and to populate that content with the latest data if the cache does not contain that key. Since the key includes many components any of those components may change independently and result in a cache miss and update the definition of the entire content. The number of components in the key are arbitrary and may be adapted as needed.
Embeddable unit: A self-contained unit that can be encased in an HTML embed tag (<script>, <iframe> or other) and placed on any website. Embeddable units are typically created using Flash or HTML/JS. An embeddable unit can contain any content that a web page can contain.
Live update: The ability to update an embeddable unit and have the updates propagate to the client without having to change the HTML tags used on the serving website.
In one embodiment of the invention, there are four distinct parties involved in performing live updates.
Embodiments of the present invention use the process described herein to perform live updates on embeddable units such as display ads and widgets, however, the invention is not limited to these examples of embeddable units. The live update according to the present invention satisfies the following aspects.
1. High scale and low cost,
2. Fast, reliable, and low cost, and
3. Fast, reliable, and high scale
With reference to high scale and low cost, one could have the client load the embeddable unit from the CDN, and keep the content on the CDN up to date by flushing it every time the embeddable unit changes on the provider's side. This solution is low cost by virtue of using a CDN; it is high scale because once the CDN is flushed, embeddable units everywhere will see the update. However, this solution would not be fast—typically, it takes up to 20 minutes to flush the CDN and propagate the changes, so the updates would not appear right away. During that time, the information served by the CDN will be unreliable.
With reference to fast, reliable, and low cost, one could issue a new embed tag every time that the unit is updated on the server. The embed tags can then be manually replaced on each web page containing the old tags. While this low cost and reliable solution works well when your embeddable unit is only on a couple of different pages, it becomes untenable at high scale.
With reference to fast, reliable, and high scale, when cost is not an object, the solution is easy—just throw more servers at the problem. One example of a high cost solution would be to always go to the source for your embeddable unit. Every time an embeddable unit is loaded on a web page, the client can load it directly from the provider, with no caching involved. This is certainly reliable, and if you have the money for a lot of servers and bandwidth, this can be done at high scale for embeddable units served at many locations. But of course this is very expensive.
The trick, then, lies in accomplishing all three goals at once—scalability, low cost, and fast, reliable changes, which is addressed and provided by the present invention.
Live Update—Summary
In an exemplary embodiment a process manages to perform live updates for embeddable units in a way that is fast, reliable, scalable, and cost-effective by using a clever combination of dynamic server lookups, caching, and CDN use. The live update process is tightly integrated with the process by which the client obtains the embeddable unit, so we will focus on that entire process here.
Steps 4 and 5 are expensive, but they are only performed when the CDN is unable to find a match for the embeddable unit being sought—i.e. either the first time a unit has ever been requested, or the first time it is requested after an update. Both of these events are relatively rare, so the vast majority of the time these two high cost steps are avoided. When the CDN finds a match, the sequence of steps is 1-2-3-6. If it does not, then all 6 steps are performed in order. Let us go into a little more detail about how this is accomplished.
Preliminaries
In order for the live update process to work, there are some conventions that must be followed by the unit provider in handling embeddable units and updates. These are discussed here.
IDs and Versions
The unit provider must keep track of IDs and versions for each embeddable unit. Each unit must have a unique identifier, as well as multiple IDs corresponding to different components of the unit. In an exemplary implementation, each embeddable unit could have two key components—the registration (the core embeddable unit) and the instance (a set of customizations applied to the unit by a user). However, a different set of components may be appropriate for other uses. The important thing is that each component must have:
As long as the unit provider keeps track of these items, the embedding, updating, and caching actions can be performed as detailed below.
Embedding
The embeddable unit is inserted into a web page using an embed tag. This is usually an HTML <script> tag or <iframe> tag. The embed tag must contain two key components:
The ID and version number for every component of every embeddable unit must be stored in the cache.
This means that when a new unit is published, the provider must place the embeddable unit's ID, as well as the types, IDs and version numbers of all components of that unit into the cache. When the embeddable unit is updated, the version numbers associated with each component ID must be updated and placed in the cache.
This makes sure the cache always has up-to-date version numbers for all components. This is a key requirement of the live update process.
Live Update
The process by which the embeddable unit is obtained and displayed to the user is illustrated in
This application claims priority from U.S. Provisional Patent Application 61/571,645 filed Jun. 30, 2011, which is incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
7395355 | Afergan et al. | Jul 2008 | B2 |
7596759 | Verna | Sep 2009 | B2 |
8045713 | Lain et al. | Oct 2011 | B2 |
8341278 | Tewari et al. | Dec 2012 | B2 |
8521857 | Maxwell et al. | Aug 2013 | B2 |
8589992 | Babic | Nov 2013 | B2 |
8595186 | Mandyam et al. | Nov 2013 | B1 |
20080040681 | Synstelien et al. | Feb 2008 | A1 |
20080104496 | Williams et al. | May 2008 | A1 |
20120259946 | Stockhammer et al. | Oct 2012 | A1 |
20130080579 | Gordon et al. | Mar 2013 | A1 |
20130103782 | Afergan et al. | Apr 2013 | A1 |
Number | Date | Country | |
---|---|---|---|
20130007108 A1 | Jan 2013 | US |
Number | Date | Country | |
---|---|---|---|
61571645 | Jun 2011 | US |