Practical API Design at Netflix, Part 1: Using Protobuf FieldMask

1 · Netflix, Inc. · Sept. 3, 2021, 5:01 p.m.
By Alex Borysov, Ricky GardinerBackgroundAt Netflix, we heavily use gRPC for the purpose of backend to backend communication. When we process a request it is often beneficial to know which fields the caller is interested in and which ones they ignore. Some response fields can be expensive to compute, some fields can require remote calls to other services. Remote calls are never free; they impose extra latency, increase probability of an error, and consume network bandwidth. How can we understand...