March 2021
Intermediate to advanced
260 pages
5h 45m
English
Protobuf offers all kinds of useful features:
With protobuf, you encode your semantics once and use them across your services to ensure a consistent data model throughout your whole system. My colleagues and I built the infrastructures at my last two companies on microservices, and we had a repo called “structs” that housed our protobuf and their compiled code, which all our services depended on. By doing this, we ensured that we didn’t send multiple, inconsistent schemas to prod. Thanks to Go’s type checking, we could update our structs dependency, run the tests that touched our data models, and the compiler and tests would tell us whether our code was consistent with our schema.
Read now
Unlock full access