Microservices Api gateway tutorial | Quick start | Code Decode | Part -1
Вставка
- Опубліковано 9 лип 2024
- In this video of code decode we have covered microservices API gateway concept which is the 4th video of microservice playlist
Udemy Course of Code Decode on Microservice k8s AWS CICD link:
openinapp.co/udemycourse
Course Description Video :
yt.openinapp.co/dmjvd
Api Gateway Implementation in spring boot : • Microservices API Gate...
What is API gateway in microservices?
API Gateway in Microservices is a Microservices Architecture pattern.
API Gateway is a server and is a single-entry point into the system. API Gateway is responsible for routing the request, composition, and translation of the protocol. All the requests from the clients first come to the API Gateway and the API Gateway routes the request to the correct microservice.
API Gateway can also aggregate the results from the microservices back to the client. API Gateway can also translate between web protocols like HTTP, web socket, etc.
API Gateway can provide every client with a custom API as well.
What is the CQRS pattern in microservice?
CQRS stands for Command Query Responsibility Segregator. Every microservice as per design will have a database per service model or shared database per service. As applications become more complex, the handling of detailed queries and validations also more complex. Traditional CRUD (Create, Read, Update and Delete) data model will become cumbersome to implement and maintain.
CQRS pattern proposes the separation of the read data model (Read) from the writing data model (Create, Update and Delete). The application will be segregated into Command and Query parts. The command part will be responsible for the Create, update, and delete operations. The query part will be responsible for the read operation through materialized views. This segregation provides scalability, ease of maintenance, and optimization of the database.
What is a circuit breaker pattern in Microservices?
Circuit Breaker is a microservice design pattern. In a microservices architecture, it is typical that a request could span multiple services. For any request, if one of the services involved in the response is not working, a circuit Breaker is used to stop the process of request and response.
Without a circuit breaker in place, the client would have continuously sent requests to the service which is down. Resources will get exhausted with low performance and a bad user experience due to this. To avoid this kind of problem, a circuit breaker pattern can be used.
In the case of a circuit breaker pattern, the client will invoke a remote service via a proxy. This proxy will behave as a circuit barrier. In case of failure, when the number of failures crosses a defined threshold number, the circuit breaker will trip for a defined period. During this time, requests to invoke remote service will fail. Once the time-out period for the breaker is complete, a circuit breaker will allow a defined number of tests to pass through, and only when they succeed, a circuit breaker will resume back to normal operation and will start fulfilling the requests.
What is the Service Discovery pattern in microservices?
In the case of Microservices, issues for calling services need to be addressed.
With container technology, serverless architecture, IP addresses can be dynamically allocated to service instances. When address changes, consumer service can break and will need changes.
This issue can be solved by a service registry. Service registry will keep metadata of every producer service in the ecosystem. A service instance needs to register to the registry whenever it starts and should de-register when shutting down. Consumer service can query the Service registry every time it needs to find out the location of the service. This is called the Service Discovery pattern.
Microservice full playlist : • Microservices Basics T...
Most Asked Core Java Interview Questions and Answers : • Core Java frequently a...
Advance Java Interview Questions and Answers : • Advance Java Interview...
Java 8 Interview Questions and Answers : • Java 8 Interview Quest...
Hibernate Interview Questions and Answers : • Hibernate Interview Qu...
Spring Boot Interview Questions and Answers : • Advance Java Interview...
Angular Playlist : • Angular Course Introdu...
GIT : • GIT
Subscriber and Follow Code Decode
Subscriber Code Decode : ua-cam.com/users/CodeDecode?...
Linkedin : / codedecodeyoutube
Instagram : / codedecode25
#codedecode #microservicesinjava #apigateway
13:57 very useful differences
Yupp they are 🙂👍
Hi madam ,
I'm glad to mention here my first comment that I cracked TCS interview by just watching your videos .thank you so much 🎉
Congratulations Vinay 🎉🎉🎉🎉. Well deserved
I really want to like your video 1000 times........ i was at no where in java, but only because of your videos, now I feel confident, what ever topic I need, its there in your playlist.,,,,,,,, for me java means code decode,,...... thankyou so much....
Means a lot to us Rahul ❤🙂👍
Back after so long and happy to Binge watch the gold content! Keep up the good work, Feeling blessed.
Thanks a ton Rohith. These words keeps us motivated to move ahead and put more such content. 🙂👍
Thanks a lot for explaining the concepts clearly and PPT presentation with image drawings helped us to understand the concepts easily
Hi Mam..Thanks for all your efforts..I am very sad that your voice had broke..Your videos helped me a lot..recover soon..
Thanks a ton Sai for your concern, we are working on fixing it soon 🙂👍
You guys are amazing. Seriously creating such a quality content is remarkable 👌 I really love the way you guys teach in such an easy format with great example and live demonstration with all the related informtion in comparative way is tremendous ❤ Thank you so much for all your videos and quality content. Please keep posting such videos.
Thanks a lot Kajol. These comments made our day. It motivates us to keep posting videos❤means a lot to us
Very well explained with real time example so we can relate us to our day to day life with this emerging technology. Thank you so much for this wonderful kt.
Thanks a lot Sukhander. Means a lot to us🙂👍
Thanks mam for all the useful videos.
I am able to track tcs interview.even though i am having an experience of 2.4years..but because of your videos i can give answers confidently.
Many congratulations 🎉🎉🎉🎉 Aarti. Well deserved 🎊🎊 keep learning keep shining Girl 🎊🎊
Excellent Explanation Now my entire concept is clear about API Gateway
Glad to hear that Manideep 👏👏thanks 👍🙂
just wanted to say "Thanks" you are doing really great job which helping many to crack interview.
Thanks a ton Harish 🙂👍👍
Its impressive demonstration. I am wide follower of this channel. Please do continue with both the approaches, then we can understand the difference between them. Thank you much
Sure 🙂👍
thanks alot code decode for all ur videos. they are so helpful... u explain them so well.. keep uploading videos mam..
Thanks a lot 🙂👍
great content! Thank you so much for this informative video. Appreciate your efforts!!!
Thanks Anuradha 🙂👍
Thanks alot for all the videos.. great learning experience!
Thanks Rinu 🙂👍
Wanted to learn this API Gateway topic only and you come up with this video.
Also I absolutely loved your git video 🤩🤩
Thanks Manoj 🙂👍
Great video, clear and easy to understand and follow
thanks
Thanks a lot mam
It’s helping a lot while working in projects
🙏🏻🙏🏻🙏🏻🙏🏻
Glad to know that Shrijeet. Keep learning keep shining Man. You deserve all heights in your future 👏👏👏👍👍
Really very helpful videos, very understanding explanation, especially for interviews point of preparation......Keep it up...Amazing work🔄
Thanks Nita ❤️
Excellent video. If possible, please implement API Gateway using both Zuul and Spring Cloud Gateway in order to understand the difference between them more clearly.
Sure will implement with spring cloud then zuul 👍
commenting again after so long, Please continue with this Spring cloud API gateway along with CORS filter impl.
Sure we will include CORS too 👍🙂
East or West Code Decode is best... I am impressed the way you explained It helping me lot..
Thanks Kiran 🙂🙂
I have been going through all your videos.. felt very sad to hear your breaking voice and admire your dedication to groom us with your interview videos
Thanks for your concern Sekaran. Its our job to keep you guys updated. Trying our level best to delivery all we could with 9-5 jobs . Thanks a lot for your concern n care. Means a lot to us keeps us motivated to put more content. 🙂👍👍
Thanks a lot helped to crack many interviews .
You're welcome and all the best for future interviews
Excellent content
Thanks Ameer 🙂👍
Thank you. Excellent as always.
Please use Spring Cloud Gateway.
Thanks Vengatesh 🙂👍
Thank you so much for great explanation and clear content with demonstration, It helped me as well to crack my Technical Interview and I was struggled earlier so much due to something gap or disconnect in my explanation especially in Microservices and API Gateway areas to the interviewers but after following your videos it went to the next level..
Great Job and Keep posting the videos on Microservices with API Gateway and fall back mechanism/error handling in real time scenarios.
Thanks a ton for sparing some time to motivate us. It helps a lot Hari, it motivates us to put more such videos. Thanks a tonn man 🙂👍
@@CodeDecodeYah .. you are a helping hand to many. Thank u!
This means a lot to us. We are glad we are able to give back something to community 🙏🙏
Thank you so much! Please implement using spring cloud gateway.
Sure 🙂
For better understanding with current live projects, you can demonstrate using Zuul as most of the projects are still using Zuul.
But Spring Cloud would also be fine.
Ok 👍
Now zuul is obsolete. In maintenance mode and will be not supported
Thank you ❤
❤️❤️
Your voice felt like you are not well, please take care and thankyou so much for the video it was very helpful.
21k viewer please like her video as well it will encourage her she makes very good video
Thanks for the support Neha . Much appreciated
Hi @CodeDecode I was following you when you have 20k subscribers now you are 100k congratulations on that many more to go. You content is very clear with examples helps in understanding concepts easily thank you so much.
Thanks for being with us since so long Greeshma. We are lucky to have you with us❤️❤️❤️❤️
you really make meaningful and useful videos'. Please make both .. zuul and spring cloud. also looking forward to get some vedios on Uber/Netflix/Drop box designing. request to make you short vedios please .
Sure Thanks Mayuri 🙂👍
Excellent as usual. Please upload spring cloud api gateway.Thank You!
Here you go
ua-cam.com/video/8FWzFnLpTc8/v-deo.html
@@CodeDecode thank you!Can u make videos regarding logging? Thanks for all ur effort!
Yes sure we will create video on that soon 👍🙂
Thanks for this amazing content and the explanation. Understood pretty well why and how to use API gateway.
But a quick question - Is API Gateway still in use by the end of 2023 ? Or we have some other technology that has replaced or will be sooner replacing API Gateway ?
Answers will be highly appreciated (I am going to step in as a Java Dev, so its for my overall knowledge). Thanks!
Thanks
🙂👍
Awesome video please complete microservices tutorial all topic cover
Sure Deepak 👍🙂
@@CodeDecode Cloud config , enruka, rest template , Web client , hytrix pattern all topic cover
ua-cam.com/play/PLyHJZXNdCXsd2e3NMW9sZbto8RB5foBtp.html
Most of them are covered here . Will cover rest soon
@@CodeDecode spring cloud config and rest api implementation
Thank you. But one doubt. What if api gateway crahses or fails ? It is single point of failure right ? The entire application is now down isnt it ? Do we have a solution for this ?
I think you are suffering from Cold ... Please take care .!
That's true. Apologize for the disturbance.
Mam..can you suggest me ..if api gateway fails then how we handle the overall application...
you can deploy your API GATEWAY microservices on multiple servers and have it load balanced. 🙂👍
Can you please explain the difference between apigee & API gateway
please create a video spring cloud gateway since it's the future.
Ok sure then spring cloud it is for the next video 🙂👍. Thanks for helping us in deciding the priority 🙂👍
One doubt. How do we use API gateway to restrict the calls from front end to backend? Say for example - 3 UI and 3 backend applications are there, I want my first UI to access 2nd and 3rd backend applications alone. Is there a way? Please do answer
That's the part of authorization, it comes under spring security topic where we can put regex on urls on API GATEWAY
@@CodeDecode thanks a lot 👍
Your voice is different today , take care .
Nice observation 🙂. Cold and cough is the reason , will fix it soon 👍🙂
Take care of yourself
Thanks for the concern Naveen. Working on it 🙂
which Secure Technology we can use for communication between microservices ???
Synchronous or asynchronous ?
@@CodeDecode pls tell me about both ?
@@siddharth_pawar8049 synchronous is RestTemplate and asynchronous is webClient
What about mulesoft?
Can i get the ppt you are using in the video please
If API Gateway do the routing then why do we need Eureka?
Eureka is service discovery and not a router Karthik 🙂👍
@@CodeDecode Also could you to pls tell me how to integrate the MySQL workbench with Spring Tool.
Can u try installing Dbeaver from marketplace ? Please let us know if that works for u
Hystrix is replaced by resilient4j
True we will put video on that too 🙂👍
GO FOR APIGATEWAY AND ALSO PLEASE TAKE CARE YOURSELF!!!!!!!!!!!!!!!!!
Thanks for your concern, yes will try to fix cold as soon as possible 🙂👍. Sure api gateway it is then for next video 👍
Your voice is different in this video,. you got cold when you made this video? take care&&rest well..
Yeah it was really cold here that time. Thanks for the concern Lee 🙂🙂👍❤. Nice observation though🙂
When next video upload? ???
Coming Tuesday .....
I think your throat is not well. Take care.
Yeah. I skipped one week but then next week i had no option other than to shoot. Nice observation though Arpit🙂🙂
Madam you are doing great job. Your voice is not well. Please take care of yourself.
What happened to your voice?
Was stuck with cold and fever. Thanks for asking 👍🙂
Strong emphasis on "T", "D", [lease reduce that, try to be soft on words ending with those letters