Getting Started with Protocol Buffers in Go - Tutorial

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

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

  • @codelinx
    @codelinx 8 месяцев назад

    Great info. Always find the tutorials you make really cleanly structured.

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

    Thank you, that was a lot easier than I thought it was going to be.

  • @brus54per
    @brus54per 3 года назад

    Heavy snowstorm outside but you made the sun shine :) Thank you for videos on interesting topics on Go and not just the bare basics. Seems like I'll be spending some coffee on you...

  • @Oswee
    @Oswee 6 лет назад +6

    Great. Please continue on gRPC path!

  • @drynnbavis
    @drynnbavis 4 года назад +7

    Would have been nice if you showed the size of the protobuff version of person for comparison to JSON and XML, otherwise nice vid : )
    I guess we could find it for ourselves by counting the bytes in your marshalled output? I'm just lazy tbh

  • @3dmagix
    @3dmagix 6 лет назад +30

    Great tutorial and I love your accent! I keep hearing "egg smell" when you say XML. :)

  • @nihalsrivastava6844
    @nihalsrivastava6844 2 года назад

    Hey man, really nice video. Sweet and simple. Easy to understand.

  • @sowellmemo
    @sowellmemo 4 года назад +2

    Cool. I've never heard of it. I was searching how to use the X protocol on mysql, and then it was mentioned there. Got curious and ended up here :D

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

    Thank you for the video!! Keep it up!!

  • @kudoamv
    @kudoamv 5 лет назад

    Works like a charm

  • @sarvarnishonboyev4233
    @sarvarnishonboyev4233 3 года назад +1

    Nice video. Are you from Scotland? :)

  • @kepinghu3761
    @kepinghu3761 5 лет назад +1

    A lot of help, thanks!

  • @ShivangiSingh-wc3gk
    @ShivangiSingh-wc3gk 5 лет назад +1

    Please can you make a video on how and why we set up the paths?

  • @manjeshk11
    @manjeshk11 5 лет назад

    Hi Elliot, I followed your tutorial and generated person.pb.go successfully but when trying to execute the code in main.go file like you, getting the error like "./main.go:14:12: undefined: Person'.
    Please help me in this same as i am a beginner in golang. Thanks in advance.

  • @shokoufehsafa5987
    @shokoufehsafa5987 2 года назад

    very useful thanx

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

    i have 1 query while unmarshalling we are using getAge and GetName method but we didn't define it and how it is working ?

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

      i got it, thanks

  • @WolfBoy2700
    @WolfBoy2700 5 лет назад

    Very useful thank you!

  • @levigame1657
    @levigame1657 5 лет назад +1

    what' your IDE tool?

  • @edtix
    @edtix 4 года назад

    What is this line exactly doing?
    newElliot = &Person{}
    It points to address of Person struct? It seems to be unreasonable. Is there other use of & at the beginning of type?

    • @vibhordubey1549
      @vibhordubey1549 4 года назад

      @Ed Tix It is creating object alternative code can be obj :=new(Person)

  • @pricesmith1793
    @pricesmith1793 3 года назад

    I know this is beyond the scope of this lecture, but anyone know about grpc/protobuf schema stitching? Sort of like Apollo Federation or Google's Rejoiner. I'm kind of a newb working on a project, and one of my services is essentially a client to about 15-20 different api's. I'd love to only have a single unified layer expose that service to the rest of the services. Hopefully that makes sense!

  • @mattwallington5363
    @mattwallington5363 4 года назад +1

    You forgot to circle back around to the final size of your serialized object using protobufs rather than XML or JSON. Looks like the final size of the original object that includes your name and age came out to 10 bytes. Compared to 35 bytes for JSON and 56 bytes for XML.

    • @Tutorialedge
      @Tutorialedge  4 года назад +1

      Good catch!, Thanks for doing the math and highlighting this!

    • @mattwallington5363
      @mattwallington5363 4 года назад

      @@Tutorialedge Forgot to add that it is a great tutorial!

  • @syberian_tyger
    @syberian_tyger 5 лет назад

    How do you made coloured ()?

    • @Tutorialedge
      @Tutorialedge  5 лет назад +2

      The Bracket Pair Colorizer extension for visual studio code handles this for me! A very handy tool when trying to quickly scan over code! :D

    • @christianhowell8283
      @christianhowell8283 2 года назад

      I am so thankful you asked this question and thank you @TutorialEdge for bringing this extension to my attention

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

    Most of the cli steps don't work anymore as far as I can tell. This video is 5 years old I didn't really expect it to still work.

  • @Ravi-Singh-001
    @Ravi-Singh-001 5 лет назад

    is there a tutorial with Python?

  • @anshjoshi7362
    @anshjoshi7362 2 года назад

    Just 1 recommendation, if anyone has been getting package as __ in person.pb.go.
    I encountered the same problem and the way to resolve that is to put
    option go_package = "./;main";
    in person.proto file
    Happy learning...

  • @ruudkamphuis9322
    @ruudkamphuis9322 6 лет назад

    Thanks but please increase the fontsize

    • @Tutorialedge
      @Tutorialedge  6 лет назад

      Thank you for the feedback, I will try to improve font size in my future videos!

  • @RyanKearney0
    @RyanKearney0 5 лет назад +1

    Good thing we used a 32 bit integer for the persons age. As we all know it's not uncommon for humans to reach billions of years old.

    • @Tutorialedge
      @Tutorialedge  5 лет назад +3

      You might be calculating age in seconds? ¯\_(ツ)_/¯

    • @TheRobdra
      @TheRobdra 4 года назад +1

      depending on the number stored, it may encode to just one byte because it's a varint under the hood(not including the "tag" of the field) developers.google.com/protocol-buffers/docs/encoding