# Patent

## Title
System and method for dynamic cache data decompression in a traffic director environment

## Abstract

Described herein are systems and methods for use with a load balancer or traffic director, and administration thereof, wherein the traffic director is provided as a software-based load balancer that can be used to deliver a fast, reliable, scalable, and secure platform for load-balancing Internet and other traffic to back-end origin servers, such as web servers, application servers, or other resource servers. In accordance with an embodiment, the traffic director can be configured to compress data stored in its cache, and to respond to requests from clients by serving content from origin servers either as compressed data, or by dynamically decompressing the data before serving it, should a particular client prefer to receive a non-compressed variant of the data. In accordance with an embodiment, the traffic director can be configured to make use of hardware-assisted compression primitives, to further improve the performance of its data compression and decompression.

## Background
CLAIM OF PRIORITY
This application claims the benefit of priority to U.S. Provisional Patent Application No. 61/539,886, titled “SYSTEMS AND METHODS FOR USE WITH AN APPLICATION SERVER TRAFFIC DIRECTOR (CORE FEATURES)”, filed Sep. 27, 2011; and U.S. Provisional Patent Application No. 61/539,900, titled “SYSTEMS AND METHODS FOR USE WITH AN APPLICATION SERVER TRAFFIC DIRECTOR (ADMIN FEATURES)”, filed Sep. 27, 2011; each of which applications are herein incorporated by reference.


