Using Compression to Reduce Load

Another way to reduce network load is to compress the data being sent. Overusing compression is dangerous. Compression reduces network load. It also increases computational cycles required for generating a response. Some items, such as large HTML tables or XML files, have a great deal of repetition within them. Others have very little, such as images stored in modern formats like Portable Network Graphics (PNG). Additionally, small items actually take longer to transfer if compressed and use more client and server resources than if they were sent without compression. Decisions must be made as to when compression is appropriate and when it is not.

There are two opportunities on the server for compression to occur: ...

Get Oracle Database Ajax & PHP Web Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.