# US 2009/0276488 A1 · Extensible, Asynchronous, Centralized Analysis And Optimization Of Server Responses To Client Requests

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2009/0276488 A1
- Document ID: US20090276488A1
- Status: Published application
- Kind: A1
- Application number: 12/426,909
- Filed: 2009-04-20
- Published: 2009-11-05
- Earliest claimed: 2008-05-05
- Assignees: Strangeloop Networks Inc.
- Inventors: Kent Alstad
- Web page: https://patentgrep.com/patent/US20090276488A1

## CPC

- H04L 67/303: Terminal profiles
- G06F 16/9574: {of access to content, e.g. by caching}
- H04L 67/5651: Reducing the amount or size of exchanged application data
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An optimizer for messaging systems learns the purpose and context of each message and combines that information with knowledge of the specific client that will be rendering the response, such as a specific HTML browser. Any of a number of optimization factors can be applied, singly or in any combination. Messages are analyzed offline until a configurable threshold is reached, indicating that enough data has been sampled to develop a valid instruction set, to be applied to the responses that a server generates for a particular request. Responses are parsed into tokens and instructions for each type of token are compiled into instruction sets that are stored. These instructions sets continue to be iteratively improved as more data is collected, until the configurable sampling threshold is reached.

## Claims

### Claim 1

A computer-implemented method for optimizing a messaging system for communicating between at least one server and at least one client, comprising:
in a computing device, establishing a threshold representing an amount of data collection;
in a computing device, performing offline analysis of a plurality of messages to collect data for optimization;
in a computing device, responsive to the offline analysis having collected sufficient data to reach the established threshold, generating an optimization instruction set;
storing the generated optimization instruction set in a storage device; and
in a computing device, applying the generated instruction set to optimize at least one subsequent message.

### Claim 2 (depends on 1)

The method of claim 1, wherein performing offline analysis is performed concurrently with generating and transmitting messages.

### Claim 3 (depends on 1)

The method of claim 1, wherein generating an optimization instruction set comprises:
identifying a plurality of resources to be consolidated; and
generating instructions for consolidating the identified plurality of resources;
and wherein the optimization instruction set comprises instructions for replacing the plurality of resources with the consolidated resources.

### Claim 4 (depends on 3)

The method of claim 3, wherein identifying a plurality of resources to be consolidated comprises at least one selected from the group consisting of:
identifying a plurality of cascading style sheet resources to be consolidated;
identifying a plurality of images to be consolidated; and
identifying a plurality of JavaScript resources to be consolidated.

### Claim 5 (depends on 1)

The method of claim 1, wherein applying the generated instruction set comprises at least one selecting from the group consisting of:
consolidating a plurality of cascading style sheets;
consolidating a plurality of images; and
consolidating a plurality of JavaScript resources.

### Claim 6 (depends on 1)

The method of claim 1, wherein applying the generated instruction set comprises rewriting resource references to use a URI stem that increases the number of concurrent connections.

### Claim 7 (depends on 1)

The method of claim 1, wherein applying the generated instruction set comprises aliasing references within the message.

### Claim 8 (depends on 1)

The method of claim 1, wherein applying the generated instruction set comprises:
predicting resource usage; and
preloading at least one resource based on the prediction.

### Claim 9 (depends on 1)

The method of claim 1, wherein applying the generated instruction set comprises:
identifying static links within the message; and
transmitting identified static links to the client prior to rendering of other portions of the message.

### Claim 10 (depends on 1)

The method of claim 1, wherein applying the generated instruction set comprises:
identifying JavaScript code within the message; and
deferring at least one of loading and execution of identified JavaScript code.

### Claim 11 (depends on 1)

The method of claim 1, wherein each message comprises at least one selected from the group consisting of:
a client request; and
a server response to a request.

### Claim 12 (depends on 1)

The method of claim 1, wherein each message comprises at least one selected from the group consisting of:
an HTTP request; and
a response to an HTTP request.

### Claim 13 (depends on 1)

The method of claim 1, wherein performing offline analysis and generating an optimization instruction set are performed at an appliance located in a data path between the server and the client.

### Claim 14 (depends on 1)

The method of claim 1, wherein performing offline analysis comprises, for at least one message:
determining whether the message is treatable; and
responsive to the message being treatable:
parsing the message to derive a plurality of message tokens; and
classifying the tokens according to type;
and wherein generating an optimization instruction set comprises compiling instructions for at least one token type.

### Claim 15 (depends on 1)

The method of claim 1, wherein:
performing offline analysis comprises, for at least one message, classifying the tokens according to type; and
generating an optimization instruction set comprises compiling instructions for at least one token type.

### Claim 16 (depends on 1)

The method of claim 1, wherein performing offline analysis comprises, for at least one message, determining at least one portion of the message that is suitable for optimization.

### Claim 17 (depends on 1)

The method of claim 1, further comprising:
performing additional offline analysis of a plurality of messages to collect additional data for optimization; and
modifying at least one previously stored optimization instruction set based on the additional offline analysis.

### Claim 18 (depends on 1)

