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

КОМЕНТАРІ • 121

  • @RishiRaj-ex9wb
    @RishiRaj-ex9wb 2 роки тому +10

    13:57 very useful differences

  • @vinayvemuri5727
    @vinayvemuri5727 2 роки тому +12

    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 🎉

    • @CodeDecode
      @CodeDecode  2 роки тому

      Congratulations Vinay 🎉🎉🎉🎉. Well deserved

  • @RahulKumar-zr5gu
    @RahulKumar-zr5gu Рік тому +4

    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....

    • @CodeDecode
      @CodeDecode  Рік тому +1

      Means a lot to us Rahul ❤🙂👍

  • @vulligadlarohith5541
    @vulligadlarohith5541 2 роки тому +2

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

    • @CodeDecode
      @CodeDecode  2 роки тому

      Thanks a ton Rohith. These words keeps us motivated to move ahead and put more such content. 🙂👍

  • @muhassinmusthafa3379
    @muhassinmusthafa3379 11 місяців тому

    Thanks a lot for explaining the concepts clearly and PPT presentation with image drawings helped us to understand the concepts easily

  • @saivamsi4811
    @saivamsi4811 2 роки тому +10

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

    • @CodeDecode
      @CodeDecode  2 роки тому +1

      Thanks a ton Sai for your concern, we are working on fixing it soon 🙂👍

  • @kajoljain5798
    @kajoljain5798 Рік тому +3

    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.

    • @CodeDecode
      @CodeDecode  Рік тому

      Thanks a lot Kajol. These comments made our day. It motivates us to keep posting videos❤means a lot to us

  • @sukhanderkumar7395
    @sukhanderkumar7395 2 роки тому +1

    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.

    • @CodeDecode
      @CodeDecode  2 роки тому

      Thanks a lot Sukhander. Means a lot to us🙂👍

  • @aartimahadik6924
    @aartimahadik6924 2 роки тому +2

    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.

    • @CodeDecode
      @CodeDecode  2 роки тому +1

      Many congratulations 🎉🎉🎉🎉 Aarti. Well deserved 🎊🎊 keep learning keep shining Girl 🎊🎊

  • @manideepb9220
    @manideepb9220 2 роки тому +1

    Excellent Explanation Now my entire concept is clear about API Gateway

    • @CodeDecode
      @CodeDecode  2 роки тому

      Glad to hear that Manideep 👏👏thanks 👍🙂

  • @globalviralnewsupdate
    @globalviralnewsupdate 2 роки тому +2

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

    • @CodeDecode
      @CodeDecode  2 роки тому +1

      Thanks a ton Harish 🙂👍👍

  • @lakshmanrevu3490
    @lakshmanrevu3490 2 роки тому +1

    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

  • @desimessymom541
    @desimessymom541 2 роки тому +1

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

  • @anuradhap4055
    @anuradhap4055 2 роки тому +1

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

  • @RinuTitus
    @RinuTitus 2 роки тому +1

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

  • @manojpatil2457
    @manojpatil2457 2 роки тому +1

    Wanted to learn this API Gateway topic only and you come up with this video.
    Also I absolutely loved your git video 🤩🤩

  • @lifangyan4350
    @lifangyan4350 2 роки тому +1

    Great video, clear and easy to understand and follow

  • @ghost.riddle
    @ghost.riddle 2 роки тому +1

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

    • @CodeDecode
      @CodeDecode  2 роки тому

      Glad to know that Shrijeet. Keep learning keep shining Man. You deserve all heights in your future 👏👏👏👍👍

  • @nitadhumal8329
    @nitadhumal8329 5 місяців тому +1

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

  • @harshavardhan8103
    @harshavardhan8103 2 роки тому +4

    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.

    • @CodeDecode
      @CodeDecode  2 роки тому +1

      Sure will implement with spring cloud then zuul 👍

  • @seemanthinisathi7384
    @seemanthinisathi7384 2 роки тому +1

    commenting again after so long, Please continue with this Spring cloud API gateway along with CORS filter impl.

    • @CodeDecode
      @CodeDecode  2 роки тому +2

      Sure we will include CORS too 👍🙂

  • @SimplicityVlogs
    @SimplicityVlogs Рік тому +1

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

  • @chandrupsekar
    @chandrupsekar 2 роки тому +2

    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

    • @CodeDecode
      @CodeDecode  2 роки тому

      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. 🙂👍👍

  • @lathasree1659
    @lathasree1659 9 місяців тому +1

    Thanks a lot helped to crack many interviews .

    • @CodeDecode
      @CodeDecode  8 місяців тому

      You're welcome and all the best for future interviews

  • @ameerm7894
    @ameerm7894 2 роки тому +1

    Excellent content

  • @vengateshm2122
    @vengateshm2122 2 роки тому +1

    Thank you. Excellent as always.
    Please use Spring Cloud Gateway.

    • @CodeDecode
      @CodeDecode  2 роки тому +1

      Thanks Vengatesh 🙂👍

  • @harikrishnagajula1326
    @harikrishnagajula1326 2 роки тому +3

    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.

    • @CodeDecode
      @CodeDecode  2 роки тому +1

      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 🙂👍

    • @tpl3585
      @tpl3585 2 роки тому +1

      @@CodeDecodeYah .. you are a helping hand to many. Thank u!

    • @CodeDecode
      @CodeDecode  2 роки тому +1

      This means a lot to us. We are glad we are able to give back something to community 🙏🙏

  • @babymounicaandey1321
    @babymounicaandey1321 2 роки тому +1

    Thank you so much! Please implement using spring cloud gateway.

  • @sagarmodi8007
    @sagarmodi8007 2 роки тому +1

    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.

    • @CodeDecode
      @CodeDecode  2 роки тому

      Ok 👍

    • @ILuvBilli
      @ILuvBilli 2 роки тому +1

      Now zuul is obsolete. In maintenance mode and will be not supported

  • @bindiyatelgote4789
    @bindiyatelgote4789 10 місяців тому +1

    Thank you ❤

  • @tatapudisrivenkataramana3939

    Your voice felt like you are not well, please take care and thankyou so much for the video it was very helpful.

  • @neha6000
    @neha6000 2 роки тому +1

    21k viewer please like her video as well it will encourage her she makes very good video

    • @CodeDecode
      @CodeDecode  2 роки тому

      Thanks for the support Neha . Much appreciated

  • @greeshmaA08
    @greeshmaA08 11 місяців тому

    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.

    • @CodeDecode
      @CodeDecode  11 місяців тому

      Thanks for being with us since so long Greeshma. We are lucky to have you with us❤️❤️❤️❤️

  • @mayurisharma8453
    @mayurisharma8453 2 роки тому +1

    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 .

    • @CodeDecode
      @CodeDecode  2 роки тому

      Sure Thanks Mayuri 🙂👍

  • @tpl3585
    @tpl3585 2 роки тому +2

    Excellent as usual. Please upload spring cloud api gateway.Thank You!

    • @CodeDecode
      @CodeDecode  2 роки тому +1

      Here you go
      ua-cam.com/video/8FWzFnLpTc8/v-deo.html

    • @tpl3585
      @tpl3585 2 роки тому +1

      @@CodeDecode thank you!Can u make videos regarding logging? Thanks for all ur effort!

    • @CodeDecode
      @CodeDecode  2 роки тому +1

      Yes sure we will create video on that soon 👍🙂

  • @jayjoshi1366
    @jayjoshi1366 6 місяців тому

    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!

  • @RishiRaj-ex9wb
    @RishiRaj-ex9wb 2 роки тому +1

    Thanks

  • @DeepakGupta-hj2dv
    @DeepakGupta-hj2dv 2 роки тому +1

    Awesome video please complete microservices tutorial all topic cover

    • @CodeDecode
      @CodeDecode  2 роки тому +1

      Sure Deepak 👍🙂

    • @DeepakGupta-hj2dv
      @DeepakGupta-hj2dv 2 роки тому +1

      @@CodeDecode Cloud config , enruka, rest template , Web client , hytrix pattern all topic cover

    • @CodeDecode
      @CodeDecode  2 роки тому

      ua-cam.com/play/PLyHJZXNdCXsd2e3NMW9sZbto8RB5foBtp.html

    • @CodeDecode
      @CodeDecode  2 роки тому +1

      Most of them are covered here . Will cover rest soon

    • @DeepakGupta-hj2dv
      @DeepakGupta-hj2dv 2 роки тому

      @@CodeDecode spring cloud config and rest api implementation

  • @sunilchandran4u
    @sunilchandran4u Рік тому

    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 ?

  • @AndhrakidZ
    @AndhrakidZ 2 роки тому +5

    I think you are suffering from Cold ... Please take care .!

    • @CodeDecode
      @CodeDecode  2 роки тому +3

      That's true. Apologize for the disturbance.

  • @yoginibisen5434
    @yoginibisen5434 2 роки тому +2

    Mam..can you suggest me ..if api gateway fails then how we handle the overall application...

    • @CodeDecode
      @CodeDecode  2 роки тому

      you can deploy your API GATEWAY microservices on multiple servers and have it load balanced. 🙂👍

  • @Parni_Stories
    @Parni_Stories 2 роки тому

    Can you please explain the difference between apigee & API gateway

  • @globalviralnewsupdate
    @globalviralnewsupdate 2 роки тому +1

    please create a video spring cloud gateway since it's the future.

    • @CodeDecode
      @CodeDecode  2 роки тому +1

      Ok sure then spring cloud it is for the next video 🙂👍. Thanks for helping us in deciding the priority 🙂👍

  • @karthikeyanrm3446
    @karthikeyanrm3446 2 роки тому +1

    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

    • @CodeDecode
      @CodeDecode  2 роки тому +1

      That's the part of authorization, it comes under spring security topic where we can put regex on urls on API GATEWAY

    • @karthikeyanrm3446
      @karthikeyanrm3446 2 роки тому

      @@CodeDecode thanks a lot 👍

  • @SJProgrammingSolutions
    @SJProgrammingSolutions 2 роки тому +2

    Your voice is different today , take care .

    • @CodeDecode
      @CodeDecode  2 роки тому +2

      Nice observation 🙂. Cold and cough is the reason , will fix it soon 👍🙂

  • @lifeistooshort-alwaysbehappy
    @lifeistooshort-alwaysbehappy 2 роки тому +1

    Take care of yourself

    • @CodeDecode
      @CodeDecode  2 роки тому +1

      Thanks for the concern Naveen. Working on it 🙂

  • @siddharth_pawar8049
    @siddharth_pawar8049 2 роки тому +1

    which Secure Technology we can use for communication between microservices ???

    • @CodeDecode
      @CodeDecode  2 роки тому

      Synchronous or asynchronous ?

    • @siddharth_pawar8049
      @siddharth_pawar8049 2 роки тому

      @@CodeDecode pls tell me about both ?

    • @ILuvBilli
      @ILuvBilli 2 роки тому

      @@siddharth_pawar8049 synchronous is RestTemplate and asynchronous is webClient

  • @kumarrajakotakonda1351
    @kumarrajakotakonda1351 2 роки тому

    What about mulesoft?

  • @fot0Box
    @fot0Box 2 роки тому

    Can i get the ppt you are using in the video please

  • @sethunagakarthikm4022
    @sethunagakarthikm4022 2 роки тому +2

    If API Gateway do the routing then why do we need Eureka?

    • @CodeDecode
      @CodeDecode  2 роки тому +1

      Eureka is service discovery and not a router Karthik 🙂👍

    • @sethunagakarthikm4022
      @sethunagakarthikm4022 2 роки тому +1

      ​@@CodeDecode Also could you to pls tell me how to integrate the MySQL workbench with Spring Tool.

    • @CodeDecode
      @CodeDecode  2 роки тому +1

      Can u try installing Dbeaver from marketplace ? Please let us know if that works for u

  • @ILuvBilli
    @ILuvBilli 2 роки тому +1

    Hystrix is replaced by resilient4j

    • @CodeDecode
      @CodeDecode  2 роки тому

      True we will put video on that too 🙂👍

  • @nagendrakumarsampatam6005
    @nagendrakumarsampatam6005 2 роки тому +1

    GO FOR APIGATEWAY AND ALSO PLEASE TAKE CARE YOURSELF!!!!!!!!!!!!!!!!!

    • @CodeDecode
      @CodeDecode  2 роки тому +1

      Thanks for your concern, yes will try to fix cold as soon as possible 🙂👍. Sure api gateway it is then for next video 👍

  • @sproutboot
    @sproutboot Рік тому

    Your voice is different in this video,. you got cold when you made this video? take care&&rest well..

    • @CodeDecode
      @CodeDecode  Рік тому

      Yeah it was really cold here that time. Thanks for the concern Lee 🙂🙂👍❤. Nice observation though🙂

  • @DeepakGupta-hj2dv
    @DeepakGupta-hj2dv 2 роки тому +1

    When next video upload? ???

  • @arpit1145
    @arpit1145 Рік тому +1

    I think your throat is not well. Take care.

    • @CodeDecode
      @CodeDecode  Рік тому +1

      Yeah. I skipped one week but then next week i had no option other than to shoot. Nice observation though Arpit🙂🙂

  • @chetankhandave1072
    @chetankhandave1072 Рік тому

    Madam you are doing great job. Your voice is not well. Please take care of yourself.

  • @jasper5016
    @jasper5016 2 роки тому +1

    What happened to your voice?

    • @CodeDecode
      @CodeDecode  2 роки тому +1

      Was stuck with cold and fever. Thanks for asking 👍🙂

  • @sanatandharmu
    @sanatandharmu Рік тому +1

    Strong emphasis on "T", "D", [lease reduce that, try to be soft on words ending with those letters