COPYRIGHT NOTICE
A portion of the disclosure of this patent document contains material which is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure, as it appears in the Patent and Trademark Office patent file or records, but otherwise reserves all copyright rights whatsoever.
FIELD OF INVENTION
The invention is generally related to a load balancer or traffic director, for use in an application server, middleware machine or other computing environment, and is particularly related to a system and method for providing dynamic cache data decompression in such an environment.
BACKGROUND
A typical enterprise-level computing environment can include many different types of computing resources (e.g., web servers, application servers, database servers, or other types of resource servers) which are intended to be accessed over a network (e.g., a company's internal Ethernet network, or the Internet) by other computers, or by users operating various different types of computing devices. A familiar example is the use of a client computer, such as a laptop equipped with a web browser application, by which a user can access a web server via the Internet.
Today's organizations rely increasingly on their computing resources being readily available from almost any location, at all times, with a high level of performance. The task of ensuring that such resources are allocated efficiently often requires the use of a load balancing device to distribute requests from clients to target resources, in a fair manner according to its distribution policies. These are the types of environments that embodiments of the invention can be used with.
SUMMARY
Described herein are systems and methods for use with a load balancer or traffic director, and administration thereof. In accordance with an embodiment, the traffic director, referred to herein in some embodiments as “Oracle Traffic Director” (OTD), is provided as a software-based load balancer that can be used to deliver a fast, reliable, scalable, and secure platform for load-balancing Internet and other traffic to back-end origin servers, such as web servers, application servers, or other resource servers.
Embodiments of the traffic director are particularly useful in application server, middleware machine, and similar high-performance enterprise-level computing environments, such as Oracle WebLogic and Exalogic environments.
In accordance with an embodiment, the traffic director can be configured to compress data stored in its cache, and to respond to requests from clients by serving content from origin servers either as compressed data, or by dynamically decompressing the data before serving it, should a particular client prefer to receive a non-compressed variant of the data. In accordance with an embodiment, the traffic director can be configured to make use of hardware-assisted compression primitives, to further improve the performance of its data compression and decompression.



BRIEF DESCRIPTION OF THE FIGURES
FIG. 1 illustrates a computing environment which includes a load balancer or traffic director, in accordance with an embodiment.
FIG. 2 illustrates the use of a traffic director with one or more pools or origin servers, in accordance with an embodiment.
FIG. 3 illustrates a traffic director architecture, in accordance with an embodiment.
FIG. 4 illustrates a traffic director administration environment and interface, in accordance with an embodiment.
FIG. 5 illustrates the use of dynamic HTTP decompression in a traffic director environment, in accordance with an embodiment.
FIG. 6 is a flowchart of a method for providing dynamic HTTP decompression in a traffic director environment, in accordance with an embodiment.
FIG. 7 illustrates support for hardware primitives, for use with dynamic HTTP decompression in a traffic director environment, in accordance with an embodiment.



DETAILED DESCRIPTION
As described above, today's organizations rely increasingly on their computing resources being readily available from almost any location, at all times, with a high level of performance. The task of ensuring that such resources are allocated efficiently often requires the use of a load balancing device to distribute requests from clients to target resources, in a fair manner according to its distribution policies.
Described herein are systems and methods for use with a load balancer or traffic director, and administration thereof. In accordance with an embodiment, the traffic director, referred to herein in some embodiments as “Oracle Traffic Director” (OTD), is provided as a software-based load balancer that can be used to deliver a fast, reliable, scalable, and secure platform for load-balancing Internet and other traffic to back-end origin servers, such as web servers, application servers, or other resource servers.
Embodiments of the traffic director are particularly useful in application server, middleware machine, and similar high-performance enterprise-level computing environments, such as Oracle WebLogic and Exalogic environments.
In accordance with an embodiment, the traffic director serves as an entry point for traffic such as hypertext transfer protocol (HTTP) and hypertext transfer protocol secure (HTTPS) requests, which are received from clients or client devices, for communication to a back-end of resources or resource servers acting as origin servers. Each traffic director includes one or more traffic director instances defined by a configuration, wherein the configuration provides information about various elements of that instance, such as listeners, origin servers, failover groups, and logs.
Examples of the types of clients that can be used with the system include computer servers, laptop computers, portable devices such as smartphones, and other types of computing devices, some of which may include, e.g., a web browser application for accessing a web server.
Examples of the types of resources that can be used as origin servers include lightweight directory access protocol (LDAP) servers, web servers, multimedia servers, application servers, database servers, and other types of resources.
In accordance with an embodiment, the traffic director can perform tasks such as distributing requests to origin servers based on one or more load-balancing methods; routing requests based on specified rules; caching frequently accessed data; prioritize traffic; and controlling the quality of service.
From a performance perspective, in accordance with an embodiment, the traffic director can include an architecture that enables it to handle large volumes of traffic with low latency. For example, embodiments can be optimized for use within a high-performance computing environment such as, e.g., Oracle Exalogic Elastic Cloud, or to communicate with origin servers at the back-end using a high performance communication fabric such as, e.g., InfiniBand. In accordance with an embodiment, to support high availability, the traffic director can recognize failover groups of traffic director instances that provide active-passive or active-active failover. As the volume of traffic to a network increases, the traffic director environment can be scaled by reconfiguring the traffic director with additional back-end servers to which it can route requests, or by modifying the rate at which traffic is communicated.
From an administration perspective, in accordance with an embodiment, the traffic director is designed to be easy to install, configure, and use; and can include a simple, wizard-driven graphical interface, as well as a robust command-line interface, for use by an administrator in managing traffic director instances. For any particular organization, depending on their business requirements, such as the number of back-end applications for which they want to use the traffic director to balance requests, their internal requirements such as security, and the traffic director features they wish to use, the traffic director topology can be varied to address their needs. For example, a simple traffic director topology might initially utilize a single traffic director instance running on a dedicated compute node and distributing client requests to a pool of servers at the back-end. To avoid a single point of failure, an administrator can configure two homogenous traffic director instances running on different nodes and forming an active-passive failover pair. To improve resource utilization, an administrator can configure the two traffic director instances in active-active mode with two virtual IP addresses.
GLOSSARY
In accordance with an embodiment, the following terms are used herein. It will be evident that, in accordance with other embodiments, additional and/or different terms can be used.
Configuration: A collection of configurable elements (e.g., metadata) that determines the run-time behavior of a traffic director instance. In accordance with an embodiment, a typical configuration contains definitions for listeners (e.g., IP address and port combinations) on which the traffic director should listen for requests, together with information about servers at the back-end to which the requests should be sent. The traffic director can read the configuration when a traffic director instance starts, and while processing client requests.

Instance (Traffic Director Instance): A traffic director server that is instantiated from a configuration and deployed on an administration node or the administration server.

Cluster: A collection of two or more traffic director instances that are created from the same configuration.

Failover Group: Two or more traffic director instances grouped by a virtual IP address (VIP). In accordance with an embodiment, a failover group provides high availability in active-passive mode; wherein requests are received at the VIP and routed to the instance that is designated as the primary instance; if the primary instance is not reachable, requests are routed to the backup instance. In accordance with an embodiment, for active-active failover, two failover groups are required, each with a unique VIP, but both comprising the same nodes with the primary and backup roles reversed; each instance in the failover group is designated as the primary instance for one VIP, and the backup for the other VIP.

Administration Server: A specially configured traffic director instance that hosts the interfaces, including administration console and command-line interface, through which an administrator can create traffic director configurations, deploy them as instances on administration nodes, and manage the instances.

Administration Node: A physical server that is designated as a host on which the administrator can deploy traffic director instances. In accordance with an embodiment, on a given node, the administrator can deploy only one instance of a configuration.

INSTANCE_HOME: A directory of the administrator's choice, on the administration server or an administration node, in which the configuration data and binary files pertaining to traffic director instances are stored.

ORACLE_HOME: A directory of the administrator's choice in which the administrator installs the traffic director binaries.

Administration Console: A web-based graphical interface on the administration server that the administrator can use to create, deploy, and manage traffic director instances.

Client: In accordance with an embodiment, an agent (e.g., a web browser or an application) that sends requests (e.g., HTTP and HTTPS requests) to traffic director instances. Examples of the types of clients that can be used with the system include computer servers, laptop computers, portable devices such as smartphones, and other types of computing devices, some of which may include, e.g., a web browser application for accessing a web server.

Origin Server: In accordance with an embodiment, a resource or server at the back-end, to which the traffic director forwards the requests that it receives from clients, and from which it receives responses to client requests. Examples of the types of resources that can be used as origin servers include lightweight directory access protocol (LDAP) servers, web servers, multimedia servers, application servers, database servers, and other types of resources.

Origin-server Pool: A collection of origin servers that host the same application or service, and that the administrator can load-balance by using the traffic director. In accordance with an embodiment, the traffic director distributes client requests to servers in the origin-server pool based on the load-distribution method(s) that are specified for that pool.

Virtual Server: A virtual entity within a traffic director server instance that provides a unique IP address (or host name) and port combination, through which the traffic director can serve requests for one or more domains. In accordance with an embodiment, a traffic director instance on a node can contain multiple virtual servers. The administrator can configure settings such as the maximum number of incoming connections specifically for each virtual server, and can also customize how each virtual server handles requests.

FIG. 1 illustrates a computing environment which includes a load balancer or traffic director, in accordance with an embodiment. As shown in FIG. 1, in accordance with an embodiment, the traffic director 100 (referred to herein in some embodiments as Oracle Traffic Director (OTD)) can be deployed on one or more physical computer servers 101 (or similar computing devices that include a processor (CPU), memory, and storage), and can include one or more traffic director instances 102, 104, which in turn can communicate with one another using a high-availability heartbeat or similar means 106.
For any particular organization, depending on their business requirements, such as the number of back-end applications for which they want to use the traffic director to balance requests, their internal requirements such as security, and the traffic director features they wish to use, the traffic director topology can be varied to address their needs. The back-end can include one or more origin servers 110, examples of which can include LDAP servers 114, web servers 118, multimedia servers 122, application servers 126, and database servers 128. In accordance with an embodiment, the application server can be a WebLogic server (WLS). Other types of origin servers, and application servers, can be used, depending on the particular needs of the organization. Each of the origin servers can communicate with one another, and with the traffic director, via an internal network 130 such as an Ethernet network.
In accordance with an embodiment, the traffic director can receive requests from clients 134, via an external network 136, the Internet 138, and in the case of many organizations a firewall 139. Examples of the types of clients that can be used with the system include computer servers, laptop computers, portable devices such as smartphones, and other types of computing devices, some of which may include, e.g., a web browser application for accessing a web server.
FIG. 2 illustrates the use of a traffic director with one or more pools or origin servers, in accordance with an embodiment. In the example illustrated in FIG. 2, the traffic director is used with two pools, including a (first) pool of application servers 170, having four application servers, here indicated as A 172, B 174, C 176, D 178; and a (second) pool of web servers 180, having three web servers, here indicated as A 182, B 184, C186. In accordance with other embodiments and examples, other types and numbers of pools and servers can be used, depending on the particular needs of the organization.
In the example illustrated in FIG. 2, the topology comprises two traffic director instances (102 and 104) forming an active-passive failover group 150, and including a single virtual IP address 190 for receipt of client requests. When the active instance (in this example instance 102) receives a request 190, 192, 194, it determines the server pool to which the request should be sent, and forwards the request 197, 198 to one of the servers in that pool, based on the load-distribution method(s) that are specified for that pool.
Although the example shown in FIG. 2 illustrates the use of two server pools at the back-end, an administrator can configure the traffic director to route requests to servers in multiple pools. In the active-passive setup illustrated in FIG. 2, one node in the failover group is redundant at any point in time. In accordance with an embodiment, to improve resource utilization, the administrator can configure the two traffic director instances in active-active mode with two virtual IP addresses; in this scenario each instance caters to requests received on one virtual IP address, and backs up the other instance.
FIG. 3 illustrates a traffic director architecture, in accordance with an embodiment. In accordance with an embodiment, the traffic director can include an architecture that enables it to handle large volumes of traffic with low latency. Embodiments can also be optimized for use within a high-performance computing environment, or to communicate with origin servers at the back-end using a high performance communication fabric.
As shown in FIG. 3, in accordance with an embodiment, the traffic director can include one or more Netscape portable runtime (NSPR) 202 and Network Security Services (NSS) 206 layers. In accordance with an embodiment, the traffic director can also include an HTTP engine 210 having one or more access control 212, logging 214, HTTP compression 216, I/O filter 218, error handling 220, rate shaping 222, intrusion detection 224, or other components; and a reverse proxy component 230 having one or more http client 232, response client 234, health check 236, routing policies 238, load controls 240, load balancer 244, WLS support 246, sticky routing 248, or other components. In accordance with an embodiment, the traffic director can also include an HTTP connection handler 250 having one or more acceptor threads 252, worker threads 254, keep-alive threads 256, or other components. In accordance with an embodiment, the traffic director can also include a TCP connection handler 260 having one or more TCP threads 262, load balancer 264, or other components. In accordance with an embodiment, the traffic director can also include one or more events schedule 270, dynamic configuration 272, monitoring 274, or other components.
It will be evident that, in accordance with other embodiments, additional and/or different components can be used.
FIG. 4 illustrates a traffic director administration environment and interface, in accordance with an embodiment. From an administration perspective, the traffic director is designed to be easy to install, configure, and use; and can include a simple, wizard-driven graphical interface, as well as a robust command-line interface, for use by an administrator in managing traffic director instances. As shown in FIG. 4, in accordance with an embodiment, the traffic director can include one or more traffic director instances 280, 281, 282, wherein at least one of the instances is designated an administration server (280), while other instances are designated as administration nodes (281, 282).
In accordance with an embodiment, an administration environment 284 includes an administration interface 285, which in turn includes one or more of an administration console (GUI) 286 and/or a command line interface 288, that enables an administrator 290 to configure or otherwise administer 292 the traffic director, or its instances 294, 296.
Dynamic Cache Data Decompression
In accordance with an embodiment, the traffic director can be configured to respond to requests from clients by serving content from origin servers either as compressed data, or by dynamically decompressing the data before serving it, should a particular client prefer to receive a non-compressed variant of the data.
In accordance with an embodiment, the determination as to whether to serve data in either its compressed, or decompressed format, can be provided in the initial client request, e.g., through the use of HTTP headers, which provides flexibility and interoperability. The compression and decompression of such data can be configured to work together with the traffic director's built-in HTTP caching functionality.
FIG. 5 illustrates the use of dynamic HTTP decompression in a traffic director environment, in accordance with an embodiment. As shown in FIG. 5, in accordance with an embodiment, the traffic director 900 can include one or more traffic director instances 902, for distributing client requests to origin servers 910, including one or more pools 912 of resource servers 914.
In accordance with an embodiment, the traffic director includes a cache 904, which can be enabled for use with one or more of the origin servers. Although shown in FIG. 5 as a single cache which is shared by several traffic director instances, in accordance with an embodiment several such caches can be used, and/or each traffic director instance can have its own cache.
In accordance with an embodiment, when caching is enabled, as client requests are communicated 920 to the origin servers, and content is returned 922 from those origin servers in response to the requests, the traffic director can cache one or more sets of data corresponding to origin server content, within its cache, according to its configuration. As an illustrative example, a particular origin server may be configured to serve image files (e.g. GIF files) and other content to clients, and the traffic director may be configured to cache the image files received from that particular origin server within its cache, for a particular period of time.
In accordance with an embodiment, the traffic director operates as an in-memory database, which means that caching data requires use of computer memory, and which in turn affects both system cost and performance. To address this, in accordance with an embodiment, the traffic director can compress the data to be stored in its cache, prior to caching the compressed data 926, 927, 928. This reduces the overall cache size required, and hence memory requirements and/or allows a greater number of data entries to be stored within a particular cache size.
In accordance with an embodiment, the cached data can then be provided to a client in response to a request from the client, either in its compressed format, or in a decompressed format, depending on the needs of the client.
For example, while some (e.g., browser) clients can accept compressed data within a response, other clients (e.g., mobile phones) may require response data to be provided in a non-compressed format.
As shown in FIG. 5, in accordance with an embodiment, a client A 930 can indicate to the traffic director that a response can include compressed data 932. In accordance with an embodiment, this indication can be communicated by the client to the traffic director as part of a request component (e.g., in the case of HTTP traffic, a HTTP request header). In response, the traffic director can either communicate the request to the origin server to obtain a response, or, if the traffic director determines that a copy of the data is currently stored within its cache, in a compressed format (e.g., compressed data A 926), it can return 936 that data, in the compressed format, to the client.
As further shown in FIG. 5, In accordance with an embodiment, a client B 940 can indicate to the traffic director that a response cannot include compressed data (i.e., that only non-compressed data is acceptable) 942. In accordance with an embodiment, this indication can be similarly communicated by the client to the traffic director as part of a request component, e.g., a HTTP request header. In response, the traffic director can again either communicate the request to the origin server to obtain a response, or, if the traffic director determines that a copy of the data is currently stored within its cache in a compressed format (e.g., compressed data B 927), decompress that data 944, and return the decompressed variant 946 of the data to the client.
Although illustrated in FIG. 5 as affirmative indications from a client, e.g., through the use of HTTP request headers, in accordance with an embodiment the system can also recognize defaults, e.g., that by default only non-compressed data should be considered acceptable to a client, unless a client indicates otherwise, and operate accordingly.
Using the above functionality, the cache need not store the data in two different (e.g., compressed versus non-compressed) formats, to suit the needs of different clients, but instead only a single compressed data instance/format need be stored within the cache, and the data decompressed as needed depending on the needs of the particular client making the request.
FIG. 6 is a flowchart of a method for providing dynamic HTTP decompression in a traffic director environment, in accordance with an embodiment. As shown in FIG. 6, at step 950, a traffic director environment is provided, including a traffic director having one or more traffic director instances, and origin servers having one or more pools of resource servers. At step 952, the traffic director is enabled to perform caching and compression of content or data received from the origin servers, and during the course of processing requests from clients, store one or more compressed data at the traffic director's cache. At step 954, the traffic director can receive a request from a client, for a particular content or data, together with an indication as to whether that client can accept a response as compressed data and/or requires decompressed data. At step 956, if the requested content is in the cache, the traffic director can provide a response to the client using the data stored in the cache, including, if the client indicates a requirement for decompressed data, then decompressing the cache's data dynamically, as part of preparing the response.
Support for Hardware-Assisted Compression Primitives
In accordance with an embodiment, the traffic director can be configured to make use of hardware-assisted compression primitives, for example Intel's Integrated Performance Primitives (IPP), to further improve the performance of its data compression and decompression, including the HTTP caching and dynamic decompression features described above.
In accordance with an embodiment, a computer hardware, such as a processor, can be associated with a compression/decompression library, which in turn can be used to improve the performance of compression and decompression operations on certain processors. For example, some computer hardware manufactures provide a zlib library for use with their product (e.g., Intel provide its IPP library, which can be preloaded into the system during startup. In accordance with an embodiment, if a compression/decompression library is made available, the traffic director can make use of the library to improve performance of its compression and decompression operations.
FIG. 7 illustrates support for hardware primitives, for use with dynamic HTTP decompression in a traffic director environment, in accordance with an embodiment. As shown in FIG. 7, in accordance with an embodiment, the traffic director can be provided on a computer server 970 that includes a processor 972. In accordance with an embodiment, the system comprises a compression/decompression library 974 (e.g., a zlib library). When the traffic director needs to compress or decompress content or data, for example in decompressing cache data in response to a client, it can utilize 980, 982 the compression/decompression library, to take advantage of hardware-assisted compression primitives provided by the processor.
The present invention may be conveniently implemented using one or more conventional general purpose or specialized digital computer, computing device, machine, or microprocessor, including one or more processors, memory and/or computer readable storage media programmed according to the teachings of the present disclosure. Appropriate software coding can readily be prepared by skilled programmers based on the teachings of the present disclosure, as will be apparent to those skilled in the software art.
In some embodiments, the present invention includes a computer program product which is a non-transitory storage medium or computer readable medium (media) having instructions stored thereon/in which can be used to program a computer to perform any of the processes of the present invention. The storage medium can include, but is not limited to, any type of disk including floppy disks, optical discs, DVD, CD-ROMs, microdrive, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
The foregoing description of the present invention has been provided for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed. Although some of the described embodiments describe features in the context of an Oracle Traffic Director environment, the described features can also be used in the context of other computing environments. Many modifications and variations will be apparent to the practitioner skilled in the art. The embodiments were chosen and described in order to best explain the principles of the invention and its practical application, thereby enabling others skilled in the art to understand the invention for various embodiments and with various modifications that are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the following claims and their equivalence.

## Claims

1. A system which provides data decompression in a traffic director environment, comprising:
a traffic director, executing on one or more microprocessors, wherein the traffic director includes a plurality of traffic director instances that use a single virtual IP address for receipt of requests from a client, wherein the traffic director is configured to communicate the requests from the client to origin servers having one or more pools of resource servers; and
a cache in the traffic director, wherein the cache is enabled for use with one or more of the origin servers, for caching data corresponding to origin server content, wherein the traffic director compresses the data prior to caching the data;
wherein the traffic director is configured to make use of hardware-assisted compression primitives provided by the one or more microprocessors to improve performance of the data compression and decompression, and operates to
receive from the client a request that includes a header indicating whether the client accepts compressed data or non-compressed data, and
provide cached data in a format to the client based on the indication from the client.

2. The system of claim 1, wherein when the client requires non-compressed data, the traffic director communicates the request to an origin server to obtain a response, or if the traffic director determines that a copy of the data is currently stored within its cache, in a compressed format, decompresses that data and returns a decompressed variant of the data to the client.

3. The system of claim 1, wherein a particular origin server is configured to serve image files and other content to the client, and the traffic director is configured to cache a selection of the files received from that origin server in response to requests, within its cache, for a particular period of time.

4. The system of claim 1, wherein the system includes a compression/decompression library, which in turn is used to improve the performance of compression and decompression operations on certain processors.

5. The system of claim 1, wherein the plurality of traffic director instances are configured to communicate with one another using a heartbeat.

6. The system of claim 1, wherein the traffic director operates to recognize whether the client accepts data in a compressed or decompressed format by default.

7. The system of claim 1, wherein the traffic director includes a plurality of caches, wherein each of the plurality of caches is enabled for one of the plurality of traffic director instances for caching data corresponding to an origin server.

8. The system of claim 1, wherein the traffic director utilizes a compression/decompression library to make use of the hardware-assisted compression primitives provided by the one or more microprocessors.

9. A method for providing data decompression in a traffic director environment, comprising:
providing a traffic director executing on one or more microprocessors, wherein the traffic director includes a plurality of traffic director instances that use a single virtual IP address for receipt of requests from a client, wherein the traffic director is configured to communicate the requests from the client to origin servers having one or more pools of resource servers;
providing a cache, which is enabled for use with one or more of the origin servers, for caching data corresponding to origin server content, wherein the traffic director compresses the data, prior to caching the data, wherein the traffic director is configured to make use of hardware-assisted compression primitives provided by the one or more microprocessors to improve performance of the data compression and decompression;
receiving, at the traffic director, a request from the client, wherein the request includes a header indicating whether the client accepts compressed data or non-compressed data; and
providing cached data in a format to the client based on the indication from the client.

10. The method of claim 9, wherein when the client requires non-compressed data, the traffic director communicates the request to an origin server to obtain a response, or if the traffic director determines that a copy of the data is currently stored within its cache, in a compressed format, decompresses that data and returns a decompressed variant of the data to the client.

11. The method of claim 9, wherein a particular origin server is configured to serve image files and other content to the client, and the traffic director is configured to cache a selection of the files received from that origin server in response to requests, within its cache, for a particular period of time.

12. The method of claim 9, further comprising providing a compression/decompression library, which in turn is used to improve the performance of compression and decompression operations on certain processors.

13. The method of claim 9, wherein the plurality of traffic director instances are configured to communicate with one another using a heartbeat.

14. The method of claim 9, wherein the traffic director operates to recognize whether the client accepts data in a compressed or decompressed format by default.

15. The method of claim 9, wherein the traffic director includes a plurality of caches, wherein each of the plurality of caches is enabled for one of the plurality of traffic director instances for caching data corresponding to an origin server.

16. The method of claim 9, wherein the traffic director utilizes a compression/decompression library to make use of the hardware-assisted compression primitives provided by the one or more microprocessors.

17. A non-transitory computer readable storage medium, including instructions stored thereon which when read and executed by one or more computers cause the one or more computers to perform the steps comprising:
configuring a traffic director executing on one or more microprocessors, wherein the traffic director includes a plurality of traffic director instances to use a single virtual IP address for receipt of requests from a client, wherein the traffic director is configured to communicate the requests from the client to origin servers having one or more pools of resource servers;
providing a cache, which is enabled for use with one or more of the origin servers, for caching data corresponding to origin server content, wherein the traffic director compresses the data, prior to caching the data, wherein the traffic director is configured to make use of hardware-assisted compression primitives provided by the one or more microprocessors to improve performance of the data compression and decompression;
receiving, at the traffic director, a request from the client, wherein the request includes a header indicating whether the client accepts compressed data or non-compressed data; and
providing cached data in a format to the client based on the indication from the client.

18. The non-transitory computer readable storage medium of claim 17, wherein when the client requires non-compressed data, the traffic director communicates the request to an origin server to obtain a response, or if the traffic director determines that a copy of the data is currently stored within its cache, in a compressed format, decompresses that data and returns a decompressed variant of the data to the client.

19. The non-transitory computer readable storage medium of claim 17, wherein a particular origin server is configured to serve image files and other content to the client, and the traffic director is configured to cache a selection of the files received from that origin server in response to requests, within its cache, for a particular period of time.

20. The non-transitory computer readable storage medium of claim 17, further comprising providing a compression/decompression library, which in turn is used to improve the performance of compression and decompression operations on certain processors.

21. The non-transitory computer readable storage medium of claim 17, wherein the traffic director operates to recognize whether the client accepts data in a compressed or decompressed format by default.

22. The non-transitory computer readable storage medium of claim 17, wherein the traffic director includes a plurality of caches, wherein each of the plurality of caches is enabled for one of the plurality of traffic director instances for caching data corresponding to an origin server.