Spring Boot Microservices Project Example - Part 1 | Building Services

Поделиться
HTML-код
  • Опубликовано: 6 фев 2025

Комментарии • 344

  • @ProgrammingTechie
    @ProgrammingTechie  Год назад +26

    NOTE: This tutorial is using outdated as it's using Spring Boot 2, here is a link to the newest tutorial using Spring Boot 3 and deployment using Kubernetes -
    ruclips.net/p/PLSVW22jAG8pDeU80nDzbUgr8qqzEMppi8&si=01qr9Fw0O8S-0Nbw

    • @Garchomp10501
      @Garchomp10501 Год назад

      Thank you for update i was trying to figure out testcontainer but seems like they have changed too looking forward for updated video

    • @prasadnaik2701
      @prasadnaik2701 Год назад +1

      Hi Sai @ProgrammingTechie
      When w will be launching updated version of this tutorial using spring 3 and also please add jwt tokens add one more service like user service that would be very helpful bcz of in springboot 3 majority was changes in jwt and tokens

    • @liongh8994
      @liongh8994 9 месяцев назад

      What is the name of the theme in ur intillia

    • @arunabhtiwari4771
      @arunabhtiwari4771 9 месяцев назад +2

      Hi ,
      Could you please tell when will the updated version of the course will come out. please add jwt tokens

    • @vannakheng
      @vannakheng 6 месяцев назад

      I don't know about Notification service that got publish event from order service using ApplicationEventPublisher why not using kafka publisher and why you use @PostConstruct in configuration class

  • @fvagvTV
    @fvagvTV Год назад +16

    I have been searching, reading and passing through courses, videos and blogs on microservices and architectures for the past week - this is by far the best tutorial for now which I have came across. Good job and thank you for the quality content!

  • @cosmin_anton3995
    @cosmin_anton3995 Год назад +13

    Tbh the best tutorial found online. Your skills in explaining, presenting all of the key concepts, good practices and steps are amazing.
    You've earn my respect. Love from Romania

  • @TechJunc
    @TechJunc 2 года назад +5

    I am not someone who writes a comment regularly or likes a video. But I have to say about this video: well job done!

  • @vivianfreitas9726
    @vivianfreitas9726 10 месяцев назад +2

    Camaba KKKK Você explica muito bem. EU tinha comprado um curso na Udemy sobre microsserviços, mas eu não gostei da didática do professor. Pedi reembolso e achei essa maravilha no youtube HAHAHA Parabéns pela playlist criada. Você com certeza ajudou muitas pessoas.

  • @miajia5151
    @miajia5151 Год назад +2

    谢谢!

  • @nandk98
    @nandk98 6 месяцев назад +3

    A very ambitious project and a comprehensive presentation too. From 2 different database services, where the first is a docker image and the next a physical one, stateful and stateless services, inter service communication, Junit and integration testing, pre-configuring data in the tables and dto and much more; all in Part-1 of the video itself. That would take a large volume book to present to cover. And your clarity of presentation is amazing. Could all these be accomplished in just 95 minutes. I am in awe! Thanks a lot!!👋👋

  • @amrabdelhady
    @amrabdelhady Год назад +1

    Thanks!

  • @abhishekgowlikar
    @abhishekgowlikar Год назад +1

    So much detail never seen video like before, Hats for the patience and teaching.

  • @jimbo5437
    @jimbo5437 Год назад +2

    Easily the best tutorial. Cheers from USA. Thank you!

  • @dineshreddy1822
    @dineshreddy1822 2 года назад +5

    I have done the playlist from this channel for Microservices architecture, and it immensely helped me in clearing my design round in the interview and I successfully able to clear the interview. Thank you so much my dear for the amazing content and efforts. Love🤗💝

    • @ProgrammingTechie
      @ProgrammingTechie  2 года назад

      Wow that's great to hear 👍

    • @BryanPham027
      @BryanPham027 2 года назад

      @@ProgrammingTechie I'm having a problem with Write Integration Tests in Product-Service. Can you help me? I sent the message through your Facebook Page.

    • @ProgrammingTechie
      @ProgrammingTechie  2 года назад +1

      ​@@BryanPham027 Send me an email at programmingtechie@gmail.com

    • @BryanPham027
      @BryanPham027 2 года назад

      @@ProgrammingTechie Thank you. I sent the email

    • @pawanverma2575
      @pawanverma2575 Год назад

      @dineshreddy1822 Have you put the same project in ur resume please reply 🙏

  • @VultureGamerPL
    @VultureGamerPL 6 месяцев назад +1

    Bro this is our exact stack, like the exact application. Thanks I learned a lot and helped me progress in my job

  • @Siva_n1505
    @Siva_n1505 2 года назад +5

    Hope this would be one of my favorite channels. Great stuff. Request you to publish more videos

    • @ayushkumarsone4401
      @ayushkumarsone4401 2 года назад +1

      Hii Bro .. I m getting Could not find a valid Docker environment after writing integration test and running test please help

    • @rishiraj2548
      @rishiraj2548 Год назад

      I, too, hope so. I found this playlist and channel just now.

    • @ajumobimunira3999
      @ajumobimunira3999 Год назад

      ​@@ayushkumarsone4401
      Same here, it's saying could not find valid docker environment after running the code

  • @huseyinturkmen06
    @huseyinturkmen06 Год назад +10

    Very usefull video but i think u forgot a little point that can make confused a programmer who hasn't experience so much about spring.
    The point is that you had created a db named "order-service" in mysql before running the order service but if i havn't missed you didn't show it in the video but you showed the right way of it while running the inventory-service.
    Summary: You should have created the database in mysql management interface with the same name in application.properties before running the API or you will be having an annoying error which isn't easy to solve without knowing this ))

  • @shivambaghel9668
    @shivambaghel9668 8 месяцев назад

    Best tutorial of Micro Service found till now

  • @jaymartinez311
    @jaymartinez311 2 года назад +5

    I appreciate the course and I shared it across all my social media outlets. Thank you for the free content. 🙏🏾

  • @aadiraj6126
    @aadiraj6126 2 года назад +5

    Thank you 🙏 Despite knowing all these subject, still we love to hear from you bcoz of your product quality, & also bcoz we often get to learn something new from u😁

    • @ProgrammingTechie
      @ProgrammingTechie  2 года назад +3

      Thank you. This is going to be in-depth tutorial than the previous series 🙂

    • @codegeek8256
      @codegeek8256 2 года назад

      I always learn new thing on each video. very helpful and impactful.

  • @peterbarts8351
    @peterbarts8351 Год назад +2

    What a wonderful tutorial! Key concepts from A to Z levering high level knowledge to all of us. Thank you very much for sharing your knowledge, great teacher!

  • @IvanRandomDude
    @IvanRandomDude 2 года назад +35

    Just a hint: you don't need to create new package and then new class inside it. You can name your class packagename.Classname and the package will be create automatically. Quicker

  • @samirpanchal5883
    @samirpanchal5883 2 года назад +2

    Those who are facing problem recognizing inventory or order service module in intellij try following steps:
    go to File->project structure->click on modules tab on the left side-->click on the plus icon-->click Import Module --> and select module from the popup and hit OK.
    If your submodule is not visible then make sure you extracted in the right folder or reload project from disk.
    Hit like if it solve your problem so others can see it. I wasted 1 hour on this issue
    AND thanks for this course.

  • @mostainahmed3125
    @mostainahmed3125 Год назад +4

    One of the best content ever. Highly practical. Thanks man. Really appricated.

  • @maneshipocrates
    @maneshipocrates 2 года назад +3

    Thank you very much! Been learning spring but not certain about putting it together so simple.

  • @wecode9424
    @wecode9424 2 года назад +5

    Fantastic walk through into key concepts in microservices touching the most important points and straight to the point. Keep up!

  • @xuaniennguyen6573
    @xuaniennguyen6573 2 года назад +2

    Thanks. The video is very helpful for me. Hope to see part 2 soon.

  • @shwetabhat9981
    @shwetabhat9981 2 года назад +15

    Woah !! Much awaited . Thank you for all the efforts sir 🙂 Really looking forward to this learning curve

  • @kantanaik1822
    @kantanaik1822 2 года назад +1

    Thanks man!!! 😊
    Just started learning about Microservices and found ur channel. It's really helpful.

  • @anjanik7053
    @anjanik7053 Год назад

    Explanation technique is very nice.. and all the small thing which you have used .. explained nicely 🙏

  • @dhineshr8918
    @dhineshr8918 2 года назад +1

    Thanks, bro, nice explanation waiting for the second part of the video

  • @Sunnykumar-hs8dx
    @Sunnykumar-hs8dx 4 месяца назад

    superb.. this is what I was looking for.. thanks a lot sir g

  • @kandaswamygopinath6490
    @kandaswamygopinath6490 2 года назад +1

    You channel has been amazing. I have learnt a lot from this.

  • @victorcreed8989
    @victorcreed8989 Год назад +5

    Instead of making ddl-auto to create-drop you can simply put condition in bean for Inventory service to check if table already has data using findAll() and if it's null only then insert data into table. That way you don't have to make any changes to properties file.

  • @ВикторПистолет
    @ВикторПистолет 9 месяцев назад

    Thank you very much from Russia! Go on brother

  • @surendrasahni8725
    @surendrasahni8725 2 года назад +1

    Awesome 🙏 Thanks to support with live project

  • @beaumontmuni4294
    @beaumontmuni4294 2 года назад +1

    wow ... this is one awesome tutorial ... fantastic and much much appreciated. 👍 Thank you very much.

  • @tippabatinisantoshkumar2931
    @tippabatinisantoshkumar2931 2 года назад +1

    Simply superb... 👏

  • @sriplano748
    @sriplano748 2 года назад

    Detailed yet crisp presentation.

  • @turgaycabalak9712
    @turgaycabalak9712 2 года назад +1

    Thank you so much for the lecture. Btw I used the docker image for mongo and used the properties like below:
    spring:
    application:
    name: product-service
    data:
    mongodb:
    auto-index-creation: 'true'
    authentication-database: admin
    database: product-service
    username: root
    password: root
    port: '27017'
    host: localhost
    instead of defining uri. That's why I'm little confused especially in the integration test(because you are using uri there but i don't have). Still it is going well please keep going. Appreciated...

    • @IvanRandomDude
      @IvanRandomDude 2 года назад

      You can use both ways, just make sure you don't MIX them lol

  • @ToiBroCode
    @ToiBroCode Год назад

    Thanks bro, I learned a lot. Learning is a series and Series is also a learning. 😀

  • @sajeeshkumar4510
    @sajeeshkumar4510 2 года назад +1

    Nice presentation. Learned a lot here. Thanks

  • @neerajrajak6150
    @neerajrajak6150 Год назад +1

    Thanks for this wonderfull tutorial. This helped me a lot.

  • @tutosolve
    @tutosolve Год назад

    I extremely appriciate What You have done, Great. From King Vietnam

  • @danicazdravkovic8127
    @danicazdravkovic8127 Год назад +1

    Very useful tutorial, helped a lot! Keep on filming these wonderful videos!!!

  • @AmareshHD
    @AmareshHD 2 года назад +3

    Really nice I was looking for the same tutorial thanks a lot

  • @paragsarkar6327
    @paragsarkar6327 2 года назад +3

    This is too good do add kubernates and docker here to deploy to gke and then I do not have to buy any other courses or visit anyone other tech coding channel

  • @saketsourav31
    @saketsourav31 9 месяцев назад

    Exactly what I was looking for, great content 🙌

  • @jnsridhar
    @jnsridhar 4 месяца назад +1

    At 57:30 it shoud be called mapToEntity rather than mapToDto. Excellent tutorial.

  • @nandkumarjawale9919
    @nandkumarjawale9919 2 года назад +1

    This is a gem. Thank you so much!

  • @krishnasmusicchart4897
    @krishnasmusicchart4897 Год назад +1

    Excellent sir. Thank you

  • @rockdynamics7766
    @rockdynamics7766 2 года назад +1

    This videos is so helpful to me .Pls where is the kubernetes deployments tutorial ?

  • @charuwaka1
    @charuwaka1 2 месяца назад

    For Orders, you could have used UUID for the Primary key (especially when you're using microservices), and for DTO could have used ModelMapper.

  • @aviator9728
    @aviator9728 2 года назад +2

    Thanks for covering docker Nd kubernetes please make series I'll do along with you

  • @arivan-amin
    @arivan-amin Год назад

    Thank you for your great efforts, really good tutorial

  • @ChandlerBing11
    @ChandlerBing11 2 года назад +1

    That's a really insane content. Thank you so much

  • @umasg8621
    @umasg8621 2 года назад +1

    Thanks for the amazing content..!!

  • @augusto.m20932
    @augusto.m20932 2 года назад

    Perfect. Keep up the excelent work sir.

  • @firozgg7524
    @firozgg7524 2 года назад

    Thank you so much for the multi-module section❤

  • @dominus360
    @dominus360 2 года назад +1

    That a good content man. Keep it up !

  • @vaishnavepranav7394
    @vaishnavepranav7394 Год назад

    Excellent One. Thanks for the video.

  • @anithak6650
    @anithak6650 Год назад

    Thank you!Nice project on Micro services .

  • @AshbelReinhard
    @AshbelReinhard 2 года назад +1

    An effort much appreciated, Hats off @ProgrammingTechie

  • @SuperAkifraza
    @SuperAkifraza 2 года назад +1

    Awesome tutorial thanks

  • @ghislaincabrel3880
    @ghislaincabrel3880 2 года назад +1

    Thank you for this amazing content.

  • @Yourmothersmuff
    @Yourmothersmuff 2 года назад +7

    Hi Can you implement a CICD piple line to this at the end? Thank you for implementing all the technologies your tutorials are awesome.

  • @SampathkumarP
    @SampathkumarP Год назад

    Fantastic video. Really appreciated. for the work

  • @pr.badritijane1316
    @pr.badritijane1316 2 года назад +1

    Merci bcp c'est super bien expliquer 🙏🙏

  • @Satishkumar-rx7oy
    @Satishkumar-rx7oy 2 года назад +1

    thanks sir this is the great one..

  • @TomPadiTom
    @TomPadiTom 2 года назад +1

    Hey!! This is great, thanks a lot!
    I just started studying microservices.
    Of course, there is a lot of theory... Having a more practical approach it sure helps a lot!
    Thanks

  • @dakshdeepak7732
    @dakshdeepak7732 2 года назад

    This is really osm the way he is delivering the content superb his communication is super se uper we will follow u dear ...stay blessed 👏 Subscribed

  • @vigneshsivashanmugam531
    @vigneshsivashanmugam531 2 года назад +1

    Sai,I am getting this error "com.mongodb.MongoSocketReadException: Prematurely reached end of stream" while running tests using testcontainer (41:27 timestamp in video).Can you please help how we can fix it as I can see few people mentioned same error below comments.I followed the steps which you have mentioned in the video. Installed Mongo compass and docker is also up and running. Also getting this error also "java.io.IOException: java.nio.channels.ClosedChannelException" -Not sure if both errors are interlinked

    • @ProgrammingTechie
      @ProgrammingTechie  2 года назад

      I still didn't check this issue, will fix it as part of the final video part

    • @safouenegharbi3133
      @safouenegharbi3133 2 года назад

      Have you resolved the problem please ?

  • @revatis2571
    @revatis2571 7 месяцев назад +1

    Can someone explain why in Product Controller we need to get product body using productRequest? 15:20 Can't we just do this way public ResponseEntity addproduct(@RequestBody Product p){
    Product p1=prorepo.savePro(p);
    return ResponseEntity.ok(p);
    }...I am a newbie so plz dont mind if the question is dumb.

  • @furciorifa
    @furciorifa Год назад +1

    You didn't explain that we need to have running our Docker instance in order to be able to use TestContainers, and other things that you take for granted, I guess that we should have experience on that kind of subtleties.

  • @utkarshk2
    @utkarshk2 2 года назад

    Nice presentation, to the point . thanks a lot .
    Waiting for part 2 . Already subscribed.

  • @puneettiwari4516
    @puneettiwari4516 Месяц назад

    Greate explanation, can. you please share which theme/color scheme you are using in IntelliJ and how to configure this

  • @coderkamath7394
    @coderkamath7394 Год назад +1

    Would be nice to have a chat feature too for learning the web Sockets, but overall impressive stuff.

  • @tabrezshaikh7705
    @tabrezshaikh7705 2 года назад +1

    Excellent!

  • @samahmahdi5511
    @samahmahdi5511 Год назад

    Nice tutorial, many thanks

  • @Ucat66
    @Ucat66 Год назад

    This is more like look at what I do and how I do it than explaining with the intention of giving the audience a chance to learn.
    It seems the only way is to play the video at half speed.

  • @ТимурУтяганов-о2ч
    @ТимурУтяганов-о2ч 2 года назад +1

    Thank you for this!

  • @prateekashtikar8631
    @prateekashtikar8631 17 дней назад

    Can you please explain how token relay works in microservices?

  • @deanclancy6448
    @deanclancy6448 2 года назад +1

    Thank you. This is great.

  • @techlead_ashu
    @techlead_ashu Год назад

    13:26 Is there any specific reason for choosing constructor injection instead of @Autowired in this case? Or both are same?

  • @melihcankilic5918
    @melihcankilic5918 2 года назад +1

    thank you bro, it is very good.

  • @catty1020
    @catty1020 8 месяцев назад

    Great video with in depth explanation of concepts. If anyone can help me it would be great, I am actually facing an issue where on compiling the project the tomcat port and connection is not showing up the messages like it did in the video at 22:09 minute. I have downloaded the plugins, and tested the connection.

  • @ascar66
    @ascar66 2 года назад +2

    thank you, nice video

  • @techlead_ashu
    @techlead_ashu Год назад

    1:28:48 I recently downloaded my projects from Spring Initializers. While it gave me spring-boot-maven-plugin .. there was no compiler plugin in the code generated by initializr. So as it wasn't there in single module projects, i'm not adding it in multi module project's root pom.

  • @akilesh-x4g
    @akilesh-x4g Год назад +1

    Hi Sir , Firstly Thank you for your great work !! As a Beginner It is helping alot !! Can you also please share the Database scripts for creating the Table structure as well . So that it would be easy to execute and run the application . Like Order service , Inventory service scripts.

  • @salah-eddinesalam2518
    @salah-eddinesalam2518 2 года назад +7

    Hi @Programming Techie, Thank you for the great content, i have some questions please:
    how many parts gonna be in this series ?
    when you gonna release the next video ?
    Can't wait to see how you gonna implement spring cloud gateway with Oauth 2 capabilities.

    • @ProgrammingTechie
      @ProgrammingTechie  2 года назад +8

      This is going to be 8-9 part series, next video is going to be released on Saturday.

    • @amarnathkumar2564
      @amarnathkumar2564 2 года назад

      @@ProgrammingTechie Are you sleeping?

  • @nomadOn2Wheels-n2w
    @nomadOn2Wheels-n2w Год назад

    adding the inventory serivce to the parent you might not get the application as runnable class. to fix that go the the "project structure -> modules -> click on + button -> select the inventory-service" this will do the job

  • @khusanbekgafurov
    @khusanbekgafurov Год назад +1

    1:19:25 I get an error like: Error creating bean with name 'inventoryController'
    It was all problem with InventoryRepository as in Inventory service implementation section of this video Optional data type is used for InventoryRepository method called findBySkuCode. But, once again, on github page, findBySkuCode is changed to findBySkuCodeIn and implementation is also changed with usage of List.
    Anyway, everything worked for me, when I followed the github. But, once again you have to be smart on where to follow on github.
    Thanks for the video.

  • @elyorkarimov2203
    @elyorkarimov2203 2 года назад +1

    thank you very much

  • @gangireddytejeswarreddy9643
    @gangireddytejeswarreddy9643 Месяц назад +1

    Hi,If Iam using Lombok in my project it is not supporting ,it is throwing an error what might be the reason can you tell me

  • @Granta_Omega
    @Granta_Omega Год назад

    Why are you using the required args constructor annotation instead of just using the Autowired annotation?

  • @shivendratiwari3238
    @shivendratiwari3238 2 года назад +1

    Please make some videos on spring reactive

  • @MilsonPazienza
    @MilsonPazienza 2 года назад +1

    Thanks big bro

  • @udhayachandhar4770
    @udhayachandhar4770 2 года назад

    Excellent. Thank you so much

  • @rajatverma1688
    @rajatverma1688 Год назад

    I have just started the series, definitely enjoying your content. Thank you.
    Quick question: At 43:13, I was expecting that the size of the products should be 2 because you already created an object before. Do the mock post request to create object does not actually creates the product, or did you deleted it previously?

    • @Mallikarjundev-mh6ge
      @Mallikarjundev-mh6ge 11 месяцев назад

      Test containers are using db from the docker image which is online. But other services are using Mongodb from the system(computer). That’s why used 1 as it was empty from the beginning.

  • @pr-nine
    @pr-nine 2 года назад +1

    Thank you :)

  • @marepallinagarjuna5674
    @marepallinagarjuna5674 Год назад

    All communication between between inventory and order service then what is the use of product service can you explain sir

  • @veluvarthi
    @veluvarthi 7 месяцев назад

    How to configure intilij idea to show compile error while missing autoconfigiremvc , when we added mockmvc ? Please explain setting for that

  • @bhumithakkar7347
    @bhumithakkar7347 Год назад +1

    Hello, @Testcontainers annotation is not working. Could you please help with the solution?