I'm running an API Proxy server and want to compress the (uncompressed) response contents I get from the API endpoints in order to send them faster to the client that initiated the request.
However, I'm wondering if there are any tipping points when performing the compression on the server, sending the compressed response content to the client and performing the decompression of the contents on the client-side would actually take longer than just sending the uncompressed response content directly to the client.