The method of claim 1, further comprising:
establishing a timeout condition for expiry of at least one stored instruction set; and
responsive to the timeout condition being met for a stored instruction set:
flagging the stored instruction set as expired;
initiating offline analysis of a plurality of messages to collect data for optimization to replace the expired instruction set;
responsive to the offline analysis having collected sufficient data to reach the established threshold, generating a replacement optimization instruction set; and
storing the generated replacement optimization instruction set in a storage device.

### Claim 19 (depends on 1)

The method of claim 1, wherein generating an optimization instruction set comprises:
identifying at least one content element common to responses associated with at least a predefined number of entities; and
generating the optimization instruction set for the at least one identified content element.

### Claim 20 (depends on 19)

The method of claim 19, wherein each entity comprises a user.

### Claim 21

A system for optimizing a messaging system for communicating between at least one server and at least one client, comprising:
a compiler, for performing offline analysis of a plurality of messages to collect data for optimization, and for, responsive to the offline analysis having collected sufficient data to reach an established threshold, generating an optimization instruction set;
a storage device, coupled to the compiler, for storing the generated optimization instruction set; and
a rewriter, coupled to the storage device, for applying the generated instruction set to optimize at least one subsequent message.

### Claim 22 (depends on 21)

The system of claim 21, wherein the compiler generates an optimization instruction set by:
identifying a plurality of resources to be consolidated; and
generating instructions for consolidating the identified plurality of resources;
and wherein the optimization instruction set comprises instructions for replacing the plurality of resources with the consolidated resources.

### Claim 23 (depends on 22)

The system of claim 22, wherein the compiler identifies a plurality of resources to be consolidated by performing at least one selected from the group consisting of:
identifying a plurality of cascading style sheet resources to be consolidated;
identifying a plurality of images to be consolidated; and
identifying a plurality of JavaScript resources to be consolidated.

### Claim 24 (depends on 21)

The system of claim 21, wherein the rewriter applies the generated instruction set by performing at least one selecting from the group consisting of:
consolidating a plurality of cascading style sheets;
consolidating a plurality of images; and
consolidating a plurality of JavaScript resources.

### Claim 25 (depends on 21)

The system of claim 21, wherein the rewriter applies the generated instruction set by rewriting resource references to use a URI stem that increases the number of concurrent connections.

### Claim 26 (depends on 21)

The system of claim 21, wherein the rewriter applies the generated instruction set by aliasing references within the message.

### Claim 27 (depends on 21)

The system of claim 21, wherein the rewriter applies the generated instruction set by:
predicting resource usage; and
preloading at least one resource based on the prediction.

### Claim 28 (depends on 21)

The system of claim 21, wherein the rewriter applies the generated instruction set by:
identifying static links within the message; and
transmitting identified static links to the client prior to rendering of other portions of the message.

### Claim 29 (depends on 21)

The system of claim 21, wherein the rewriter applies the generated instruction set by:
identifying JavaScript code within the message; and
deferring at least one of loading and execution of identified JavaScript code.

### Claim 30 (depends on 21)

The system of claim 21, wherein each message comprises at least one selected from the group consisting of:
a client request; and
a server response to a request.

### Claim 31 (depends on 21)

The system of claim 21, wherein each message comprises at least one selected from the group consisting of:
an HTTP request; and
a response to an HTTP request.

### Claim 32 (depends on 21)

The system of claim 21, wherein the compiler is a component of an appliance located in a data path between the server and the client.

### Claim 33 (depends on 21)

The system of claim 21, wherein the compiler performs offline analysis by, for at least one message:
determining whether the message is treatable; and
responsive to the message being treatable:
parsing the message to derive a plurality of message tokens; and
classifying the tokens according to type;
and wherein the compiler generates an optimization instruction set by compiling instructions for at least one token type.

### Claim 34 (depends on 21)

The system of claim 21, wherein:
the compiler performs offline analysis by, for at least one message, classifying the tokens according to type; and
the compiler generates an optimization instruction set by compiling instructions for at least one token type.

### Claim 35 (depends on 21)

The system of claim 21, wherein the compiler performs offline analysis by, for at least one message, determining at least one portion of the message that is suitable for optimization.

### Claim 36 (depends on 21)

The system of claim 21, wherein the compiler:
performs additional offline analysis of a plurality of messages to collect additional data for optimization; and
modifies at least one previously stored optimization instruction set based on the additional offline analysis.

### Claim 37 (depends on 21)

The system of claim 21, wherein a timeout condition is established for expiry of at least one stored instruction set, and wherein, responsive to the timeout condition being met for a stored instruction set:
the compiler flags the stored instruction set as expired;
the compiler initiates offline analysis of a plurality of messages to collect data for optimization to replace the expired instruction set;
responsive to the offline analysis having collected sufficient data to reach the established threshold, the compiler generates a replacement optimization instruction set; and
the storage device stores the generated replacement optimization instruction set.

### Claim 38 (depends on 21)

The system of claim 21, wherein the compiler generates an optimization instruction set by:
identifying at least one content element common to responses associated with at least a predefined number of entities; and
generating the optimization instruction set for the at least one identified content element.

