My client and server are communicating through WebSocket with the JSON serialized data and both are supporting per message deflate and I suppose the JSON data is already compressed. The server is written on go and using gorrilla's WebSocket package. My goal is to decrease more traffic so wondering if I change the JSON serialization to MessagePack and continue to use per-message deflate header would it help to decrease the traffic ?
Asked
Active
Viewed 236 times
1
-
2Encode some sample messages as JSON and MessagePack, compress and compare. – Charlie Tumahai May 29 '19 at 14:43
-
1This depends entirely on the nature and size of your messages and is impossible for us to predict. As Cerise said, measure it. – Peter May 29 '19 at 15:11