Microservices Tutorial for Beginners | Building Microservices with ASP.NET Core

  Рет қаралды 163,069

ScholarHat

ScholarHat

Күн бұрын

Пікірлер: 152
@abhishektenneti1604
@abhishektenneti1604 3 жыл бұрын
A zero knowledge .Net guy can come directly here and learn a lot about it. So helpful!Thank you!
@ScholarHat
@ScholarHat 4 жыл бұрын
Important Note: If you are using Ocelot 16.0.0 or higher, you should change the key name from "ReRoutes" to "Routes", else you'll keep getting 404 error.
@sumangeorge7
@sumangeorge7 4 жыл бұрын
i was wondering why i was receiving 400... Thank you for the help!!
@saikat114433
@saikat114433 3 жыл бұрын
I have spent 1 hour to resolve this and found this comment. Thanks!
@chetankawale6601
@chetankawale6601 2 жыл бұрын
Thanks Sir. I am also facing same issue in latest version Ocelot
@interviewhappy
@interviewhappy 3 жыл бұрын
Superb
@ramachandranthangam6421
@ramachandranthangam6421 3 жыл бұрын
Fantastic shailendra..hats off
@ScholarHat
@ScholarHat 3 жыл бұрын
Hey Ramachandran, You are most Welcome! We are glad to be a part of your learning journey. Do subscribe the channel for more updates Hit the bell icon to never miss an update from our channel!
@tarunsharma8633
@tarunsharma8633 4 жыл бұрын
Where did you implement communication b/w two api
@rbogdan8980
@rbogdan8980 5 жыл бұрын
why you don't use swagger?
@girdhargopasingh337
@girdhargopasingh337 4 жыл бұрын
Thanks for your suggestions
@ScholarHat
@ScholarHat 4 жыл бұрын
In this scenario it is not required. Swagger, we use for API management.
@karimalaa9050
@karimalaa9050 4 жыл бұрын
Shall I have to specify all my microservices routes in the ocelot.json, or should be handled dynamically in each microservice itself.
@ScholarHat
@ScholarHat 4 жыл бұрын
Yes, you need to define all microservices routes in oceot.json to provide common interface to outer world.
@nehasa302
@nehasa302 3 жыл бұрын
Very very nicely explained
@hidenseek0654
@hidenseek0654 4 жыл бұрын
Can you show the Put method. I have tried several way...but donno why it's not working
@Axstrus
@Axstrus 4 жыл бұрын
Nice video... Completed end to end video for a beginner...
@ScholarHat
@ScholarHat 4 жыл бұрын
Glad you liked it. Keep learning with Dot Net Tricks
@mohsinshaikh8363
@mohsinshaikh8363 3 жыл бұрын
How to do communications in between services?
@ScholarHat
@ScholarHat 3 жыл бұрын
You have to implement communication patterns: request-reply, message or event-based.
@BendaoudAbdelmounaim
@BendaoudAbdelmounaim 3 жыл бұрын
good work friend thank you
@gurpreetsingharora8018
@gurpreetsingharora8018 3 жыл бұрын
Step by step nice explanation. ☺️☺️
@ScholarHat
@ScholarHat 3 жыл бұрын
Glad you liked it
@avolamedia
@avolamedia 2 жыл бұрын
Thank you It is helpful.
@manishroy1372
@manishroy1372 5 жыл бұрын
Really Nice. Step by step explained the entire implementation. Thanks
@ScholarHat
@ScholarHat 4 жыл бұрын
Thanks you liked it.
@srinu702
@srinu702 4 жыл бұрын
Thank You This Video cleared out Microservice
@raagasongs
@raagasongs 3 жыл бұрын
Very nice and easily understandable..
@Kaushik-RoyChowdhury
@Kaushik-RoyChowdhury 3 жыл бұрын
Good one Shailendra. Learnt about Ocelot Gateway mate.
@NethiestChannel
@NethiestChannel 4 жыл бұрын
Having a single API Gateway for the whole service implements SPoF. What you want for the highest reliability is a dedicated API gateway per service that needs it. e.g. userservice, orderservice, productservice would all have separate APIs just in case gateway dies.
@ScholarHat
@ScholarHat 4 жыл бұрын
This sample is to understand the concepts. In reality, you have to use multiple API gateways to achieve High Availability.
@dearalok11
@dearalok11 3 жыл бұрын
Very informational video .Just a suggestion ... avoid repetitions to make it shorter .
@namanvohra8262
@namanvohra8262 2 жыл бұрын
Thanks for the video, you gained a new subscriber. Could you please add a more complex example of how two microservices that are interrelated can interact with one another? For instance if the client needs data from the two microservices. Thank you again for this video.
@sushmajaarumalla474
@sushmajaarumalla474 2 жыл бұрын
I also need this scenario... do you got any such example @naman
@namanvohra8262
@namanvohra8262 2 жыл бұрын
@@sushmajaarumalla474 Hey, u can check out request and custom aggregation in Ocelot, basically it combines responses from two microservices and u can edit the combined response before returning to client
@dsmercy9506
@dsmercy9506 2 жыл бұрын
Thanks for sharing
@teja6124
@teja6124 2 жыл бұрын
Hello Sir, How do you we mange microservices when a lot of applications are running?
@sathieshkumarrajabaskaran5408
@sathieshkumarrajabaskaran5408 3 жыл бұрын
Good content for beginners. Great!
@supunsamarawickrama5495
@supunsamarawickrama5495 2 жыл бұрын
very useful and nice explanation. Thanks !!
@venugopalkothuri9077
@venugopalkothuri9077 3 жыл бұрын
Can we have the microservice hosting steps as well?
@pgviyer
@pgviyer 4 жыл бұрын
I did follow all the steps and created the project. Though the API works fine. Getting a 404 error while trying to access the service through the Ocelot API Gateway. Is there any specific version of the Ocelot Gateway to be used for this example ? Kindly help.
@pgviyer
@pgviyer 4 жыл бұрын
Well. I found a fix. I had installed the latest version of Ocelot gateway in the project. Instead, I uninstalled it and installed the version 13.8.0, that was used in the project. Things started working. Thank you.
@jaicinds6623
@jaicinds6623 4 жыл бұрын
I faced the same issue with ocelot version 16.0.1. To fix change the ocelot.json "ReRoutes" tp "Routes". Refer ocelot.readthedocs.io/en/latest/features/routing.html
@ScholarHat
@ScholarHat 4 жыл бұрын
Please do refer this new video: kzbin.info/www/bejne/ZoOldaRjhtqmfpI
@konathamnageswarrao7306
@konathamnageswarrao7306 4 жыл бұрын
Super for start up programmers.i have a question ,both the application should host in web server(IIS) to access both the URLs
@ScholarHat
@ScholarHat 4 жыл бұрын
yes, you can host them.
@Narendrasanchi
@Narendrasanchi 3 жыл бұрын
Great video. Do you have this code available on GIT. Could you share the link
@petereikore3785
@petereikore3785 3 жыл бұрын
Nice Tutorial
@ScholarHat
@ScholarHat 3 жыл бұрын
Thank you Peter
@skmedia6890
@skmedia6890 4 жыл бұрын
How to host microservices wit api gateway on IIS?
@ScholarHat
@ScholarHat 4 жыл бұрын
Hosting the asp.net core based microservices on IIS is same as we host asp.net core web api.
@skmedia6890
@skmedia6890 4 жыл бұрын
@@ScholarHat can u please share in detail about it?
@davewai7620
@davewai7620 3 жыл бұрын
thanks mate. Great video
@swastikayadav6741
@swastikayadav6741 4 жыл бұрын
I am getting 404 error while fetching microservices via ocelot web api?
@sri_nainika
@sri_nainika 4 жыл бұрын
Me too getting same 404 error... any idea?
@pgviyer
@pgviyer 4 жыл бұрын
uninstalling the latest version of ocelot gateway and installing the version 13.8.0 made the things work for me. Just give a try.
@pgviyer
@pgviyer 4 жыл бұрын
@@sri_nainika uninstalling the latest version of ocelot gateway and installing the version 13.8.0 made the things work for me. Just give a try.
@danielbrandt874
@danielbrandt874 4 жыл бұрын
@@pgviyer Thank you so much! Worked for me too!
@ScholarHat
@ScholarHat 4 жыл бұрын
You can also try new video here: kzbin.info/www/bejne/ZoOldaRjhtqmfpI
@jipsonettuthottiyil
@jipsonettuthottiyil 3 жыл бұрын
Good content. Thank you
@samchoise
@samchoise 5 жыл бұрын
Can you please create another video to communicate between microservices.
@inkquillspublishinghouse
@inkquillspublishinghouse 4 жыл бұрын
I am too looking for this...
@girdhargopasingh337
@girdhargopasingh337 4 жыл бұрын
Sure #SamirMistry
@ganeshgite7701
@ganeshgite7701 3 жыл бұрын
Really nice content, step by step explain properly. Thank you.
@Gojam12
@Gojam12 3 жыл бұрын
My code is inheriting from ControllerBase like yours but there was no implementation or error from not having the implementation of the methods. I had to write them in. Why is that?
@sampathchaganty8519
@sampathchaganty8519 2 жыл бұрын
For return user based upon I'd we use db.User.Find(Id) what if we return based on name like string we can use db.User.Find(name)?
@nguyentam5030
@nguyentam5030 4 жыл бұрын
how to config ocelot run on swagger?? Thanks Sir
@jamesgoddard1698
@jamesgoddard1698 3 жыл бұрын
Great video no errors untill i ran into this on the Program.cs file System.InvalidOperationException: 'A public method named 'ConfigureDevelopment' or 'Configure' could not be found in the 'APIFrontEnd.Startup' type.'
@jawandsingh1464
@jawandsingh1464 4 жыл бұрын
I do not agree with this video. People know how to create APIs. What you should have taught them is "what is mindset behind microservices". You must have used a kind of scenario where there is tight coupling between two tables and show them how to split them. That's real microservices.
@Weblogic81
@Weblogic81 4 жыл бұрын
I agree actually. This is just a normal api dev tutorial.
@ScholarHat
@ScholarHat 4 жыл бұрын
Please do refer this new video for understanding concepts behind it: kzbin.info/www/bejne/ZoOldaRjhtqmfpI
@oudinia1
@oudinia1 4 жыл бұрын
The api gateway and use of ocelot is interesting for me. The rest, is classic, but we can simply skip to the gateway part. Still a good video, despite the non conceptual view of building a microservice, you do get a practical straightforward dev process on Visual Studio.
@SuhasBharadwajK
@SuhasBharadwajK 4 жыл бұрын
Important Note: If you are using Ocelot 16.0.0 or higher, you should change the key name from "ReRoutes" to "Routes", else you'll keep getting 404 error no matter what.
@kakmca
@kakmca 4 жыл бұрын
Thank you very much, Suhas. Your comment helped me to resolve the issue, which otherwise, I thought to give up.
@SuhasBharadwajK
@SuhasBharadwajK 4 жыл бұрын
@@kakmca you're welcome :)
@ashutoshsoni3017
@ashutoshsoni3017 3 жыл бұрын
Thank you very much, Suhas
@karammotraji8966
@karammotraji8966 5 жыл бұрын
please if u could, i have a question if i started with the api project then created a model and scaffolded the api controller with actions using ef core and then dockeriyed the app and i already have an SQL Server Container how can i connect the two containers using docker compose what should i add to the yaml file for docker compose to connect the sql server container
@ScholarHat
@ScholarHat 4 жыл бұрын
Use docker stack for deployment so that they are deployed as service. Between services communication is easy.
@DeepakKumar-df4ef
@DeepakKumar-df4ef 4 жыл бұрын
i followed this video but my APIGateway isn't working, i have checked my code but still no idea what is the issue. any help will be appriciated.
@ScholarHat
@ScholarHat 4 жыл бұрын
make sure you have configured the routes at right place :)
@DeepakKumar-df4ef
@DeepakKumar-df4ef 4 жыл бұрын
@@ScholarHat it was related to Reroute keyword
@manishjawarkar84
@manishjawarkar84 4 жыл бұрын
@@DeepakKumar-df4efI am also getting the same issue, could you please let me know the solution?
@manishjawarkar84
@manishjawarkar84 4 жыл бұрын
I got fix. For latest version of Ocelot, change "ReRoutes " to "Routes" in ocelot.json file and it will display the required result.
@niroshanmanoharan4295
@niroshanmanoharan4295 4 жыл бұрын
Thanks a lot for the simple and informative explanation.
@DuongNguyen-gg3uc
@DuongNguyen-gg3uc 2 жыл бұрын
You may want to enable the closed capture (CC) since it is hard to understand what you are saying.
@khushalchouhan866
@khushalchouhan866 2 жыл бұрын
If you picking any topic pls try to make complete video on that.
@prateekkumar8887
@prateekkumar8887 3 жыл бұрын
Please make one video on the Kestral server how work
@bhavyar2986
@bhavyar2986 2 жыл бұрын
Nice tutorial. So microservices involves service1 having its own database1 and service2 having its own separate database2. Let's assume we already have an existing database where we have all related tables. In this case how to split existing monolithic application into microservices where each has its own database? Eg: shopping application We have orderservice and cartservice.. Do both have same database but different instance ? If separate databases then how's related data managed ?
@trunghieudang4259
@trunghieudang4259 3 жыл бұрын
Thank you very much! It's helpful
@ScholarHat
@ScholarHat 3 жыл бұрын
Glad you liked it. Keep learning with Dot Net Tricks
@manojr40
@manojr40 3 жыл бұрын
Simple and Excellent ❤️
@ScholarHat
@ScholarHat 3 жыл бұрын
Hey Manoj, You are most Welcome! We are glad to be a part of your learning journey. Do subscribe the channel for more updates Hit the bell icon to never miss an update from our channel!
@learnhtml8852
@learnhtml8852 3 жыл бұрын
indicate whether to send a cookie in a cross-site request by specifying its SameSite attribute error
@AbdulKareem-ve2yp
@AbdulKareem-ve2yp 4 жыл бұрын
Excellent
@ScholarHat
@ScholarHat 4 жыл бұрын
You are most welcome! Do subscribe to our channel to stay posted on upcoming tutorials.
@avinashtippe1113
@avinashtippe1113 3 жыл бұрын
Very good explanation. One question, can we have different ports for each route?
@anilkanojia9961
@anilkanojia9961 4 жыл бұрын
Nice Explained. Thank you
@ScholarHat
@ScholarHat 4 жыл бұрын
You are welcome
@SAGARAUTE
@SAGARAUTE 3 жыл бұрын
Thank you
@seenuvasanmanoharan530
@seenuvasanmanoharan530 3 жыл бұрын
very nice way of explanation end to end. can you also share some reference how this microservice is deployed in cloud and test using postman
@redachouiba4862
@redachouiba4862 5 жыл бұрын
Great job
@madhumishra8468
@madhumishra8468 4 жыл бұрын
Hi..while adding the migration command I am getting the error "Script halted"..What does this error mean?Can you please help.
@ScholarHat
@ScholarHat 4 жыл бұрын
Please do refer possible solution link : stackoverflow.com/questions/58643426/add-migration-command-only-prompt-scripthalted
@madhumishra8468
@madhumishra8468 4 жыл бұрын
@@ScholarHat Thanks..I will Check
@shyam15111986
@shyam15111986 4 жыл бұрын
I followed this tutorial but my Gateway api does not work. I check for the code several times, and it is same as the video.
@ScholarHat
@ScholarHat 4 жыл бұрын
Please do refer this new video: kzbin.info/www/bejne/ZoOldaRjhtqmfpI
@kakmca
@kakmca 4 жыл бұрын
Hi Shyam, I am also pretty to Microservices like you. Hence, I followed this tutorial. Gateway API did not work for me as well. I followed comments, and I solved all the issues. I am pretty sure that users comments will definitely be helpful to you. Please give a try by following these comments.
@nakibulshaki
@nakibulshaki 5 жыл бұрын
Thank you so much sir ! Nice job
@girdhargopasingh337
@girdhargopasingh337 4 жыл бұрын
Pleasure #NakibulShaki
@sanjaypakale6902
@sanjaypakale6902 4 жыл бұрын
Really great explanation.. Thanks for all the information..
@girdhargopasingh337
@girdhargopasingh337 4 жыл бұрын
Thank You#Sanjay
@N7CommanderJohnFETactician
@N7CommanderJohnFETactician 4 жыл бұрын
Awesome course, thanks!
@GuerreroVicttor
@GuerreroVicttor 4 жыл бұрын
Awesome, thanks!!!
@girdhargopasingh337
@girdhargopasingh337 4 жыл бұрын
Thank you Victor
@tonifersil
@tonifersil 4 жыл бұрын
After follow this tutorial my api does not work. I check for the code several times, and he is equal as the video.
@girdhargopasingh337
@girdhargopasingh337 4 жыл бұрын
Did you share your code with DotNet Tricks
@adaptor700
@adaptor700 4 жыл бұрын
is there a github source?
@WikkiOnIlluminati
@WikkiOnIlluminati 4 жыл бұрын
Thanks for very good video.
@rupenanjaria
@rupenanjaria 4 жыл бұрын
GitHub path?
@anuragvishnoi3921
@anuragvishnoi3921 2 жыл бұрын
I get this error whole doing the update-database for database "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)". Can you please help
@NalinJ
@NalinJ 4 жыл бұрын
This is great, thanks 🙂
@ScholarHat
@ScholarHat 4 жыл бұрын
Thanks for the compliment! Keep learning with Dot Net Tricks
@dineshkumarramasamy6237
@dineshkumarramasamy6237 4 жыл бұрын
Thanks sir it is very useful.
@rbogdan8980
@rbogdan8980 5 жыл бұрын
n-layer architecture it's not monolith
@melk48111
@melk48111 4 жыл бұрын
awesome. Thx
@girdhargopasingh337
@girdhargopasingh337 4 жыл бұрын
Greta!
@papputarun
@papputarun 4 жыл бұрын
How to call multiple controllers in microservices
@akak447
@akak447 4 жыл бұрын
Thanks, I found it very helpful
@angmathew4377
@angmathew4377 5 жыл бұрын
good stuff and well covered.
@girdhargopasingh337
@girdhargopasingh337 4 жыл бұрын
Thank you
@marwarimansa_it_baba5336
@marwarimansa_it_baba5336 4 жыл бұрын
Sure it's was very nice and worthy contain. Please creat event based communication between two microservices
@abu7midan
@abu7midan 5 жыл бұрын
the best course and very clear , easy to understand
@girdhargopasingh337
@girdhargopasingh337 4 жыл бұрын
Thank You Mohamad
@krchandancs
@krchandancs 3 жыл бұрын
Very well explained sir 👏👍👌 👏 Can we get github of this demo if possible?
@hiteshnirmal7350
@hiteshnirmal7350 4 жыл бұрын
I am getting error 499 . please help me
@Funkfreed
@Funkfreed 4 жыл бұрын
Is it safe to put the database connection in the same project?
@pawankumar-cn1ty
@pawankumar-cn1ty 3 жыл бұрын
1.Don't go from Blank Solution(waste of time, because Your Solution will not work), directly start from creating project and choose WEB API core 2.While add entity don't forget to Key attribute for the primary work other wise migration will not work
@rush2112chile
@rush2112chile 3 жыл бұрын
Thank you very much for this great tutorial. It's really usefull.
@AnilKumar-xx1io
@AnilKumar-xx1io 2 жыл бұрын
Please Provide Source Code
@TechhubIndia
@TechhubIndia Жыл бұрын
add-migration initial update-database -verbose
@CyrixLord
@CyrixLord 4 жыл бұрын
well, its not pretty but this video answered a lot of questions regarding how to approach building a simple API suited for microservices and using ocelet.
@xyyx1001
@xyyx1001 2 жыл бұрын
Where are the subtitles? Thumbs down.
@HimalayaGarg
@HimalayaGarg 4 жыл бұрын
This video do not mention whats the concept behind microservice, just explained api. Wasted whole time.
@ScholarHat
@ScholarHat 4 жыл бұрын
To know about the concept, please do refer this video kzbin.info/www/bejne/ZoOldaRjhtqmfpI
@kuldeepgill2694
@kuldeepgill2694 4 жыл бұрын
All about very simple API, nothing about microservice! Don't waste your 50min.
@rgubri3711
@rgubri3711 4 жыл бұрын
This is the tutorial of simple webapi service with ef. You just hv created a service..do u mean it is the microservice architecture? its just waste of my time
@ScholarHat
@ScholarHat 4 жыл бұрын
It's a sample to create one microservice. Similar way you need to create others and do mapping with the help of ocelot and start implementing ocelot features like authentication, aggregation and others.
@DebasmitSamal294
@DebasmitSamal294 3 жыл бұрын
Excellent
@ScholarHat
@ScholarHat 3 жыл бұрын
Hey Anshika, You are most Welcome! We are glad to be a part of your learning journey. Do subscribe the channel for more updates Hit the bell icon to never miss an update from our channel!
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Introduction to Microservices, Docker, and Kubernetes
55:08
James Quigley
Рет қаралды 1,6 МЛН
Edwin van Wijk - Building microservices with .NET Core and Docker
54:45
DotNext — конференция для .NET‑разработчиков
Рет қаралды 76 М.
What are microservices really all about? - Microservices Basics Tutorial
15:12
Secure a .NET Core API with Bearer Authentication
1:06:56
Les Jackson
Рет қаралды 191 М.
Clean ASP.NET Core API using MediatR and CQRS | Setup
22:39
Nick Chapsas
Рет қаралды 326 М.
Micro Services in .NET Core 7.0  using Ocelot API-Gateway By Core Knowledge Sharing
25:33
Microservices Architecture Online Training
1:07:20
Questpond
Рет қаралды 20 М.
Microservice Architecture with ASP.NET Core
27:42
dotnet
Рет қаралды 113 М.
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН