NOTE: This tutorial is using outdated as it's using Spring Boot 2, I am working on an update for this tutorial. Please refer to the github repo, whenever you are facing any issue with the dependency or compilation errors: github.com/SaiUpadhyayula/spring-boot-microservices
For those who are trying to follow the code, life-saving advice is please follow the same version as the video or you have to find dependency error, Example: EnableServiceClient option is not needed now, and you have to write spring cloud and eureka client dependency in every client's(3) pom file.
You are amazing Sai! Thanks a lot for that! Those videos were exactly what I needed to answer all the questions I had about microservices architecture! Thanks a lot!
The best teacher in microservices without a doubt! I have a question please, does anyone know how I can allow the execution of multiple instances of a microservice using Eclipse, to visualize it in eureka? Thank you very much!
Hi, I recently tried in my eclipse just create multiple instances and start a service with a default port, then run another instance by assigning server.port to 0.
Hi, I have a question about the discovery server. How does the client know the port of the discovery server? It's not the same issue as service discovery itself ? Thanks, this is very informative!
i am unable to run multiple instance of my inventory service on running second instance the first instance restart and changes its port no. how do i fix this?
No servers available for service: inventory-service, LoadBalancer does not contain an instance for the service inventory-service I am getting the above issue while calling to inventory-service. however when i hardcoded the url then it worked fine
When I try to order "iphone_13_red" through the order service it thorws internal server error instead of our Exception.Also once I order "iphone_13" and order is placed successfully then it show the same for whatever order I place.Anyone got any solution for this?
It seems like @EnableEurekaClient is deprecated and got removed. I don't have access to that annotation and I am using spring cloud 2022.0.0. According to StackOverflow, its sufficient to add the dependency to the pom.xml. No need to annotate with @EnableEurekaClient anymore.
22:46 when coding to call API (uri), you give the service name but when testing in postman, why do you write the IP address of the service but not service name? (26:39)
For tests, we call the order-service with the host and port. The order-service itself sends a request to the inventory-service via the service name (no port)
@@vinayakchaurasia7215 Try below and worked for me. its a bug in Eureka. This will give unique id for each instance eureka.instance.instanceId=${spring.application.name}:${random.value} eureka.instance.prefer-ip-address=true
Hello and thank you for the wonderful tutorial! I came up with a problem that have no errors. Seems like the Eureka is not initializing, this does not cause any error in the app but im getting a whitelabel 404 on the eureka dashboard. I tried several solution but nothing worked so far. Do you have any idea how i could resolve this one? Thank you very much @Programming Techie
@@mancave_online Either use exactly same version as him .Or use new 2022.0.0-RC2 version .If using new add repositories section in Parent project pom.xml
@VISHAL GHANGHAV OK I will try the solution with the newer version as the same version with the video didn't work and I will let you know ofc, my name at English is Vagelis (it's a Greek name and I don't have an exact English translation)
Hi Sir !! @LoadBalanced is not working . I am getting same error after adding the annotation as well . I added all the code changes as in video . Can you please help me to resolve the issue
I'm getting this issue xFailed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project product-service: Fatal error compiling: invalid flag: --release -> [Help 1] while running the project can anyone help
NOTE: This tutorial is using outdated as it's using Spring Boot 2, I am working on an update for this tutorial. Please refer to the github repo, whenever you are facing any issue with the dependency or compilation errors: github.com/SaiUpadhyayula/spring-boot-microservices
can you please tell me which jdk you were using in this ,version and name?
For those who are trying to follow the code, life-saving advice is please follow the same version as the video or you have to find dependency error, Example: EnableServiceClient option is not needed now, and you have to write spring cloud and eureka client dependency in every client's(3) pom file.
After spending two hours, finally. Thanks bro.
@@mcnriWhat did you do? Can I see ur code?
Thanks, Just a note for others. you may need to match the version of spring boot starter parent in the root pom.xml.
@@mcnribro can u help me please for that code! Spent hours but still didn't get why getting errors
PS : @EnableEurekaClient is not required for newer versions as it got deprecated. Simply adding the eureka-client dependency is suffice.
Thanks!
Need to add @EnableDiscoveryClient instead
Thanks for the information. this comment made my day.
You are amazing Sai! Thanks a lot for that! Those videos were exactly what I needed to answer all the questions I had about microservices architecture! Thanks a lot!
You are too good at explanation, Thanks much brother 🙏
Great Video !
Good Explanation ✌
I get overwhelmed, there are a lot of things to learn. Thanks for making such videos.
Take it step by step, don't rush it, type the code along with me and you should be fine :)
Thank you. It's great
top notch content !
Thank you so much 🙏
This whole series is so awesome. Thanks buddy
did the service-discovery work for you with multiple instances of inventory-service?
very good
would have liked video 10 times but have only one button. Thank you :)
Thanks you so much!!!!
Hi @Programming Techie ... Thanks for the tutorial .. can u pls share a tutorial describing server side load balancing ?
you're so good
thank you
You are so good. Maybe you can add sonarqube to this project so that we can see how many avarages it passes for a test class.
That would be better to create as a separate series, but it's a good idea I will take a note of that.
To create a complete CI/CD pipleine
caraca KKKKKKKKKK Cada vídeo é rico em conteúdo.
The best teacher in microservices without a doubt!
I have a question please, does anyone know how I can allow the execution of multiple instances of a microservice using Eclipse, to visualize it in eureka? Thank you very much!
Hi, I recently tried in my eclipse just create multiple instances and start a service with a default port, then run another instance by assigning server.port to 0.
@Programming Techie When can we expect the next part? And how many parts you are planning to release in this series?
Instead of service discovery or registry, can we use AWS application Load balancer by using the load balancer Url in order service ?
suprrr
14:32
@EnableDiscoveryClient is required annotation now.
thanks, was looking for this
Hi,
I have a question about the discovery server.
How does the client know the port of the discovery server?
It's not the same issue as service discovery itself ?
Thanks, this is very informative!
i am unable to run multiple instance of my inventory service on running second instance the first instance restart and changes its port no. how do i fix this?
No servers available for service: inventory-service,
LoadBalancer does not contain an instance for the service inventory-service
I am getting the above issue while calling to inventory-service. however when i hardcoded the url then it worked fine
When I try to order "iphone_13_red" through the order service it thorws internal server error instead of our Exception.Also once I order "iphone_13" and order is placed successfully then it show the same for whatever order I place.Anyone got any solution for this?
It seems like @EnableEurekaClient is deprecated and got removed. I don't have access to that annotation and I am using spring cloud 2022.0.0. According to StackOverflow, its sufficient to add the dependency to the pom.xml. No need to annotate with @EnableEurekaClient anymore.
thanks
i got the issue: Unable to start web server, when use @EnableDiscoveryClient, please help me. thanks
My Discovery service is not starting on port 8761, its saying its already in user
will this @LoadBalanced annotation internally uses Ribbon to do the load balancing?
It uses spring cloud loadbalancer :)
22:46 when coding to call API (uri), you give the service name but when testing in postman, why do you write the IP address of the service but not service name? (26:39)
I am facing a problem at this step could you help me out ?
For tests, we call the order-service with the host and port. The order-service itself sends a request to the inventory-service via the service name (no port)
@ Loadbalanced is not working for me. Inventory service has been created with 2 inatances. But not working
Hey could you solve this ?
My Eureka dashboard only shows only 1 Availability Zones, even though i am running more than 1 instances of inventory-service. Any Idea Why?
Hey Sunny,
Could you let me know if you were able to resolve this issue? If Yes, how did you fix it?
@@vinayakchaurasia7215 Try below and worked for me. its a bug in Eureka. This will give unique id for each instance
eureka.instance.instanceId=${spring.application.name}:${random.value}
eureka.instance.prefer-ip-address=true
@@gayannanayakkara8386 thanks
@@gayannanayakkara8386 Thank you!, you save me
thank you so much!
Will Eureka be removed next? Docker Swarm will be used?
We use Kubernetes
Hello and thank you for the wonderful tutorial! I came up with a problem that have no errors. Seems like the Eureka is not initializing, this does not cause any error in the app but im getting a whitelabel 404 on the eureka dashboard. I tried several solution but nothing worked so far. Do you have any idea how i could resolve this one? Thank you very much @Programming Techie
What is the spring cloud version you are using]
@@vishalghanghav748 2021. 0.5 cloud version, 3.0.0 spring version, jdk 17
@@mancave_online Either use exactly same version as him .Or use new 2022.0.0-RC2 version .If using new add repositories section in Parent project pom.xml
One more thing ,Tell me your name in English and let me know if it got resolved after this
@VISHAL GHANGHAV OK I will try the solution with the newer version as the same version with the video didn't work and I will let you know ofc, my name at English is Vagelis (it's a Greek name and I don't have an exact English translation)
multiple Instance doenst work with me
Hey Sai, is this the same course that you published a few months ago?
No this is a remake, with more in depth explanations. I will include docker and Kubernetes also in this series.
@@ProgrammingTechie remake 😀😀
the order service for me is not load balanced though I have load balanced annotation on webclient configuration. I am using java 11 for the project
Same here can u please explain what happenning ?
@@younesshabach3915 I had the same error and I fix it by adding this in application.properties eureka.instance.prefer-ip-address=true
@@hamzabouzidi470 yes that what i found on internet and that fix the issue thank u
The eureka dashboard isn't loading up for me, any idea how can i fix this?
I believe Eureka client is not getting started, idk why!
Hi Sir !! @LoadBalanced is not working . I am getting same error after adding the annotation as well . I added all the code changes as in video . Can you please help me to resolve the issue
Have you found the solution yet?
@Bean
@LoadBalanced
public WebClient.Builder webClient()
{
HttpClient httpClient = HttpClient.create().resolver(DefaultAddressResolverGroup.INSTANCE);
return WebClient.builder() .clientConnector(new ReactorClientHttpConnector(httpClient));
}
São 56k de views para 763 de likes.....
Please, dont use mechanical keyboard in videos. It's so annoying.
I'm getting this issue xFailed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project product-service: Fatal error compiling: invalid flag: --release -> [Help 1] while running the project can anyone help
For all who have been stuck around EnableClient annotation, it's now @EnableDiscoveryClient
Thank you so much