Spring Boot Microservices Tutorial - Part 3 - Inventory Service

Sdílet
Vložit
  • čas přidán 7. 04. 2024
  • In this Spring Boot 3 Microservices tutorial series, we will learn how to build microservices using Spring Boot and Spring Cloud.
    This is part 2 of the series, in this part, we will cover:
    - Building Inventory Service
    - Database migrations using Flyway

Komentáře • 24

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

    This is where fun begins)

  • @lakshmojiseemakurthi2199

    I have deleted the container created for order service. I am grtting an error designated data directory /var/lib/mysql is unusable . How to resolve this

  • @rahulgyawali
    @rahulgyawali Před 8 dny

    docker compose works for me but the command inside init.sql is never executed for me. anyone else facing same issue?

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

    Resolved..

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

    🙂🙏

  • @gauravgaikwad4833
    @gauravgaikwad4833 Před 3 měsíci +1

    By what time period we can expect all the videos of this series to be posted. Asking because I have started old series so if this videos will be posted faster i will resume this series instead of old one. And Thanks for all the work you are doing. Kudos!

    • @ProgrammingTechie
      @ProgrammingTechie  Před 3 měsíci +4

      You can expect 2 videos per week, every Monday and Friday, there are still 8 more videos to go

  • @manjunathasathyanarayana1508

    Hi @ProgrammingTechie
    Greetings
    One Question on Integration Test
    In most of the projects docker will be running on remote CICD server. not available on Local machine. is it possibelto connect to remote docker host through configs in test cases or should we rely write test first and rely on cicd pipelines for execution.

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

      Hi,
      Yes you can use remote docker instance to run the test container tests.
      Test containers also provides a cloud offering where it provides a remote docker host to run the tests.
      datmt.com/backend/configure-testcontainers-to-use-remote-docker-hosts/

  • @chanaky0925
    @chanaky0925 Před 2 měsíci

    The container name "/mysql" is already in use by container

    • @IyadHiraki-tz9nr
      @IyadHiraki-tz9nr Před měsícem

      You have to change the container_name variable in the Docker Compose file to, for example, container_name: mysql1."

  • @howsusisthis
    @howsusisthis Před 2 měsíci +1

    When I run the mysql docker container for the inventory service I get an error saying "The container name "/mysql" is already in use by container" even though I have shut down the docker container for the order service. It works when I change the name but I was just wondering how it works for you without changing the name.

    • @mustafaadel9703
      @mustafaadel9703 Před 2 měsíci

      Same here

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

      @@mustafaadel9703 same question

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

      I guess he have deleted the container for the earlier service that is why he was not getting any issues.

  • @anotherOne12342
    @anotherOne12342 Před 3 měsíci +1

    What appearance theme are you using?

  • @ishaanbhalodia7094
    @ishaanbhalodia7094 Před 20 dny

    I am getting an error when you run the application for the first time around 5:44, stating "Detected failed migration to version 1 (init). Any suggestions?

    • @danielsundersingh1
      @danielsundersingh1 Před 11 dny

      It could be due to a failed flyway migration. Just delete the latest entry from the flyway_schema_history table and run again.

  • @dhruv6113
    @dhruv6113 Před 3 měsíci +1

    Why do you choose jar instead of war? I have been reading about it and didn't find a proper answer. What I read about is that Jar runs on desktop and has webserver packed into it whereas war file runs inside webserver so you will need to take care of that also while creating a container in docker. Using jar will make sure each of our microservice runs independently.
    The second difference I read is JAR files allow us to package multiple files in order to use it as a library, plugin, or any kind of application. On the other hand, WAR files are used only for web applications. Then why are we choosing JAR when our microservice is a web application?

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

      Spring Boot provides us the option of running an embedded tomcat server inside our applications, so that's why there is no need to create a WAR file, you can just create a JAR and run your application.
      Also, a JAR file by definition does not contain a webserver packed into it, it's Spring Boot which is providing us this option.

    • @dhruv6113
      @dhruv6113 Před 2 měsíci

      @@ProgrammingTechie thanks

  • @aziztolearn
    @aziztolearn Před 2 měsíci

    Can you share github link?