🚀 🔥 Mastering Microservices: Spring boot, Spring Cloud and Keycloak In 7 Hours

Поділитися
Вставка
  • Опубліковано 13 січ 2025

КОМЕНТАРІ • 401

  • @thane-j
    @thane-j 3 місяці тому +16

    This has to be one of the best Java-Spring-Auth-MircoService Tutorial in youtube!

  • @adamoneill3933
    @adamoneill3933 7 місяців тому +38

    The long awaited video is finally here, currently watching in parts. great content so far, thanks for delivering this tutorial for free!

    • @_ravi_kumar_gupta
      @_ravi_kumar_gupta 7 місяців тому

      Can you also help in how we can scale this application

    • @BoualiAli
      @BoualiAli  7 місяців тому +2

      Hope you enjoy it!

  • @TechieClasher
    @TechieClasher 7 місяців тому +60

    i feel so happy when creators create spring boot tutorials. its very rare, even very less documentation available

    • @BoualiAli
      @BoualiAli  7 місяців тому +5

      Hope you enjoy it!

    • @VictorKovner
      @VictorKovner 5 місяців тому +1

      And the official documentation is not extremely good. BTW, try Thomas Vitale's book, I find it very good.

  • @DukeJava-x7z
    @DukeJava-x7z 3 місяці тому +3

    As always, very grateful for your videos.
    Eagerly waiting for the concepts said in the outro:
    - Microservice Patterns
    - ELK Stack
    - Event Driven
    etc...
    Really appreciate your efforts

  • @mohamad_hilal
    @mohamad_hilal 14 днів тому +1

    بارك الله فيك محتوى غني بالمعرفة جزاك الله الخير
    تحية لك من سوريا 🤍

  • @prasadraju8700
    @prasadraju8700 4 місяці тому +2

    have only completed half of the video course and
    Couldn’t wait any longer to appreciate the efforts you put in to give us a very valuable knowledge. The contents of the video course are as per market standards and exactly what any developer will look for. Really thank you so much @Ali. Keep uploading such contents

    • @BoualiAli
      @BoualiAli  4 місяці тому

      Glad you enjoyed it

  • @ThabaniMoyo-q7u
    @ThabaniMoyo-q7u 7 місяців тому +3

    @Bouali Ali is a lecturer who is a cut above the rest. Nice and slowly in teachings. He explains all his steps so well. This makes you understand the architectural thinking and you build from first principles! Well done!!!!

  • @CodewithAby
    @CodewithAby 4 місяці тому +1

    This is the first Microservices Spring Boot course I have watched from start to finish, taking notes and practicing along the way. Thank you for taking the time to prepare this and for making it free.

  • @ahmetatar8263
    @ahmetatar8263 Місяць тому +2

    Please take this as a friendly and constructive feedback from a university student who is in the beginning of a journey to become a backend developer. Although the video (or course, if you wanna call it like that) is really comprehensive, there are some bad practices as I noticed. For instance, you do not care about the losely-coupled philosophy, you inject a lot of dependencies in a single service, for example in order service, there are literally 7 injections, and this might be a drawback in point of scalability. But anyhow, I sincerely thank you for sharing this valuable and rich resource with us!

  • @NewWay2Learn
    @NewWay2Learn 6 місяців тому +1

    Thanks for the wonderful course! While watching the video, I had a few questions. What happens when a payment fails? How does the order get reverted? I'm curious about transaction management across services. After some exploration, I discovered that the "eventual consistency" principle might be suitable for micro service architecture. While I've heard 2PC is an option, it has several edge case issues so Orchestration or Choreography could provide a solution.
    I would appreciate a deeper understanding of these patterns, including their advantages and disadvantages. Additionally, more theoretical insights covering the most other use cases and related scenarios would be beneficial. This is just a request, and I look forward to it whenever you have time. Thanks again!

  • @yunusarifsaid1788
    @yunusarifsaid1788 5 місяців тому +2

    What i like most about this video/course is there is no fluff. Just pure sweetness

  • @Dhana9373
    @Dhana9373 Місяць тому

    Really, I feel so happy when creators create spring boot tutorials. it's scarce, even very little documentation available..❣❣

  • @IsmailShaik_OG
    @IsmailShaik_OG 17 днів тому +1

    finally found what i need appreciated the work and explanations.

  • @shadownight3106
    @shadownight3106 7 місяців тому +148

    He won't rest until everyone is working at the market.

    • @ibrahim-ry6sn
      @ibrahim-ry6sn 7 місяців тому +6

      He is amazing❤❤

    • @BoualiAli
      @BoualiAli  7 місяців тому +38

      this is my goal

    • @rtweakim3122
      @rtweakim3122 7 місяців тому

      Good, sound good👍🏻👍🏻👍🏻

    • @hunterxdk
      @hunterxdk 7 місяців тому +2

      @BoualiAli ... lost opportunity to say "You are goddamn right"

  • @muokinzangi3067
    @muokinzangi3067 7 місяців тому +5

    The best professor on Spring Boot and Microservices. How can I give him 1M likes. Great content Sir

  • @saeedeldeeb7611
    @saeedeldeeb7611 3 місяці тому +2

    ربنا يبارك فيك يا حبيب هي دي زكاة العلم فعلا ❤❤

    • @BoualiAli
      @BoualiAli  3 місяці тому

      allah ybarek fik akhi.
      Where are you following from?

    • @saeedeldeeb7611
      @saeedeldeeb7611 3 місяці тому

      @@BoualiAli من مصر يا صديقي

    • @BoualiAli
      @BoualiAli  3 місяці тому

      @@saeedeldeeb7611 تشرفت

  • @DixNik-p5x
    @DixNik-p5x 5 місяців тому

    One of the best teachers that I've seen on all platform courses.
    Everything is super clear, you know how to catch the attention of your student, you keep everything super simple and trough all the tutorial I'm just waiting to see what comes next.
    Your tutorials are full of a lot of interesting things, they are concise but a big number of technologies are touched, that incredible!
    All my respect and admiration for your effort

    • @BoualiAli
      @BoualiAli  4 місяці тому

      Really glad to hear that

  • @valentinogiardino1752
    @valentinogiardino1752 6 місяців тому +1

    Thank you a lot. Excellent idea, video, and explanation. 100% quality material in this video. My Respects.
    I would like to point out that the Keycloak section is not committed in the repo and also misses the migration of the config to the configService. However, I was still able to complete it

  • @abhisheksaxena518
    @abhisheksaxena518 4 місяці тому +2

    Amazing tutorial, thank you!
    I faced some issues with tracing with Zipkin. So, I think all the API calls for the same flow should be part of the same trace entry instead of multiple entries. In order to solve it, I removed Feign Client (I was facing issues with load blancer paths), and replaced it with RestTemplate. Once done, all the API calls for the same flow, say order, was part of the same trace, here 9 spans.
    Also, please note, don't create your own implementation of RestTemplate as it won't be able to trace the API calls. So, create a bean of RestTemplate by passing RestTemplateBuilder to its parameter of the bean creation. That should fix the issue.

  • @yogms
    @yogms 7 місяців тому +3

    By far the best Spring course! Congrats!!!!! I have seen the full video. : )

  • @oyebamijimohammed9543
    @oyebamijimohammed9543 6 місяців тому +3

    This is wow honestly, I work through this over two or more weeks but it pays, Filled with knowledge

  • @3xperttt
    @3xperttt 7 місяців тому +5

    Thank you Bouali, you are a real one. I learned many resources and methods and so much more from your amazing videos. Much appreciations brother

    • @BoualiAli
      @BoualiAli  7 місяців тому

      I appreciate that!

  • @دردشةفيالهوى
    @دردشةفيالهوى 3 місяці тому

    THANK YOU SO MUCH THIS IS THE FIRST TIME I HAVE COMPLETED A VIDEO THAAAAAANKS FOR THE EFFORT

  • @petrkanak6926
    @petrkanak6926 Місяць тому

    Absolutely great tutorial. Thank you so much for this contribution. It really helps me dive into this topic.

  • @shubhamkewat2496
    @shubhamkewat2496 4 місяці тому +1

    such a good content for spring boot, it is must whoever is learning spring boot. thanks a ton

  • @gtxyang
    @gtxyang 3 місяці тому +4

    The best thing in your tutorial is you go through from high level to low level, and explain each component in the diagram, Thank you so much

  • @nunoaparicio4426
    @nunoaparicio4426 3 місяці тому +1

    2 questions:
    1 - API gateway is the entry point for all microservices, so it's dealing with authentication. Should the other microservices also be secured and validate the token against the auth server?
    2 - How to deal with userId's? Should we use keycloaks userId we get from the token and use like a foreign key in other service databases, like usually (eg: user courses/books/whatever)?

  • @eladr_
    @eladr_ 2 місяці тому

    nadi khay ali ta7iyati mn lmghrib 🇲🇦

  • @hadirezaie1131
    @hadirezaie1131 10 днів тому

    One of the best java video I have seen.

  • @shreyojitdas9333
    @shreyojitdas9333 7 місяців тому +3

    The amount of hard work u put in is commendable

  • @gallardofabian
    @gallardofabian 7 місяців тому +2

    Excelent Video, my respect, not only code, with a lot of diagrams, I only add a first-api design to the feign microservices

  • @jy241
    @jy241 3 місяці тому

    this is just the tutorial i was looking for!!! thank you for the great video!

  • @restonspositifs3336
    @restonspositifs3336 7 місяців тому +3

    He did it 😂😂. You're just a boss @Ali. Thank you very much for all 🙏

  • @onursevinc8710
    @onursevinc8710 6 місяців тому +1

    Hello Ali, this is a very nice resource, thank you for your efforts.

  • @JtPark-j6g
    @JtPark-j6g 5 місяців тому

    Thank you for the great course.
    After adding keycloak to the application, the feign clients dont have the authentication access to the other services as tokens are only with the service to which token is passed along with the api. This breaks the order service and the keycloak application has to implemented manually

  • @janakiram8488
    @janakiram8488 5 місяців тому

    Mr @Ali.. I really admire you man... For smart tech teaches... Better than academic... ❤

  • @feriel6929
    @feriel6929 Місяць тому

    I always appreciate your videos . thank you! Could you consider covering how to implement JWT in a microservices architecture in one of your upcoming videos?

  • @mikhailsokolov9677
    @mikhailsokolov9677 5 місяців тому

    just finished following this tutorial and it's been great, I learned so much! If I may suggest an interesting topic for possible future videos, which I think is alittle under-explored in UA-cam tutorials - distributed transactions. You mentioned SAGA pattern at the end of the video, but it would also be cool to look at other solutions like 2 phase commit and transaction outbox

    • @BoualiAli
      @BoualiAli  4 місяці тому +1

      Great suggestion

  • @davidmbaimbai440
    @davidmbaimbai440 7 місяців тому +1

    I have watched 4 of your tutorials now yaah this is another level, thanks very I am learning a lot

    • @BoualiAli
      @BoualiAli  7 місяців тому

      Happy to hear that!

  • @magadiflo-dev
    @magadiflo-dev 6 місяців тому

    Thank you very much, an excellent course with many concepts to assimilate. Thank you for your dedication and time in sharing your knowledge. I tell you that I was able to replicate the entire course and it is working 100% without errors, thank you for all your effort, I really value it a lot.

  • @adanali3652
    @adanali3652 7 місяців тому +3

    I have been waiting for long. Thank you sir

  • @sandeepjavastudio
    @sandeepjavastudio 6 місяців тому

    This is pure gold! Thank you for making such a wonderful content!

  • @Brookskyar
    @Brookskyar 5 місяців тому +1

    Thank you Bouali for the amazing tutorial into spring cloud with many industry best practices implementations! Would like to know if you would also be expanding upon this project by demonstrating deployment on this app? Would love to see dockerizing and orchestration of this app, as well as load balancing configuration using api gateway. Would also like to see if you could explain circuit breaking and e2e testing using this application. Thanks in advance!

    • @Asingh42
      @Asingh42 5 місяців тому

      +1 Also need a basic react front end for the same

  • @atNguyen-iw7sf
    @atNguyen-iw7sf 7 місяців тому +1

    Thoes videos is really helps me a lot in my project in school, thank you ali, all your works is greate

    • @BoualiAli
      @BoualiAli  7 місяців тому

      Hope you enjoy it!

  • @Asingh42
    @Asingh42 6 місяців тому

    Thank You I have watched the first 2 hours of the course and You have explained concepts in a simplified manner. ❤

    • @BoualiAli
      @BoualiAli  4 місяці тому +1

      Glad it was helpful!

  • @yakishuga
    @yakishuga 7 місяців тому +1

    Wowwww Thank you so much!!!!! I have to finish my final Project degree and I made it with microservices....Thank you!!!🎉

    • @BoualiAli
      @BoualiAli  7 місяців тому

      Hope you enjoy it!

  • @ismaeltrocha6319
    @ismaeltrocha6319 7 місяців тому +3

    The best springboot channel

  • @rishabhkumar8042
    @rishabhkumar8042 6 місяців тому

    Thank you for your excellent teaching style! Your videos are incredibly helpful. Could you please create a new course on Spring Security? It would be greatly appreciated!

  • @ajaymalah6584
    @ajaymalah6584 4 місяці тому

    Love it, please create some more playlists for microservices using Kafka inter api communication!

    • @BoualiAli
      @BoualiAli  4 місяці тому +1

      Thank you, I will

  • @hasanibrohimov2818
    @hasanibrohimov2818 3 місяці тому

    Great tutorial.Thank you Bouali Ali! Good work.

  • @asohyannick8518
    @asohyannick8518 7 місяців тому

    Wow, This is awesome content, sir Ali. Thank you very much for sharing your knowledge and understanding with us. I always enjoy your content very much and keepcoding with you

  • @MohamedibinAhmed
    @MohamedibinAhmed 4 місяці тому

    Thank you... I'm a Dotnet developer but i found you the best one explain microservices

  • @subhbirajdar
    @subhbirajdar 7 місяців тому +1

    Content is awesome and appreciate this channel because most of the new concept updated thus channel

  • @theshivrajofficial8444
    @theshivrajofficial8444 7 місяців тому +2

    I watched full video , and it was awesome !!! my suggestion to you that you should create full course on microservices from development to deployment. also just like this video , it should be as per current market requirement, real time scenario's with latest technology stack. you can do you it on youtube or paid platforms as per your convenience.

    • @BoualiAli
      @BoualiAli  7 місяців тому +6

      thank you so much the nice feedback.
      I provide free content, no need to buy courses.
      feel free to contribute and help on youtube if you want to, otherwise, all my content is for free and available in my YT channel.
      Enjoy it

    • @Asingh42
      @Asingh42 5 місяців тому

      @@BoualiAli Thank you so much for this great level course can you cover front-end that consumes this too..

  • @abdou1tabib677
    @abdou1tabib677 5 місяців тому

    Hello Ali, Thanks for this amazing work .
    Could you please make a video about kubernetes !

  • @anveshsrivastava7786
    @anveshsrivastava7786 3 місяці тому

    we need the upgrade to ELK stack and also the user friendly interface using react or angular! great resource to learn from!

  • @jy241
    @jy241 3 місяці тому

    Thanks for the great video! Could you also make video how to manage MSA in docker & k8s? thank you so much!

  • @haisesasaki3372
    @haisesasaki3372 4 місяці тому

    This what i need, real life scenarios! Thank you!

  • @ramojiseemakurthi155
    @ramojiseemakurthi155 4 місяці тому

    Very very informative session. Thanks for providing all these content. Can you also work on how to dockarize microservice project.

  • @habiboulayediallo6804
    @habiboulayediallo6804 7 місяців тому +1

    You deserve more views and followers 🤴🏽

  • @shahriarmiraj4742
    @shahriarmiraj4742 5 місяців тому

    Sir, I have developed my application following your architecture and coding. Now i am.working on docker image development and finally will deploy through kubernates. Please create a video on Docker image development for the above project. Cheers🎉 for your hardwork..

  • @doncorleon734
    @doncorleon734 3 місяці тому

    chokrane barcha barcha mn lmaghrib

  • @billynader0
    @billynader0 7 місяців тому +1

    thank you for your efforts in creating this tutorial. It will be amazing and incredibly helpful

    • @BoualiAli
      @BoualiAli  7 місяців тому

      You're very welcome!

  • @theprimecoder4981
    @theprimecoder4981 5 місяців тому

    I will be binge watching this the entire weekend

  • @koloyolo7629
    @koloyolo7629 3 місяці тому +5

    Hi, I have a question - How would you handle the situation when one service (for example: payment-service) cannot process our request and it is necessary to rollback transaction in other services? Is it necessary to use SAGA pattern for compensation request or maybe you know better way ?

  • @bfcodinghub
    @bfcodinghub 6 місяців тому

    Thanks alot. You are saving so many people out there

  • @ateafbankapur870
    @ateafbankapur870 6 місяців тому

    Thank you for this video. It will help all the people who wanted to learn these things end to end.
    Can you please tell us what all applications we need to install like docker

  • @huseyinsdet6927
    @huseyinsdet6927 6 місяців тому

    This is a great video. Thank you for the efforts. Have you thought about publishing video series rather than one big chunk

  • @Hare_Krishna_Hari_Bolo
    @Hare_Krishna_Hari_Bolo 4 місяці тому

    You are amazing ❤ Thank you so much for your great contribution 🎉 I would like to request to create a complete E-commerce application from dev to deployment using all required tech and also please use jwt this time 🙏

    • @BoualiAli
      @BoualiAli  4 місяці тому +1

      Already done, check the playlist (Book social network)
      also a new one is coming soon

  • @ultimatehi2176
    @ultimatehi2176 7 місяців тому +1

    Thank you so much Mr.Ali. Are you planning to develop the front end for this project using Angular v18 ?

  • @davidmbaimbai440
    @davidmbaimbai440 7 місяців тому +1

    This is excellent, would you mind creating the frontend of it with angular please

  • @BirukTebebe
    @BirukTebebe 4 місяці тому

    great tutorial. keep up the good work

  • @mepunna
    @mepunna Місяць тому

    Awesome tutorial

  • @yerbo312
    @yerbo312 7 місяців тому

    Great video, helped me a lot with building my first microservices! I am so grateful to you!
    Do you know how to ignore logging of health checks in tracing? Because there are a bunch of noise when I query logs. Thank you in advance

  • @AbdelrhmanAdel-y3b
    @AbdelrhmanAdel-y3b 6 місяців тому

    Thank you so much mr.Bouali that is a great playlist and very useful for me

    • @BoualiAli
      @BoualiAli  4 місяці тому +1

      You are very welcome

  • @Tomasm21
    @Tomasm21 5 місяців тому

    Very nice new lessons. Thank you for this.

  • @prasanthsanjeevi2563
    @prasanthsanjeevi2563 7 місяців тому

    Hi Amazing video, tons of thanks..Please implement saga and circuit breaker pattern with promotheus,grafana or elk stack.

  • @utsabdahal5417
    @utsabdahal5417 3 місяці тому

    Hi Bouali Ali,
    I really enjoy your videos and find them super helpful! I have a specific request for a tutorial.
    Could you make a video on how to integrate Keycloak with Spring Boot microservice for authentication (both manual email/password login and social login), but using a custom database for managing users and roles? Specifically, I’d love to see how to:
    Use Keycloak for authentication (including social login like Google or GitHub).
    Store and manage user details, roles, and permissions in my own database instead of using Keycloak’s internal database.
    How to handle JWT token generation and role-based access using this setup.
    It would be great if you could show how to configure this kind of setup and how to secure the application with Spring Security and Keycloak!
    Thanks in advance, and keep up the great content!

  • @giansiccardi6151
    @giansiccardi6151 6 місяців тому

    One question, the front part is not on UA-cam yet? The teacher is the goat

  • @blackx6861
    @blackx6861 7 місяців тому +1

    Thank you so much for this masterpiece

    • @BoualiAli
      @BoualiAli  7 місяців тому

      You're very welcome

  • @kirangajul6782
    @kirangajul6782 5 місяців тому

    One hour in and I loved it

  • @26brains
    @26brains 4 місяці тому

    Amazing course! Thank you!

    • @BoualiAli
      @BoualiAli  4 місяці тому

      You're very welcome!

  • @lowkey_X
    @lowkey_X 6 місяців тому

    7:40 -> 30:27 -> 1:10:25 -> 2:43:09

  • @aytugozkaya9921
    @aytugozkaya9921 4 місяці тому

    Thank you for this amazing this course

  • @efoamegnito3546
    @efoamegnito3546 7 місяців тому

    thank you very much for the video I will still learn a lot of things.
    please what application you use for System Design
    God bless you

  • @ChandlerBing11
    @ChandlerBing11 6 місяців тому

    That's an impressive content of microservices! Great job, Bouali

    • @BoualiAli
      @BoualiAli  4 місяці тому

      Glad you think so!

  • @IlShan-wp4ff
    @IlShan-wp4ff 3 місяці тому

    This is a really amazing lesson, thank you, Ali! I'm just wondering why did you use double a double type to denote a quantity instead of an integer?

    • @BoualiAli
      @BoualiAli  3 місяці тому +2

      you can buy a 1,5 meters of a wall paper, so it should be a double

  • @rajukaranam1389
    @rajukaranam1389 6 місяців тому

    this is a great class, brother.

  • @mharkik
    @mharkik 7 місяців тому +1

    Well done.
    Thanks for all

  • @kasia_dabazant2044
    @kasia_dabazant2044 3 місяці тому

    Awesome! Will this project be extended by frontend and maybe kubernetes? Some course with grpc would also be nice 😁

  • @luckyprabath486
    @luckyprabath486 6 місяців тому

    This is really good. Thank you.💯

  • @ndedpdeepepde288
    @ndedpdeepepde288 7 місяців тому +1

    Thank you, amazing tutorial as always! Please add a feature to pass the oauth2 token from Keycloak to FeignClient, i couldn't make the order request work. I read some articles and they use something called a RequestInterceptor but i didn't understand it and couldn't make it work.

  • @craigwebber2270
    @craigwebber2270 7 місяців тому

    Great video thank you very much can you do some gRPC communication between services aswell ?

  • @wasamr4703
    @wasamr4703 7 місяців тому

    this is gold thank you so much Ali,

  • @CenturionDobrius
    @CenturionDobrius 7 місяців тому +1

    As always, beautiful presentation ❤

    • @BoualiAli
      @BoualiAli  7 місяців тому

      Glad you liked it

  • @aadiraj6126
    @aadiraj6126 7 місяців тому +3

    Hello sir, It took 14-15 hours for me to finish it😅 feeling great. Thanks alot. Sir, customer-service working great but order-service is giving error, even with keycloak auth token. As FeignClient is not able to consume data without authentication. Getting 401 error. TokenRelay concept required?! 😮 And pls elaborate in detail about keycloak client type ticks, i mean standard flow, direct access, implicit flow, service account role, oidc ciba grant, etc. what are they, why, when & how to use. At least give some theories please, it'll be great help.

    • @aichalahnouki7594
      @aichalahnouki7594 Місяць тому

      I got sam problem in order-service did resolve the problem? if yes please tell me how ? they tell me datasource url problem

  • @thavathrath7022
    @thavathrath7022 7 місяців тому +1

    Amazing Video, Thank you.

  • @hiendinh3871
    @hiendinh3871 7 місяців тому

    What a beautiful tutorial!

  • @mikhailsokolov9677
    @mikhailsokolov9677 5 місяців тому +2

    While following this tutorial I've run into 2 issues with configurations:
    1) MongoDB didn't configure cunnection uri properly (all other fields were set correctly, but uri defaulted to mongodb/localhost/test) - band-aid fix: manually created Bean of MongoProperties in my Configuration class
    EDIT: of course I read all the fields from the config file on the config server when creating the MongoProperties object
    2) Hibernate ddl-auto settings did not work - fixed by writing flyway migration on every microservice that uses postgres.
    It is strange that I ran into these 2 issues considering that config files were read properly (otherwise I wouldn't be able to connect to DBs at all)
    3) Also when setting up pg admin and connecting to postgres - make sure to specify service name from docker-compose instead of "localhost"

    • @tolujacob6099
      @tolujacob6099 4 місяці тому +2

      Funny how I also ran into the same issue but solved it anyways. The one I'm currently facing is the issue with bean creation for javaMailSender. Help is really needed and appreciated at this point. @boualiAli

  • @alexandr7722
    @alexandr7722 13 днів тому

    Thats amazing big amount of material for free, so grateful to you