Re:What I Wish I Had Known Before Scaling Uber [video]
by mrinterweb on Wednesday September 28, 2016 @01:08PM
(#12599372)
Rest/JSON is not a RPC. Technologies like Thrift can be used for RPC. It depends on how you define low friction for rest + JSON. JSON is schemaless, and that can be great for prototyping, but as soon as deployed services get out of sync, in terms of how they communicate, it becomes more of a burden than an advantage. Thrift, protobuf, avro, can enforce schemas and can raise exceptions for communication mismatches so less defensive programming is needed checking json responses. For internal service communication, I really think using a schema enforcing communication protocol is a good thing.
[ Parent
| on HN ]
Re:What I Wish I Had Known Before Scaling Uber [video]
by _puk on Wednesday September 28, 2016 @03:11PM
(#12600389)
JSON is not inherently schemaless, it's just generally not used with one.
Initiatives like JSONSchema go some way to restoring some constraints to the format and prevents unchecked deviation over time.