How Data Validation Nearly Destroyed Protobuf

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ก.ย. 2024
  • 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.

ความคิดเห็น • 9

  • @KangoV
    @KangoV 2 หลายเดือนก่อน

    Probuf best practices: "Don't Add a Required Field", "Don’t Change the Type of a Field", "Rarely Use an Integer Field for an ID"

  • @cole.maxwell
    @cole.maxwell ปีที่แล้ว +5

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

    • @MrCompSciGuy
      @MrCompSciGuy  11 หลายเดือนก่อน

      Glad you like them! Appreciate the kind comment 😊

  • @mti2fw
    @mti2fw 8 หลายเดือนก่อน

    Nice! Flatbuffers have the same problem?

  • @vasiliigulevich9202
    @vasiliigulevich9202 10 หลายเดือนก่อน

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

    • @MrCompSciGuy
      @MrCompSciGuy  10 หลายเดือนก่อน +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 10 หลายเดือนก่อน

      @@MrCompSciGuy thanks