13 Introduction to gRPC and Protocol Buffers

preview_player
Показать описание
gRPC is a high performance framework for client server applications. It is designed to be cross platform and is an awesome alternative to RESTful services.

In this episode we take a quick look at gRPC and Protocol Buffers, and how you can use them to build a simple API. This is the first video in a series of content where we dig into gRPC services.

Source Code:

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

Your voice and tone seems to make the lectures stick . I'm subscribing for that alone. Good work.

overstandnigeria
Автор

13th June 2022, the gRPC has changed a bit. The generated code for services and messages are now in separate folders ending with _grpc.pb.go and .pb.go respectively.
Also,
1. At the top of the proto file you need:
`option go_package="/currency";`
2. The command for generation can now be something like this:
`protoc -I protos/ --go_out=. --go-grpc_out=. protos/currency.proto`

evansowamoyo
Автор

First video I've seen from you. Excellen and very helpful.

tylerlofgren
Автор

Excellent work man ! . Regards from Argentina .

MarcelTndl
Автор

Amazing content! So easy to comprehend. Thank you so much!

Fomer
Автор

Hey Nick, if you put a full IP address and a port on Go's listeners, you avoid making the firewall jump everytime you run a server

nopestack
Автор

Great job. You always are a creative programmer
Can you talk about Avro vs gRPC
Can you show us how to use Istio with gRPC in building microservices

JustMe
Автор

this is an amazing video thank you so much

MediaEnraged
Автор

Has there been some large change in the golang grpc package since the time this video was made? I used the command "protoc --go-grpc_out=. path/to/file.proto" to generate my currency_grpc.pb.go file and it looks drastically different than yours.

yeezyyxy
Автор

Thanks for this, how can I use grpcurl in python? want to build some utility tool for testing

ajinkyadeshpande
Автор

i am using bloomrpc to test the grpc it's gui

abdorootuae
Автор

This is wonderful! Thank you, I learned a lot :)

nixkim
Автор

Great video, I was able to utilize this for my first GRPC concept build. Really I'm just a hobbyist but I appreciated the method of your approach. Too often people don't take the time to explain the fundamentals of things first (explanation on proto was perfect). If I had time to read the entire documentation I wouldn't be looking for a youtube video to jumpstart me.

jonathoncronin
Автор

Are you also planning to discuss about deployment of docker containers(go microservices)?

ethashamuddinmohammed
Автор

okei, it breaks my heart when intellisense fails
in your .proto file, when generating go modules, you can write `option go_package = "<dir/package_name>";`
some where else in your project you can call stuff from that package. <package_name>.MyStruct.

evans
Автор

awesome video, one little detail: for me when i followed the steps i had `Base`, `Destination` and `Rate` in json (PascalCase instead of lowercase)
also, i don't have the `[json_name = part when i describe a message.

tested it today

obeydadjeffal
Автор

The tutorials are great, the voice is even better... Kind of like one of those story narrator voices. Keep up the good work mate!

abhikbanerjee
Автор

Another change is that proto grpc now requires generated servers to have forward compatibility. To fix the error, add protos.Unimplemented*Server to your struct (no field name needed) and also add in your constructor. Or, you can opt out of forward compatibility by adding protos.Unsafe*Server instead, or change your protoc to have this command:

Terszel
Автор

I’m really happy I found a comprehensive intro to grpc. Thank you!

mrmaker
Автор

hmmm....

Make a tutorial in which two microservices talk to each other using grpc and protocol buffers. Use both client and server streaming at the same time. It should be fun.

kudoamv