### Claim 39 (depends on 38)

The system of claim 38, wherein each entity comprises a user.

### Claim 40

A computer program product for optimizing a messaging system for communicating between at least one server and at least one client, comprising:
a computer-readable storage medium; and
computer program code, encoded on the medium, for:
establishing a threshold representing an amount of data collection;
performing offline analysis of a plurality of messages to collect data for optimization;
responsive to the offline analysis having collected sufficient data to reach the established threshold, generating an optimization instruction set;
storing the generated optimization instruction set in a storage device; and
applying the generated instruction set to optimize at least one subsequent message.

### Claim 41 (depends on 40)

The computer program product of claim 40, wherein the computer program code causes the performing offline analysis to be performed concurrently with generating and transmitting messages.

### Claim 42 (depends on 40)

The computer program product of claim 40, wherein the computer program code for generating an optimization instruction set comprises computer program code for:
identifying a plurality of resources to be consolidated; and
generating instructions for consolidating the identified plurality of resources;
and wherein the optimization instruction set comprises instructions for replacing the plurality of resources with the consolidated resources.

### Claim 43 (depends on 42)

The computer program product of claim 42, wherein the computer program code for identifying a plurality of resources to be consolidated comprises computer program code for performing at least one selected from the group consisting of:
identifying a plurality of cascading style sheet resources to be consolidated;
identifying a plurality of images to be consolidated; and
identifying a plurality of JavaScript resources to be consolidated.

### Claim 44 (depends on 40)

The computer program product of claim 40, wherein the computer program code for applying the generated instruction set comprises computer program code for performing at least one selecting from the group consisting of:
consolidating a plurality of cascading style sheets;
consolidating a plurality of images; and
consolidating a plurality of JavaScript resources.

### Claim 45 (depends on 40)

The computer program product of claim 40, wherein the computer program code for applying the generated instruction set comprises computer program code for rewriting resource references to use a URI stem that increases the number of concurrent connections.

### Claim 46 (depends on 40)

The computer program product of claim 40, wherein the computer program code for applying the generated instruction set comprises computer program code for aliasing references within the message.

### Claim 47 (depends on 40)

The computer program product of claim 40, wherein the computer program code for applying the generated instruction set comprises computer program code for:
predicting resource usage; and
preloading at least one resource based on the prediction.

### Claim 48 (depends on 40)

The computer program product of claim 40, wherein the computer program code for applying the generated instruction set comprises computer program code for:
identifying static links within the message; and
transmitting identified static links to the client prior to rendering of other portions of the message.

### Claim 49 (depends on 40)

The computer program product of claim 40, wherein the computer program code for applying the generated instruction set comprises computer program code for:
identifying JavaScript code within the message; and
deferring at least one of loading and execution of identified JavaScript code.

### Claim 50 (depends on 40)

The computer program product of claim 40, wherein each message comprises at least one selected from the group consisting of:
a client request; and
a server response to a request.

### Claim 51 (depends on 40)

The computer program product of claim 40, wherein each message comprises at least one selected from the group consisting of:
an HTTP request; and
a response to an HTTP request.

### Claim 52 (depends on 40)

The computer program product of claim 40, wherein the computer program code for performing offline analysis comprises computer program code for, for at least one message:
determining whether the message is treatable; and
responsive to the message being treatable:
parsing the message to derive a plurality of message tokens; and
classifying the tokens according to type;
and wherein the computer program code for generating an optimization instruction set comprises computer program code for compiling instructions for at least one token type.

### Claim 53 (depends on 40)

The computer program product of claim 40, wherein:
the computer program code for performing offline analysis comprises computer program code for, for at least one message, classifying the tokens according to type; and
the computer program code for generating an optimization instruction set comprises computer program code for compiling instructions for at least one token type.

### Claim 54 (depends on 40)

The computer program product of claim 40, wherein the computer program code for performing offline analysis comprises computer program code for, for at least one message, determining at least one portion of the message that is suitable for optimization.

### Claim 55 (depends on 40)

The computer program product of claim 40, further comprising computer program code for:
performing additional offline analysis of a plurality of messages to collect additional data for optimization; and
modifying at least one previously stored optimization instruction set based on the additional offline analysis.

### Claim 56 (depends on 40)

The computer program product of claim 40, further comprising computer program code for:
establishing a timeout condition for expiry of at least one stored instruction set; and
responsive to the timeout condition being met for a stored instruction set:
flagging the stored instruction set as expired;
initiating offline analysis of a plurality of messages to collect data for optimization to replace the expired instruction set;
responsive to the offline analysis having collected sufficient data to reach the established threshold, generating a replacement optimization instruction set; and
storing the generated replacement optimization instruction set in a storage device.

### Claim 57 (depends on 40)

The computer program product of claim 40, wherein the computer program code for generating an optimization instruction set comprises computer program code for:
identifying at least one content element common to responses associated with at least a predefined number of entities; and
generating the optimization instruction set for the at least one identified content element.

### Claim 58 (depends on 57)

The computer program product of claim 57, wherein each entity comprises a user.
