Build a gRPC server with Go - Step by step tutorial
ฝัง
- เผยแพร่เมื่อ 7 ก.ย. 2024
- In this video I will show you
- How to init your Go project
- How to create a simple .proto file to define your API
- How to generate Protocol Buffers and gRPC code with protoc
- How to build the server
- How to test it with BloomRPC
Source code of the project: github.com/max...
Finally a video with someone starting from scratch and recently uploaded. Thank you very much!
happy that you liked it
Super simple to understand what gRPC is.
Thank you!
proto file definition completd @ ~ 6:20
code is generated w/ protoc @ ~ 10:00
module entry point first visited @ ~ 12:00
implements Server interface @ ~ 17:50
server launched @ ~ 20:00
Thanks 🙏🏻
No problem, thanks for the excellent resource
Totally agree with Cruzylife. A simple starting from scratch video explanation.
amazing video, covering everything
Excellent. its very clear explanation . Thank you so much
very good explanations, clear and straight to the point. Thanks a lot.
Excellent session. Thank you for sharing the video. Keep going, one suggestion, can you create another video with grpc and cobra cli as a client pls? make us a productive golang developer pls. you got me subscribed.
Well explained, Thanks Maxi. Love from India. 💌
This is awesome. Thank you so much from korea.
Thank you !
Excellent tutorial!
Thank you for those kind words
Excellent video, really helpful. Thanks :D
Thank you for this really well explaining itroduction/tutorial. Would you consider showing us how to do the same but with podman containers instead of using docker? Thank you verry much in advance. Your's Nejat
really amazing tutorial. Learned a lot thank you
Such a great Video!!! Thanks a lot!
This was helpful, thanks!
Great explanation
I believe you can simply run go mod tidy after generation to automatically add the new dependencies
great video!
thanks
Code for the project : github.com/maximilienandile/demo-grpc
Great video, thanks man!
THANKS A LOT!!!
sir can you teach us complete golang api with microservices k8 and azure...i love ur videos
Very well done.
You can use - go mod tidy - to download missing packages.
thanks man, awesome video! so, what do you recommend using instead of bloomrpc since it was archived?
postman now has grpc support
Thank you!!!
thank you
You're welcome. Also do not hesitate if you have new video ideas !
Hey do you have any idea how we can configure gRPC on azure api management?
Thanks a lot
Thanks ! Do not hesitate to tell me if you want me to explain something in a new video
@@maximilienandile go threads with advanced examples maybe ?
@@kemaleddinjohnson5391 thanks for the suggestion I add that to my todo list
@@maximilienandile thanks for the great contents, keep it up )
bro thank you so much, next time you leave your donation account if you want )
Sir, can you setup agent elastic APM go gRPC for Monitoring Services, pls. Cause when i configure, i cannot services statistic
Currently getting an error, "protoc-gen-go-grpc: program not found or is not executable", can you please make a video on how to add it in PATH variable on MAC.
Hello ! can you try running : "go get google.golang.org/protobuf/cmd/protoc-gen-go" and "go get google.golang.org/grpc/cmd/protoc-gen-go-grpc" in your terminal ?
@@maximilienandile That helped, thanks a lot.🥳
Is there no way to run it locally ? what if your repo Is private.
how do I make this work with react native or next js
I have used the exact code but getting an error "Error: Parse Error: Expected HTTP/" on Postman
Can you please post your code and the command you run somewhere so I can check why you have this error
@@maximilienandile Unable to share the code URL here as youtube is revoking the comment. I have shared it via Message to you on LinkedIn. Please assist me on this case.
@@user-ro9ty1qk6r So I checked the code that you sent, I see nothing wrong in the code.
I think the error comes from the client that you use, maybe try another gRPC client
👍
could you upload working code to github / gitlab ?
Yes of course. I will share it once I have created the repo !
Thanks for your feedback
Here is the code : github.com/maximilienandile/demo-grpc !
@@maximilienandile great. thank you.!!!!
Is it possible to run this on AWS lambda?
Hello Simon. I do not think that it's possible directly. For REST endpoints what I usually do is : Have an API Gateway that accepts incoming HTTP request to a Lambda function. I do not think AWS API Gateway allow you to expose gRPC endpoints...
Thank you Andile. great video. Keep it up.
Run it on EKS or ECS/Fargate
👍