Part 5
2 chapters
Performance & Optimization
Binary Protobuf framing over WebSockets, and the throughput work that follows once a socket carries real load.
Chapter 19
Binary Protobuf over WebSockets
A binary Protobuf encoding of the same message, negotiated by subprotocol, about 40 percent smaller than the JSON text frame.
Chapter 20
Optimizing Throughput
Four throughput levers on a socket server: encoding, batching, permessage-deflate and size limits, and how to measure them.