This is Google's Worst Mistake with Protobuf (it cost them millions!)

Поделиться
HTML-код
  • Опубликовано: 10 дек 2024

Комментарии • 10

  • @KangoV
    @KangoV 5 месяцев назад +1

    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 Год назад +6

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

    • @MrCompSciGuy
      @MrCompSciGuy  Год назад

      Glad you like them! Appreciate the kind comment 😊

  • @mti2fw
    @mti2fw 10 месяцев назад

    Nice! Flatbuffers have the same problem?

  • @vasiliigulevich9202
    @vasiliigulevich9202 Год назад

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

    • @MrCompSciGuy
      @MrCompSciGuy  Год назад +3

      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 Год назад

      @@MrCompSciGuy thanks

  • @monad_tcp
    @monad_tcp Месяц назад

    oh yes, the perils of breaking binary compatibility