Service Discovery in Microservices With .NET and Consul

  Рет қаралды 9,650

Milan Jovanović

Milan Jovanović

Күн бұрын

Пікірлер: 40
@MilanJovanovicTech
@MilanJovanovicTech 4 ай бұрын
Want to master Clean Architecture? Go here: bit.ly/3PupkOJ Want to unlock Modular Monoliths? Go here: bit.ly/3SXlzSt
@hasanrihavi
@hasanrihavi 4 ай бұрын
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 !!!
@MilanJovanovicTech
@MilanJovanovicTech 4 ай бұрын
I appreciate that!
@SamFugarino
@SamFugarino 4 ай бұрын
Thanks Milan, your last couple of videos have been quite timely.
@MilanJovanovicTech
@MilanJovanovicTech 4 ай бұрын
Glad to hear that!
@implicat
@implicat 4 ай бұрын
Amazing video, thank you!
@MilanJovanovicTech
@MilanJovanovicTech 4 ай бұрын
Glad it helped!
@mahmoudalballah3387
@mahmoudalballah3387 Ай бұрын
Thank you!
@MilanJovanovicTech
@MilanJovanovicTech Ай бұрын
Sure thing
@LinnThit-nk1qj
@LinnThit-nk1qj Ай бұрын
Thanks alot.
@MilanJovanovicTech
@MilanJovanovicTech Ай бұрын
Glad to help
@MrWTFNETWORK
@MrWTFNETWORK 4 ай бұрын
Is the physical address cached by consul for some time when you do the first lookup?
@MilanJovanovicTech
@MilanJovanovicTech 4 ай бұрын
Consul does regular health checks to keep track if the downstream service is available
@wennwenn1422
@wennwenn1422 4 ай бұрын
@@MilanJovanovicTech does a service using AddRoundRobinLoadBalancer() randomly select an instance for every request or is it fixed for the lifetime?
@josegomera9066
@josegomera9066 4 ай бұрын
Any videos about Dapr in the future?
@MilanJovanovicTech
@MilanJovanovicTech 4 ай бұрын
Not for the moment
@bangonkali
@bangonkali 4 ай бұрын
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 4 ай бұрын
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.
@timur2887
@timur2887 4 ай бұрын
Yarp can be used in combination with Consul in a Gateway service, I wonder?
@MilanJovanovicTech
@MilanJovanovicTech 4 ай бұрын
Yes, but you'll have to implement it yourself. I'll probably try making a video about it.
@JS-1962
@JS-1962 4 ай бұрын
@@MilanJovanovicTech Video would be handy
@dhruvmathur5315
@dhruvmathur5315 3 ай бұрын
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 3 ай бұрын
No idea, but grab the source code here and check: github.com/m-jovanovic/service-discovery-consul
@iDreamsHubInc
@iDreamsHubInc 4 ай бұрын
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 4 ай бұрын
No, I don't think it's needed with K8s :)
@ChristopherBriddock
@ChristopherBriddock 4 ай бұрын
Great video Milan. Can you also cover the .NET Aspire standalone dashboard for Open Telemtry.
@ChristopherBriddock
@ChristopherBriddock 4 ай бұрын
Also in your sample app, the correct response for the POST request would be 201 created.
@MilanJovanovicTech
@MilanJovanovicTech 4 ай бұрын
I already did: kzbin.info/www/bejne/fqO1o31rrLmnms0
@MdHanif-ob1kp
@MdHanif-ob1kp 4 ай бұрын
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 4 ай бұрын
I don't get the second part of your question
@MdHanif-ob1kp
@MdHanif-ob1kp 4 ай бұрын
@@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 4 ай бұрын
This can be solved by messaging system …if no , then please explain
@MilanJovanovicTech
@MilanJovanovicTech 4 ай бұрын
More latency, asynchronous communication. There are some downsides over plain HTTP communication.
@antonmartyniuk
@antonmartyniuk 4 ай бұрын
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 4 ай бұрын
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 4 ай бұрын
@@MilanJovanovicTech all is fine with video quality. But 1440 or 2160 is better 😜
@yetanotherdex
@yetanotherdex 4 ай бұрын
I have never realized how similar this is to DNS
@MilanJovanovicTech
@MilanJovanovicTech 4 ай бұрын
Yes, basically the same concept
HybridCache - The New Caching Library in .NET 9
18:24
Milan Jovanović
Рет қаралды 6 М.
Easy Email Verification in .NET: FluentEmail + Papercut
19:29
Milan Jovanović
Рет қаралды 11 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
How To Build Loosely Coupled Microservices With MassTransit
23:01
Milan Jovanović
Рет қаралды 39 М.
Why Developers and Companies Hate .NET 9
10:56
Nick Chapsas
Рет қаралды 55 М.
Which API Gateway is better? YARP vs Ocelot
24:01
Milan Jovanović
Рет қаралды 7 М.
I Built a Neural Network in C# From Scratch. Here’s What I Learned…
18:12
The Right Way To Build Async APIs in ASP.NET Core
20:12
Milan Jovanović
Рет қаралды 22 М.
Your REST API Errors Are Wrong. Problem Details Will Fix This
16:14
Milan Jovanović
Рет қаралды 11 М.
What Makes A Great Developer
27:12
ThePrimeTime
Рет қаралды 223 М.
The Logging Everyone Should Be Using in .NET
15:34
Nick Chapsas
Рет қаралды 89 М.