2 ms·
OK, what do you do when a message comes in missing a field? Crash the server?
by hgsgm 3y ago
OK, what do you do when a message comes in missing a field?
Crash the server?
- dastbe 3y agoyou reject the message in the framework? and if the client is aware it’s required they fail to send? the bigger challenge with proto3 is that people use it both for rpc and storage, in some cases directly serializing rpc payloads. Disregarding how awful a choice that is, you likely want to trade off flexible deserialization of old data at the expense of rigidity, and conformance.