摘要 |
Implementations include a batch-optimized render and fetch architecture. An example method performed by the architecture includes receiving a request from a batch process to render a web page and initializing a virtual clock and a task list for rendering the web page. The virtual clock stands still when a request for an embedded item is outstanding and when a task is ready to run. The method may also include generating a rendering result for the web page when the virtual clock matches a run time for a stop task in the task list, and providing the rendering result to the batch process. Another example method includes receiving a request from a batch process to render a web page, identifying an embedded item in the web page, and determining, based on a rewrite rule, that the embedded item has content that is duplicative of content for a previously fetched embedded item. |
主权项 |
1. A computer system comprising:
at least one processor; and memory storing:
a data store of content for embedded items, andinstructions that, when executed by the at least one processor, cause the system to:
receive a request, from a batch process, to render a web page,identify an embedded item in the web page,determine, based on a rewrite rule, that the embedded item has content that is duplicative of content for a previously fetched embedded item,in response to the determination, provide the content for the previously fetched embedded item from the data store,generate a rendering result for the web page using the content for the previously fetched embedded item, andprovide the rendering result to the batch process. |