How to configure SpringCloud Zuul - Routing and Filtering using SpringBoot | Java Techie

Поділитися
Вставка
  • Опубліковано 6 жов 2024
  • This video explains you how to configure spring cloud zuul as API Gateway to Routing and filtering Request to other microservice
    #JavaTechie #ZuulAPIGateWay #SpringBoot
    GitHub:
    github.com/Jav...
    Blogs:
    javagyanmantra...
    Facebook:
    / 919464521471923
    Like and subscribe

КОМЕНТАРІ • 70

  • @1988dicky
    @1988dicky 4 роки тому +4

    Nice tutorial, one suggestion, please follow the coding convention or declare you are not focusing on that.

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

      Puneet yes to make video duration sort am not following coding convention
      That's the reason max of my video am not using service layer

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

    Thank you very much for the explanation.It helped me to resolve the issue in my project even though i did not work earlier on zuul.

    • @Javatechie
      @Javatechie  4 роки тому

      Thanks Varun , glad to hear this from you

  • @rexsam3134
    @rexsam3134 3 роки тому +3

    Spring Boot 2.0.6? Now Zuul is not part of new Spring Boot version

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

    thanks great video.Can you please describe where we use security in Zuul api or in service api

  • @prithvik8448
    @prithvik8448 3 роки тому +1

    Best and very clear practical explanation thanks a lot

  • @manish.adhikari
    @manish.adhikari 4 роки тому +1

    Hey Basant,
    It is really a helpful tutorial. You are doing a great job! Thanks!
    However after watching the complete tutorial I came across one question:
    1) How to avoid the hardcoding of microservice controller url, hostname:port inside application.properties/yml file of Zuul api gateway application. We can't make the url hard coded as in future if the microservice endpoint changes we need to make changes at our end as well.

    • @Javatechie
      @Javatechie  4 роки тому

      Hi Manish , thank you
      Yes to avoid hardcode value we can use cloud config or cloud consule

  • @aaaabbbbzzz1
    @aaaabbbbzzz1 5 років тому +3

    Hey Basanth, your tutorials are stunning... Congrats..
    Could you please make video on integration of ZUUL, Config, Eureka and deploy in Cloud, with YML files having dynamic URLs, so scaling of instance is much feasible.

    • @Javatechie
      @Javatechie  5 років тому

      Thanks dude .sure already I prepared poc soon will start microservice series with all this concept

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

    Excellent video on zual services

  • @maheshbandari9620
    @maheshbandari9620 5 років тому +2

    Great Work Bro..Could you please make video on integration of ZUUL, Config, Eureka ...

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

    Thank you sir, learned something new

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

    good example, good explanation

  • @taufiquealam1614
    @taufiquealam1614 5 років тому +2

    Great works, Simple explanation in layman terms....Bro Did you get chance to upload the complete microservices using Eurika, Hystrix, Zuul etc combination...I have seen no where uploaded in your video links...May be I missed that. Please reply.

    • @Javatechie
      @Javatechie  5 років тому +1

      I didn't uploaded yet.but will do middle of this month .will start as microservice series tutorial

  • @easyappscompany
    @easyappscompany 5 років тому +2

    Best regards from México Manuel Silva

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

    Hi Basant,
    Could you please make one video how to handle transaction failures in microservices or transaction management

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

      Okay sure I will plan that

  • @popzhixto
    @popzhixto 3 роки тому +1

    Thanks you! appreciate this approach!

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

    wow easy learning thanks

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

    Nicely explained

  • @andrewsselvaraj
    @andrewsselvaraj 4 роки тому +1

    Thankyou so much.. it is very helpful

  • @codegyanmegabeatsystems923
    @codegyanmegabeatsystems923 3 роки тому +1

    ARe you from Orissa.

  • @asashish905
    @asashish905 4 роки тому

    Thank you sir. I have learnt something new today.

  • @renukam9917
    @renukam9917 4 роки тому +1

    grt explanation !! kudos

  • @sparun1607
    @sparun1607 5 років тому +1

    I have only one question if we hit the doctor service directly will it redirect to api gateway automatically? if we need to make it to work what should be done?

    • @Javatechie
      @Javatechie  5 років тому

      The role of api gate way it helps you to routing your request to corresponding microservice , reverse can't be possible .
      There is no use from doctor service again you will add api gateway

  • @satyabratasahoo967
    @satyabratasahoo967 3 роки тому +1

    Hi Basant Bhai, I am not able to find the "Zuul" dependency in spring intializr while trying to replicate this example. Please suggest next

    • @Javatechie
      @Javatechie  3 роки тому +1

      I believe its in maintenance mode . please try using spring cloud gateway

  •  4 роки тому +1

    can you write as custom filter? and can you prepare a dynamic proxy pass configuration?

    • @Javatechie
      @Javatechie  4 роки тому

      Any reason why you want this scenario ?
      Let me know so that I can come up with realtime scenario

  • @praveendass2337
    @praveendass2337 3 роки тому

    Thanks for the video. I m getting CORS issue when hitting the zuul proxy from the UI. How to resolve it? Thank you in advance

  • @ninosalkaton4461
    @ninosalkaton4461 5 років тому +1

    Great job, do you have any course of microservices on udemy or any where?

    • @Javatechie
      @Javatechie  5 років тому +1

      Hi Ninoos , no I don't have any in udemy , all concept I uploaded here

  • @arunsarma7997
    @arunsarma7997 3 роки тому

    Will this also act as the SSL Termination or SSL pass through only

  • @kpgUser
    @kpgUser 3 роки тому

    Good tutorial..but my req not redirecting at all, my services use diff version of spring cloud (edgware release) and zuul 1.4.release,diff. does it make issue?

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

    if we have eureka deployed do we need to provide the host and port for the zuul routing

  • @gopald7263
    @gopald7263 6 років тому +1

    Awesome..

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

    When am running your example I'm facing error of nestedservletexception can you help me out for this

  • @BryanRodriguez-sp2gq
    @BryanRodriguez-sp2gq 5 років тому +1

    why doesn't it need an eureka server, if it's actually needed for client discovery?

    • @arnobchowdhury1804
      @arnobchowdhury1804 3 роки тому +1

      The only help Eureka will do is to map port numbers to spring application name. So in zuul app.prop you just need to pass app name and not port number

  • @pramodbangalore4636
    @pramodbangalore4636 3 роки тому

    here i want to restrict any api call to directly access doctor-service etc. So i should be allowed to call through
    api gateway only. How to achieve that?

  • @denisr.8248
    @denisr.8248 2 роки тому +1

    Hi can you make this newer version cuz zuul is not supported anymore :S

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

      I already uploaded with spring cloud API gateway please checkout my AWS playlist

  • @arnobchowdhury1804
    @arnobchowdhury1804 3 роки тому +1

    Thank you!

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

    Hi, In case of error code 404, why your error filter not invoked ?? In that case your postFilter invoked.

  • @kpgUser
    @kpgUser 3 роки тому

    Here we need to map every api end -point with diff path ?

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

    Hi bro can you make alternative for zuul server because zuul server not working it been moved to maintenance mode

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

      Please checkout my microservice playlist already i explained how can we use api gateway

  • @majdmn8187
    @majdmn8187 4 роки тому +1

    hey thank you for this tutorial , however how can i add an external microsevice such as nodejs; to this gateway???

  • @yavuzbahadr6700
    @yavuzbahadr6700 4 роки тому +1

    good

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

    How is this even working via the proxy gateway?! There is clearly a typo in the .properties file. You specified htpp instead of http! You aren't using the proxy and the configuration is wrong.

    • @Javatechie
      @Javatechie  4 роки тому +1

      Hi Nicholas , I changed that in middle of video
      As that time I was not using any editing software so didn't update in video
      That's the reason always am sharing source code in GitHub
      You can find GitHub link in video description please have a look

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

      @@Javatechie Thanks for the prompt reply. Ideally, in the zuul configuration we should be doing a lookup using the service-id rather than hard-coding the service url's and ports. Scalability will be an issue with this kind of configuration.

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

    Cannot load configuration class: when run your application error will occur org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration? is any solution for that bro

  • @pradq8689
    @pradq8689 5 років тому +1

    How to deploy boot microservices application on pivotal cloud foundry

    • @Javatechie
      @Javatechie  5 років тому

      Hi Pradeep ,
      I already uploaded it , could you please go through below link
      ua-cam.com/video/jM2HwFbVtIg/v-deo.html
      I have done 3 more cloud environment deployment (Open shift,Heroku,GC)
      If you want you can go through my playlist "cloud deployment"

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

    Not clear on one thing here ..for diagnose service you are pasing diagnose-service but for doctor-service you are using doctor-api ..

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

      This is just the name which i configured as a service

  • @rameshd7443
    @rameshd7443 3 роки тому

    Mobile not able to see it desktop

  • @rupakchaulagain3337
    @rupakchaulagain3337 5 років тому +1

    how to send jwt token from zuul header to submodule. I always get null header in sub-module

    • @Javatechie
      @Javatechie  5 років тому

      Hi Rupak , I never tried this so could you please share your GitHub so that I can check it out

  • @wandererHK
    @wandererHK 3 роки тому

    Filter call are not working for me in zuul, anyone can help?

  • @ridhwanfarishermawan6149
    @ridhwanfarishermawan6149 5 років тому +1

    @enableZuulProxy not found

    • @Javatechie
      @Javatechie  5 років тому +1

      Any error you are getting , please let me know spring boot version which you are using

    • @ridhwanfarishermawan6149
      @ridhwanfarishermawan6149 5 років тому +1

      Fyi, if you build project for proxy server, don't use spring boot version 2.1.3. because it has issue with annotate @enableZuulProxy. The solution is change the spring boot parent version. I use 2.1.0 and it's working now. Thanks Java Techie

    • @Javatechie
      @Javatechie  5 років тому +1

      Yes faris , agree on your statement.few things not fixed yet .
      I experienced few logging related issues and spring loader issue in latest spring Boot version