How Data Validation Nearly Destroyed Protobuf

Sdílet
Vložit
  • čas přidán 18. 09. 2023
  • Required fields in protobuf have caused countless outages - sadly we don't have any public postmortems from the outages. Optional fields are what you should use, otherwise you will definitely need to deal with incidents.
  • Věda a technologie

Komentáře • 8

  • @cole.maxwell
    @cole.maxwell Před 9 měsíci +5

    Appreciate your videos, I like the animation, readable code snippets, and beyond tutorial hell topics. Keep it up!

    • @MrCompSciGuy
      @MrCompSciGuy  Před 8 měsíci

      Glad you like them! Appreciate the kind comment 😊

  • @mti2fw
    @mti2fw Před 5 měsíci

    Nice! Flatbuffers have the same problem?

  • @vasiliigulevich9202
    @vasiliigulevich9202 Před 7 měsíci

    AFAIK, required field has smaller footprint than optional, making the choice a serialization concern, not a validation one.

    • @MrCompSciGuy
      @MrCompSciGuy  Před 7 měsíci +2

      No, it uses the same serialization under the hood (tag, your field). And anyways, if you are concerned about the tag size you're dealing with a low enough latency that you probably have one of the few use-cases where rolling your own (de)serialization makes sense

    • @vasiliigulevich9202
      @vasiliigulevich9202 Před 7 měsíci

      @@MrCompSciGuy thanks