Building a gRPC Service in Golang: Bidirectional Streaming RPC (Tutorial)

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

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

  • @James-mv9qx
    @James-mv9qx Год назад

    Ended up here after going through some other videos. Your tutorials are really good, you're doing a great job of explaining things well without all the fluff, and respecting peoples time. Thanks so much

  • @vizvasrj
    @vizvasrj 6 месяцев назад

    Thank you very much for this tutorial. Since my PC is slower, 30 fps is adequate for my needs.

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

    Im following your series. Very useful! Great and noble job. Thx. Greetings from Cuba

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

    Mario, you have really nice tutorials to understand different types of communications in gRPC! Very useful to code along with them. Moreover, in wearable.proto file, I see that CalculateBeatsPerMinuteRequest message is exactly the same as ConsumeBeatsPerMinuteRequest. Creating different pair of messages for each RCP method of a service, is it a convenion or a good practice? I see that this may become a scalability problem for huge systems. Why not reutilize messages in more than one rpc method?

    • @MarioCarrion
      @MarioCarrion  2 года назад +1

      Creating dedicated messages for requests and responses is a best practice; defining different messages allows you to add fields as needed, with that being said I understand the concern you're having so I recommend you to create messages that could represent a group of fields, for example if we were creating a message that returns "Address" values instead of using flat fields I'd create one message so it can be reused.

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

    Keep going Mario, fantastic content👏

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

    Love the channel. Very useful and concise 🙏

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

    Very useful tutorial thank you.
    Can you make one more video on how we can create multiple client bidirectional streaming or can you suggest how i can do?
    Also i need to send message to specific client

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

      Keep in mind a client connecting could work as a unique bidirectional channel, meaning if we have two clients client1 and client2, then we may be sending different messages depending on what they request; if you want to send specific messages then you need to define a "protocol", it does not have to be fancy it could be something like the client1 saying "i need messageABC" and client2 saying "i need messageXYZ".

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

    Te hizo falta GRPC que se está volviendo el más rápido para comunicación con poto buff y es muy seguro además de sencillo se usar

  • @parth.mandaliya
    @parth.mandaliya 2 года назад

    Can this bi-directional gRPC also send files?
    Can you please reply to that, what modification we need to do for that?

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

      I haven't really tried that, but I don't see why that couldn't be possible; you may need to implement your own "protocol" to determine when a file starts/ends but other than that in theory it seems possible.

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

    Great job !!

  • @tony-go-code
    @tony-go-code 2 года назад

    Thanks 🙏

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

    Does this work fine to be applied for real-time data transfer?

    • @MarioCarrion
      @MarioCarrion  Год назад +1

      Yes, that's one use case.

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

      @@MarioCarrion how about the server stream, can it work for real-time data update?

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

      @@marcelezenagu9874 yes, either way: server, client or bidirectional, it depends on who is streaming data.

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

      @@MarioCarrion how do you mean,"it depends on who is streaming data"
      I'm looking to slide you dm on probably LINKEDIN