Microservices Api gateway tutorial | Quick start | Code Decode | Part -1

preview_player
Показать описание
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:

Course Description Video :

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.

Subscriber and Follow Code Decode

#codedecode #microservicesinjava #apigateway
Рекомендации по теме
Комментарии
Автор

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 🎉

vinayvemuri
Автор

I really want to like your video 1000 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 for me java means code thankyou so much....

RahulKumar-zrgu
Автор

Back after so long and happy to Binge watch the gold content! Keep up the good work, Feeling blessed.

vulligadlarohith
Автор

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.

aartimahadik
Автор

just wanted to say "Thanks" you are doing really great job which helping many to crack interview.

globalviralnewsupdate
Автор

Hi Mam..Thanks for all your efforts..I am very sad that your voice had broke..Your videos helped me a lot..recover soon..

saivamsi
Автор

East or West Code Decode is best... I am impressed the way you explained It helping me lot..

SimplicityVlogs
Автор

Excellent Explanation Now my entire concept is clear about API Gateway

manideepb
Автор

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.

kajoljain
Автор

Really very helpful videos, very understanding explanation, especially for interviews point of it up...Amazing work🔄

nitadhumal
Автор

thanks alot code decode for all ur videos. they are so helpful... u explain them so well.. keep uploading videos mam..

desimessymom
Автор

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

chandrupsekar
Автор

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.

sukhanderkumar
Автор

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

lakshmanrevu
Автор

great content! Thank you so much for this informative video. Appreciate your efforts!!!

anuradhap
Автор

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.

harshavardhan
Автор

Wanted to learn this API Gateway topic only and you come up with this video.

Also I absolutely loved your git video 🤩🤩

manojpatil
Автор

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!

jayjoshi
Автор

Thanks a lot mam
It’s helping a lot while working in projects
🙏🏻🙏🏻🙏🏻🙏🏻

ghost.riddle
Автор

Thanks alot for all the videos.. great learning experience!

RinuTitus