Spring Boot Microservices Project Example - Part 3 | Service Discovery

Sdílet
Vložit
  • čas přidán 16. 07. 2024

Komentáře • 100

  • @ProgrammingTechie
    @ProgrammingTechie  Před 5 měsíci +2

    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

    • @user-pv4bb2ib8m
      @user-pv4bb2ib8m Před 5 měsíci

      can you please tell me which jdk you were using in this ,version and name?

  • @pratikmondal9301
    @pratikmondal9301 Před 11 měsíci +10

    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.

    • @mcnri
      @mcnri Před 8 měsíci

      After spending two hours, finally. Thanks bro.

    • @richard8413
      @richard8413 Před 6 měsíci

      ​@@mcnriWhat did you do? Can I see ur code?

    • @aswinvishnua8330
      @aswinvishnua8330 Před 5 měsíci

      Thanks, Just a note for others. you may need to match the version of spring boot starter parent in the root pom.xml.

    • @pubgmi1236
      @pubgmi1236 Před 3 měsíci

      ​@@mcnribro can u help me please for that code! Spent hours but still didn't get why getting errors

  • @vaishnavepranav7394
    @vaishnavepranav7394 Před 10 měsíci +6

    PS : @EnableEurekaClient is not required for newer versions as it got deprecated. Simply adding the eureka-client dependency is suffice.

    • @studyingit9762
      @studyingit9762 Před 9 měsíci

      Thanks!

    • @shaalam9260
      @shaalam9260 Před 9 měsíci +3

      Need to add @EnableDiscoveryClient instead

    • @manojjeenu
      @manojjeenu Před měsícem

      Thanks for the information. this comment made my day.

  • @Emerson-mv4hm
    @Emerson-mv4hm Před 2 lety +7

    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!

  • @surendrareddyseelam9757
    @surendrareddyseelam9757 Před 2 lety +2

    You are too good at explanation, Thanks much brother 🙏

  • @azizerel
    @azizerel Před rokem +1

    Great Video !

  • @sagarsri4143
    @sagarsri4143 Před 2 lety +2

    Good Explanation ✌

  • @deadsoul7702
    @deadsoul7702 Před rokem +5

    I get overwhelmed, there are a lot of things to learn. Thanks for making such videos.

    • @ProgrammingTechie
      @ProgrammingTechie  Před rokem +5

      Take it step by step, don't rush it, type the code along with me and you should be fine :)

  • @IliaSv-tw3dg
    @IliaSv-tw3dg Před rokem +1

    Thank you. It's great

  • @adityagautam1217
    @adityagautam1217 Před 5 měsíci

    top notch content !

  • @az910
    @az910 Před 2 lety +1

    Thank you so much 🙏

  • @divyavegoti4609
    @divyavegoti4609 Před 3 měsíci

    This whole series is so awesome. Thanks buddy

    • @mohammedabbutalha2793
      @mohammedabbutalha2793 Před 3 měsíci

      did the service-discovery work for you with multiple instances of inventory-service?

  • @melihcankilic5918
    @melihcankilic5918 Před rokem +1

    very good

  • @ErLakhan
    @ErLakhan Před rokem

    would have liked video 10 times but have only one button. Thank you :)

  • @Cbastiian
    @Cbastiian Před 4 měsíci

    Thanks you so much!!!!

  • @niyasmanzoor2648
    @niyasmanzoor2648 Před rokem

    Hi @Programming Techie ... Thanks for the tutorial .. can u pls share a tutorial describing server side load balancing ?

  • @eddiebongo4870
    @eddiebongo4870 Před rokem

    you're so good

  • @DuongTran-zh6td
    @DuongTran-zh6td Před 3 měsíci

    thank you

  • @alicanli5890
    @alicanli5890 Před 2 lety +4

    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.

    • @ProgrammingTechie
      @ProgrammingTechie  Před 2 lety +9

      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

  • @vivianfreitas9726
    @vivianfreitas9726 Před 3 měsíci

    caraca KKKKKKKKKK Cada vídeo é rico em conteúdo.

  • @senoremc4628
    @senoremc4628 Před rokem +1

    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!

    • @harshitjain9943
      @harshitjain9943 Před rokem +1

      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.

  • @ayyappank9163
    @ayyappank9163 Před 2 lety

    @Programming Techie When can we expect the next part? And how many parts you are planning to release in this series?

  • @bhavyajain2049
    @bhavyajain2049 Před rokem +1

    Instead of service discovery or registry, can we use AWS application Load balancer by using the load balancer Url in order service ?

  • @hashirventhodi
    @hashirventhodi Před 4 měsíci

    suprrr

  • @zakharbondarev7814
    @zakharbondarev7814 Před rokem +3

    14:32
    @EnableDiscoveryClient is required annotation now.

  • @user-ty8bg6wb5x
    @user-ty8bg6wb5x Před 3 měsíci

    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!

  • @shivammallik2359
    @shivammallik2359 Před 9 měsíci

    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?

  • @AdarshKumar-xh1ie
    @AdarshKumar-xh1ie Před 2 měsíci

    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

  • @AxelWolf26
    @AxelWolf26 Před 6 měsíci

    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?

  • @manugalaxy14
    @manugalaxy14 Před rokem +10

    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.

  • @user-ue3ot5fn9o
    @user-ue3ot5fn9o Před 8 měsíci

    i got the issue: Unable to start web server, when use @EnableDiscoveryClient, please help me. thanks

  • @monalanjewar6202
    @monalanjewar6202 Před 4 měsíci

    My Discovery service is not starting on port 8761, its saying its already in user

  • @saidurgasrividyaupadhyayul4675

    will this @LoadBalanced annotation internally uses Ribbon to do the load balancing?

  • @vongan3788
    @vongan3788 Před 11 měsíci +2

    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)

    • @akshatbhatawdekar4487
      @akshatbhatawdekar4487 Před 8 měsíci

      I am facing a problem at this step could you help me out ?

    • @oleksandr.tereshchenko
      @oleksandr.tereshchenko Před 7 měsíci

      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)

  • @dineshcity
    @dineshcity Před rokem +1

    @ Loadbalanced is not working for me. Inventory service has been created with 2 inatances. But not working

  • @sunnyneo6186
    @sunnyneo6186 Před rokem +4

    My Eureka dashboard only shows only 1 Availability Zones, even though i am running more than 1 instances of inventory-service. Any Idea Why?

    • @vinayakchaurasia7215
      @vinayakchaurasia7215 Před rokem +4

      Hey Sunny,
      Could you let me know if you were able to resolve this issue? If Yes, how did you fix it?

    • @gayannanayakkara8386
      @gayannanayakkara8386 Před rokem +6

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

    • @salavatislamov5957
      @salavatislamov5957 Před rokem +1

      @@gayannanayakkara8386 thanks

    • @juancaos01
      @juancaos01 Před rokem +1

      @@gayannanayakkara8386 Thank you!, you save me

    • @aayushisingh3280
      @aayushisingh3280 Před 11 měsíci

      thank you so much!

  • @user-mb6hx4uf8p
    @user-mb6hx4uf8p Před 2 lety +1

    Will Eureka be removed next? Docker Swarm will be used?

  • @mancave_online
    @mancave_online Před rokem +1

    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

    • @vishalghanghav748
      @vishalghanghav748 Před rokem

      What is the spring cloud version you are using]

    • @mancave_online
      @mancave_online Před rokem

      @@vishalghanghav748 2021. 0.5 cloud version, 3.0.0 spring version, jdk 17

    • @vishalghanghav748
      @vishalghanghav748 Před rokem +1

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

    • @vishalghanghav748
      @vishalghanghav748 Před rokem

      One more thing ,Tell me your name in English and let me know if it got resolved after this

    • @mancave_online
      @mancave_online Před rokem +1

      @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)

  • @vivianfreitas9726
    @vivianfreitas9726 Před 3 měsíci

    multiple Instance doenst work with me

  • @jasper5016
    @jasper5016 Před 2 lety

    Hey Sai, is this the same course that you published a few months ago?

    • @ProgrammingTechie
      @ProgrammingTechie  Před 2 lety +5

      No this is a remake, with more in depth explanations. I will include docker and Kubernetes also in this series.

    • @abhinashpandey9854
      @abhinashpandey9854 Před 2 lety

      @@ProgrammingTechie remake 😀😀

  • @mdmhas09
    @mdmhas09 Před 2 lety +4

    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

    • @younesshabach3915
      @younesshabach3915 Před rokem +1

      Same here can u please explain what happenning ?

    • @hamzabouzidi470
      @hamzabouzidi470 Před rokem

      @@younesshabach3915 I had the same error and I fix it by adding this in application.properties eureka.instance.prefer-ip-address=true

    • @younesshabach3915
      @younesshabach3915 Před rokem +1

      @@hamzabouzidi470 yes that what i found on internet and that fix the issue thank u

  • @programmingwithakshay
    @programmingwithakshay Před 11 měsíci

    The eureka dashboard isn't loading up for me, any idea how can i fix this?

  • @user-uw8eq1xw3h
    @user-uw8eq1xw3h Před 7 měsíci

    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

    • @richard8413
      @richard8413 Před 6 měsíci

      Have you found the solution yet?

    • @SanthoshKumar-fw4dz
      @SanthoshKumar-fw4dz Před měsícem

      @Bean
      @LoadBalanced
      public WebClient.Builder webClient()
      {
      HttpClient httpClient = HttpClient.create().resolver(DefaultAddressResolverGroup.INSTANCE);
      return WebClient.builder() .clientConnector(new ReactorClientHttpConnector(httpClient));
      }

  • @vivianfreitas9726
    @vivianfreitas9726 Před 3 měsíci

    São 56k de views para 763 de likes.....

  • @username0344
    @username0344 Před 4 měsíci

    Please, dont use mechanical keyboard in videos. It's so annoying.

  • @preetisharma9859
    @preetisharma9859 Před 4 měsíci

    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

  • @deyanshotev3137
    @deyanshotev3137 Před rokem +1

    For all who have been stuck around EnableClient annotation, it's now @EnableDiscoveryClient