druid icon indicating copy to clipboard operation
druid copied to clipboard

Use smile format instead of json for internal Druid process communication.

Open surekhasaharan opened this issue 7 years ago • 4 comments

For internal communication between Druid processes, switching to a binary format would provide reduction in bytes transferred over the network and better performance. This should be done for transferring published segments data between coordinator and broker and possibly at other places.

surekhasaharan avatar May 30 '19 05:05 surekhasaharan

Adding to 0.15.0 milestone as it also concerns internal RPC API (as discussed in #7571)

leventov avatar May 30 '19 16:05 leventov

This doesn't need to be done in 0.15.0, since HTTP supports negotiated response types: the client sends an Accept header with a preference-ranked list of content types that it supports, and the server picks one and responds with it, setting the Content-Type header to the one it chose. IMO, the best way to switch to smile is to adjust things at a deeper layer so all Druid JSON endpoints support this kind of negotiation, and could return either JSON or Smile based on what the client supports and prefers.

gianm avatar May 30 '19 18:05 gianm

I don't think all breaking changes in internal API should be a release blocker. And as @gianm said, it can be compatible.

jihoonson avatar May 30 '19 19:05 jihoonson

Just curious what is the rationale behind choosing Smile amongst myriads of binary encoding formats JSON binary encoding formats like MessagePack, BSON, BJSON etc or others like Protocol Buffers, Thrift, Avro etc.

sashidhar avatar May 31 '19 13:05 sashidhar