News for hackers. Stuff that matters.
Re:Microservices and the First Law of Distributed Objects by XorNot on Thursday August 14, 2014 @04:29AM (#8176561)
I think 'streaming' is the operative difference there. If you're opening a connection and sending large amounts of JSON 1-way then header/encoding overhead is basically not a problem. But a 2-way RPC protocol is basically making a separate HTTP request each time. For log file messages you're going to be sending more header more object definitions and headers than data.

I'm curious how you're formatting your JSON too - some formats are going to be way lighter then others.

Re:Microservices and the First Law of Distributed Objects by angersock on Thursday August 14, 2014 @11:37AM (#8177965)
Ah, good point on the RPC stuff!

That suggests pretty much mandatory use of keep-alive headers in infrastructure services, no?