Service Discovery in Microservices With .NET and Consul

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ม.ค. 2025

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

  • @MilanJovanovicTech
    @MilanJovanovicTech  6 หลายเดือนก่อน +1

    Want to master Clean Architecture? Go here: bit.ly/3PupkOJ
    Want to unlock Modular Monoliths? Go here: bit.ly/3SXlzSt

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

    Hello Milan, you content is just amazing, I like the fact that it is covering what you are trying to explain with all required examples and tools, so you can prove the results in practical way, keep going !!!

  • @nandyad
    @nandyad 12 วันที่ผ่านมา

    This is really helpful. Thanks Milan.

  • @SamFugarino
    @SamFugarino 6 หลายเดือนก่อน +1

    Thanks Milan, your last couple of videos have been quite timely.

  • @implicat
    @implicat 6 หลายเดือนก่อน +1

    Amazing video, thank you!

  • @LinnThit-nk1qj
    @LinnThit-nk1qj 3 หลายเดือนก่อน

    Thanks alot.

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

    Thank you!

  • @antonmartyniuk
    @antonmartyniuk 6 หลายเดือนก่อน +2

    Great video.
    Next video idea: YARP load balancer + Consul with few service instances running
    P.S.: any plans on enhancing video quality to 1440p or 2160p ?

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

      I think I'll write about YARP + service discovery first. 😁
      Not planning on changing video quality for now. Which part is lacking? Code not clearly visible?

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

      @@MilanJovanovicTech all is fine with video quality. But 1440 or 2160 is better 😜

  • @MrWTFNETWORK
    @MrWTFNETWORK 6 หลายเดือนก่อน +1

    Is the physical address cached by consul for some time when you do the first lookup?

    • @MilanJovanovicTech
      @MilanJovanovicTech  6 หลายเดือนก่อน +1

      Consul does regular health checks to keep track if the downstream service is available

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

      @@MilanJovanovicTech does a service using AddRoundRobinLoadBalancer() randomly select an instance for every request or is it fixed for the lifetime?

  • @josegomera9066
    @josegomera9066 6 หลายเดือนก่อน +1

    Any videos about Dapr in the future?

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

    Interesting how everything was running on localhost yet Jaeger is showing interesting numbers there.
    Maybe because not configured for production? How will separate network calls if not on the same machine in distributed setup affect overall latency?

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

      Typically the biggest cost there is network round trip time, which can be low if your services are in the same region. I run this via Docker Compose which makes a big perf impact.

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

    Hello Milan, thanks for all your videos and I have been following all your videos. I have a question in regards to consul service discovery as I have used it in the past. My question is is service discovery needed when you are using K8s which we can create deployment and specify replicas with load balancer? And we can also point to the service name rather than the IPaddress.

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

      No, I don't think it's needed with K8s :)

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

    Yarp can be used in combination with Consul in a Gateway service, I wonder?

    • @MilanJovanovicTech
      @MilanJovanovicTech  6 หลายเดือนก่อน +2

      Yes, but you'll have to implement it yourself. I'll probably try making a video about it.

    • @JS-1962
      @JS-1962 6 หลายเดือนก่อน

      @@MilanJovanovicTech Video would be handy

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

    Great video Milan. Can you also cover the .NET Aspire standalone dashboard for Open Telemtry.

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

      Also in your sample app, the correct response for the POST request would be 201 created.

    • @MilanJovanovicTech
      @MilanJovanovicTech  6 หลายเดือนก่อน +2

      I already did: th-cam.com/video/HrRrJ5wTtdk/w-d-xo.html

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

    Hey Milan awesome videos man thanks a bunch, I was trying out this example and I followed it to the dot, but some reason my services on the consul dashboard are giving this error:"TTL expired (last output before timeout follows): ttl", is there anything I am doing wrong ?

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

      No idea, but grab the source code here and check: github.com/m-jovanovic/service-discovery-consul

  • @MdHanif-ob1kp
    @MdHanif-ob1kp 6 หลายเดือนก่อน

    You are awesome. I have one question if I am using rabbitmq for communication between services using consumer. will it be applicable if there are like I have more than one instance of a service and ut consume HTTP call using rabbitmq

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

      I don't get the second part of your question

    • @MdHanif-ob1kp
      @MdHanif-ob1kp 6 หลายเดือนก่อน

      @@MilanJovanovicTech Sorry, let me rephrase my question again. I have 2 api (A and B) and in B I am using MassTransit.IConsumer along with rabbitmq. So that Api A can consume data from B using MassTransit.IRequestClient. Now I have two instances of Api B, So now when Api A will try to consume data from Api B then which instance of API B will give the response. In this can we use the same concept like consul

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

    This can be solved by messaging system …if no , then please explain

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

      More latency, asynchronous communication. There are some downsides over plain HTTP communication.

  • @yetanotherdex
    @yetanotherdex 6 หลายเดือนก่อน +1

    I have never realized how similar this is to DNS

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

    Do we need this feature if we are using K8s , K8s also provides DNS -IP mapping capabilities?