Like a blueprint that any contractor (any language) can use to build the same structure.
Proto files define message types and services. Field numbers (= 1, = 2) identify fields in the binary encoding — they never change once set.
> protoc generates: user_pb.js, user_grpc_pb.js > Fields encoded as binary — 5-10x smaller than JSON > Field number 1 = id, 2 = name (stable across versions)
Like a blueprint that any contractor (any language) can use to build the same structure.
Proto files define message types and services. Field numbers (= 1, = 2) identify fields in the binary encoding — they never change once set.
> protoc generates: user_pb.js, user_grpc_pb.js > Fields encoded as binary — 5-10x smaller than JSON > Field number 1 = id, 2 = name (stable across versions)
Sign in to cast your vote
Sign in to share your feedback and join the discussion.