myzhan / avroipc

Avroipc is a pure-go-implemented client for flume's avro source
MIT License
4 stars 6 forks source link

Add buffered transport, close #13 #14

Closed vykulakov closed 4 years ago

vykulakov commented 4 years ago

Using compression with buffer: image

Using compression without buffer: image On the second screenshot, ten or more lines are not shown.

So buffering makes things much better.

vykulakov commented 4 years ago

The same result can be observed without data compression. It happens because of the framing layer: it creates and writes immediately to a socket frame serials, frame sizes, number of frames, frame content and so on. And it results in many separated network requests.