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

ความคิดเห็น • 66

  • @Cruzylife
    @Cruzylife ปีที่แล้ว +28

    Finally a video with someone starting from scratch and recently uploaded. Thank you very much!

  • @kurshadqaya1684
    @kurshadqaya1684 26 วันที่ผ่านมา

    Super simple to understand what gRPC is.
    Thank you!

  • @gabesusman4592
    @gabesusman4592 ปีที่แล้ว +10

    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

  • @abhirampattarkine995
    @abhirampattarkine995 4 หลายเดือนก่อน

    Totally agree with Cruzylife. A simple starting from scratch video explanation.

  • @yashgupta-dw7sn
    @yashgupta-dw7sn 4 หลายเดือนก่อน +1

    amazing video, covering everything

  • @SunithaChalla-e3z
    @SunithaChalla-e3z หลายเดือนก่อน

    Excellent. its very clear explanation . Thank you so much

  • @acuffaro
    @acuffaro 9 หลายเดือนก่อน +1

    very good explanations, clear and straight to the point. Thanks a lot.

  • @TheMouseJerry-du1md
    @TheMouseJerry-du1md 2 หลายเดือนก่อน

    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.

  • @nirmalkatiyar701
    @nirmalkatiyar701 3 หลายเดือนก่อน

    Well explained, Thanks Maxi. Love from India. 💌

  • @user-oh5yg4sf3j
    @user-oh5yg4sf3j ปีที่แล้ว +1

    This is awesome. Thank you so much from korea.

  • @TheSiddhaartha
    @TheSiddhaartha ปีที่แล้ว +3

    Excellent tutorial!

  • @rhmuller
    @rhmuller 4 หลายเดือนก่อน

    Excellent video, really helpful. Thanks :D

  • @nejathakan5521
    @nejathakan5521 หลายเดือนก่อน

    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

  • @kirubeltesfaye725
    @kirubeltesfaye725 8 หลายเดือนก่อน

    really amazing tutorial. Learned a lot thank you

  • @s......g....4415
    @s......g....4415 8 หลายเดือนก่อน

    Such a great Video!!! Thanks a lot!

  • @vadymbarabanov156
    @vadymbarabanov156 ปีที่แล้ว +1

    This was helpful, thanks!

  • @anishsuman1371
    @anishsuman1371 6 หลายเดือนก่อน

    Great explanation

  • @sczoot6285
    @sczoot6285 2 หลายเดือนก่อน

    I believe you can simply run go mod tidy after generation to automatically add the new dependencies

  • @Armed9-Unranked4-Impotence3
    @Armed9-Unranked4-Impotence3 8 หลายเดือนก่อน +1

    great video!

  • @maximilienandile
    @maximilienandile  ปีที่แล้ว +3

    Code for the project : github.com/maximilienandile/demo-grpc

  • @AhmedSoliman-dk6pc
    @AhmedSoliman-dk6pc ปีที่แล้ว

    Great video, thanks man!

  • @kotlinjava5228
    @kotlinjava5228 ปีที่แล้ว +1

    THANKS A LOT!!!

  • @shreyojitdas9333
    @shreyojitdas9333 4 หลายเดือนก่อน

    sir can you teach us complete golang api with microservices k8 and azure...i love ur videos

  • @BStack
    @BStack 11 หลายเดือนก่อน

    Very well done.

  • @user-fr8wq1ec4j
    @user-fr8wq1ec4j 14 วันที่ผ่านมา

    You can use - go mod tidy - to download missing packages.

  • @Andrew-pt9kc
    @Andrew-pt9kc ปีที่แล้ว +1

    thanks man, awesome video! so, what do you recommend using instead of bloomrpc since it was archived?

    • @marcturelles7684
      @marcturelles7684 10 หลายเดือนก่อน +1

      postman now has grpc support

  • @JhonatanMorais
    @JhonatanMorais 4 หลายเดือนก่อน

    Thank you!!!

  • @monitorcamera8850
    @monitorcamera8850 ปีที่แล้ว +1

    thank you

    • @maximilienandile
      @maximilienandile  ปีที่แล้ว

      You're welcome. Also do not hesitate if you have new video ideas !

  • @ashutoshpandey4271
    @ashutoshpandey4271 หลายเดือนก่อน

    Hey do you have any idea how we can configure gRPC on azure api management?

  • @kemaleddinjohnson5391
    @kemaleddinjohnson5391 ปีที่แล้ว +1

    Thanks a lot

    • @maximilienandile
      @maximilienandile  ปีที่แล้ว +1

      Thanks ! Do not hesitate to tell me if you want me to explain something in a new video

    • @kemaleddinjohnson5391
      @kemaleddinjohnson5391 ปีที่แล้ว +1

      @@maximilienandile go threads with advanced examples maybe ?

    • @maximilienandile
      @maximilienandile  ปีที่แล้ว +1

      @@kemaleddinjohnson5391 thanks for the suggestion I add that to my todo list

    • @kemaleddinjohnson5391
      @kemaleddinjohnson5391 ปีที่แล้ว

      @@maximilienandile thanks for the great contents, keep it up )

  • @LeetCodeUzbekistan
    @LeetCodeUzbekistan 3 หลายเดือนก่อน

    bro thank you so much, next time you leave your donation account if you want )

  • @adermaulana3118
    @adermaulana3118 8 หลายเดือนก่อน

    Sir, can you setup agent elastic APM go gRPC for Monitoring Services, pls. Cause when i configure, i cannot services statistic

  • @varunnayak7374
    @varunnayak7374 ปีที่แล้ว +1

    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.

    • @maximilienandile
      @maximilienandile  ปีที่แล้ว +3

      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 ?

    • @varunnayak7374
      @varunnayak7374 ปีที่แล้ว

      @@maximilienandile That helped, thanks a lot.🥳

  • @handsanitizer2457
    @handsanitizer2457 6 หลายเดือนก่อน

    Is there no way to run it locally ? what if your repo Is private.

  • @justiceessiel6123
    @justiceessiel6123 7 หลายเดือนก่อน

    how do I make this work with react native or next js

  • @user-ro9ty1qk6r
    @user-ro9ty1qk6r 3 หลายเดือนก่อน

    I have used the exact code but getting an error "Error: Parse Error: Expected HTTP/" on Postman

    • @maximilienandile
      @maximilienandile  3 หลายเดือนก่อน

      Can you please post your code and the command you run somewhere so I can check why you have this error

    • @user-ro9ty1qk6r
      @user-ro9ty1qk6r 3 หลายเดือนก่อน

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

    • @maximilienandile
      @maximilienandile  3 หลายเดือนก่อน

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

  • @binliangalexanderpeng
    @binliangalexanderpeng ปีที่แล้ว

    👍

  • @it1860
    @it1860 ปีที่แล้ว +1

    could you upload working code to github / gitlab ?

    • @maximilienandile
      @maximilienandile  ปีที่แล้ว +1

      Yes of course. I will share it once I have created the repo !
      Thanks for your feedback

    • @maximilienandile
      @maximilienandile  ปีที่แล้ว

      Here is the code : github.com/maximilienandile/demo-grpc !

    • @it1860
      @it1860 ปีที่แล้ว

      @@maximilienandile great. thank you.!!!!

  • @simonpetera2486
    @simonpetera2486 ปีที่แล้ว

    Is it possible to run this on AWS lambda?

    • @maximilienandile
      @maximilienandile  ปีที่แล้ว +2

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

    • @simonpetera2486
      @simonpetera2486 ปีที่แล้ว

      Thank you Andile. great video. Keep it up.

    • @continuouslearner
      @continuouslearner ปีที่แล้ว +1

      Run it on EKS or ECS/Fargate

  • @binliangalexanderpeng
    @binliangalexanderpeng ปีที่แล้ว

    👍