News for hackers. Stuff that matters.
Re:Give Me Back My Monolith by StavrosK on Thursday March 14, 2019 @07:25AM (#19388229)
What serialization format do you all recommend when starting out? Protobufs seems to be the go-to, but what about Cap'n Proto etc?
Re:Give Me Back My Monolith by alexhutcheson on Thursday March 14, 2019 @10:57AM (#19389778)
(personal opinion, not speaking on behalf of my employer)

Start out with protobufs, so you can take advantage of gRPC[1] and all of its libraries and all the other tooling that is out there.

If you profile and determine that serialization/deserialization is actually a bottleneck in your system in a way that is product-relevant or has non-trivial resource costs, then you can look at migrating to FlatBuffers, which can still use gRPC[2].

[1] https://grpc.io/ [2] https://grpc.io/blog/flatbuffers

Re:Give Me Back My Monolith by StavrosK on Thursday March 14, 2019 @11:07AM (#19389872)
Ah, good tip, thanks!
Re:Give Me Back My Monolith by bunderbunder on Thursday March 14, 2019 @12:15PM (#19390626)
I'd agree on starting with protobufs, precisely because it's the go-to. Other options have plenty of advantages, but none are as widely supported.