API Design · Senior · Question 25 of 75

What are the backward-compatibility rules for Protocol Buffers messages?

Explanation

Protobuf encodes field numbers, not names, so renaming is wire-safe, but renumbering corrupts data between versions.

Further reading

Problem with a question

API Design · Senior · question 25

Test yourself

Take the API Design · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz