gzip string compression?
Hi,
I've been asked to send a JSON message containing various http headers and an XML payload from the HTTP request and HTTP response. Basically Logging the API calls and replies for downstream analytics. The XML payload is quite large most of the time and can be up to 5MB in size. Inspired by Hoolio's Log large HTTP payloads in chunks locally and remotely iRule I'm using HSL to send the JSON to a network server that's connected via Gig-E. However based on the amount of requests and responses in uncompressed form we are looking to get speeds of 6Gbps which will easily exceed the link speed. So I was looking to perform some form of compression on the JSON message that's being sent out using HSL::send but there doesn't seem to be a iRules method, function or library to perform string compression.
Anyone have any ideas or suggestions?
Can tcl libraries be manually added to a F5-BigIP? ie: in /usr/share/tcl8.4/ ?
Cheers, Jason
UPDATED:
Sadly according to this sol15434: Overview of the HTTP Compression profile when activated by a COMPRESS::enable in an iRule only compresses the HTTP Response. 😞
Selective Compression: When checked (enabled), HTTP compression is performed only when a configured iRule contains the COMPRESS::enable command. When cleared (disabled), compression is performed according to the other compression settings specified in the HTTP Compression profile.
Note: Data compression only compresses HTTP server responses, and not client requests.