Re:Why We’re Switching to gRPC
by dunk010 on Monday May 27, 2019 @06:04PM
(#20025587)
Rich Hickey, the creator of Clojure, gave a talk with some very relevant points in this space (The Language of the System): https://www.youtube.com/watch?v=ROor6_NGIWU
[ Parent
| on HN ]
Re:Why We’re Switching to gRPC
by dustingetz on Tuesday May 28, 2019 @03:14PM
(#20033353)
"gRPC is great because most systems just glue one side effect to another side effect, so what's the point of packaging that into REST" – I think a HN comment from a googler
The great thing about Clojure is that you can make holistic systems that are end-to-end immutable and value-centric, which means the side effects can go away, which means gRPC stops making sense and we can start building abstractions instead of procedures!
His point about protocol buffers (i.e. schema-out-of-band protocols) is unfortunately brief in this talk.
Depending on your use case, you may have to do a lot to work around protocol buffers not being self-describing. I haven't seen a good description of the problem online, but if you find yourself embedding JSON data in protobufs to avoid patching middleware services constantly, you should look at something like Avro or MessagePack or Amazon Ion.