Getting Started with Protocol Buffers in Go - Tutorial

preview_player
Показать описание

● SUBSCRIBE to see more of my Videos & hit that LIKE button to support the channel!

Welcome fellow coders! In this tutorial, we are going to be looking at how you can utilize the Protocol Buffers data format within your Go-based applications. We’ll be covering what the data format is, and why it is an improvement over more traditional data formats such as XML or even JSON. And we’ll dive into a simple example to get us up and running before trying our hands at a more complex example.

By the end of this tutorial, you should be fairly comfortable with the basics and you’ll subsequently be able to go out and build your own more advanced systems.

‎--------------

🎥 Recording Setup

Рекомендации по теме
Комментарии
Автор

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

Celsian
Автор

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

codelinx
Автор

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...

brusper
Автор

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

dmagix
Автор

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

drynnbavis
Автор

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

sowellmemo
Автор

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

lholhofox
Автор

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

nihalsrivastava
Автор

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

ShivangiSingh-wcgk
Автор

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.

mattwallington
Автор

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

kaycay
Автор

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.

manjeshk
Автор

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?

edtix
Автор

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!

pricesmith
Автор

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.

tristaneastburn
Автор

Thanks but please increase the fontsize

ruudkamphuis
Автор

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.

RyanKearney
Автор

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...

anshjoshi
visit shbcf.ru