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
Nice tutorial, one suggestion, please follow the coding convention or declare you are not focusing on that.
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
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.
Thanks Varun , glad to hear this from you
Spring Boot 2.0.6? Now Zuul is not part of new Spring Boot version
thanks great video.Can you please describe where we use security in Zuul api or in service api
Best and very clear practical explanation thanks a lot
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.
Hi Manish , thank you
Yes to avoid hardcode value we can use cloud config or cloud consule
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.
Thanks dude .sure already I prepared poc soon will start microservice series with all this concept
Excellent video on zual services
Great Work Bro..Could you please make video on integration of ZUUL, Config, Eureka ...
Thank you sir, learned something new
good example, good explanation
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.
I didn't uploaded yet.but will do middle of this month .will start as microservice series tutorial
Best regards from México Manuel Silva
Hi Basant,
Could you please make one video how to handle transaction failures in microservices or transaction management
Okay sure I will plan that
Thanks you! appreciate this approach!
wow easy learning thanks
Nicely explained
Thankyou so much.. it is very helpful
ARe you from Orissa.
Thank you sir. I have learnt something new today.
grt explanation !! kudos
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?
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
Hi Basant Bhai, I am not able to find the "Zuul" dependency in spring intializr while trying to replicate this example. Please suggest next
I believe its in maintenance mode . please try using spring cloud gateway
can you write as custom filter? and can you prepare a dynamic proxy pass configuration?
Any reason why you want this scenario ?
Let me know so that I can come up with realtime scenario
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
Great job, do you have any course of microservices on udemy or any where?
Hi Ninoos , no I don't have any in udemy , all concept I uploaded here
Will this also act as the SSL Termination or SSL pass through only
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?
if we have eureka deployed do we need to provide the host and port for the zuul routing
Awesome..
When am running your example I'm facing error of nestedservletexception can you help me out for this
why doesn't it need an eureka server, if it's actually needed for client discovery?
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
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?
Hi can you make this newer version cuz zuul is not supported anymore :S
I already uploaded with spring cloud API gateway please checkout my AWS playlist
Thank you!
Hi, In case of error code 404, why your error filter not invoked ?? In that case your postFilter invoked.
Here we need to map every api end -point with diff path ?
Hi bro can you make alternative for zuul server because zuul server not working it been moved to maintenance mode
Please checkout my microservice playlist already i explained how can we use api gateway
hey thank you for this tutorial , however how can i add an external microsevice such as nodejs; to this gateway???
good
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.
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
@@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.
Cannot load configuration class: when run your application error will occur org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration? is any solution for that bro
How to deploy boot microservices application on pivotal cloud foundry
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"
Not clear on one thing here ..for diagnose service you are pasing diagnose-service but for doctor-service you are using doctor-api ..
This is just the name which i configured as a service
Mobile not able to see it desktop
how to send jwt token from zuul header to submodule. I always get null header in sub-module
Hi Rupak , I never tried this so could you please share your GitHub so that I can check it out
Filter call are not working for me in zuul, anyone can help?
same here
@enableZuulProxy not found
Any error you are getting , please let me know spring boot version which you are using
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
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