Event Sourcing in Microservices | Real-time Order Management Example With Spring Boot & Kafka

Поделиться
HTML-код
  • Опубликовано: 13 окт 2024
  • #JavaTechie #Microservice #SpringBoot #DesignPattern
    👉 In this tutorial, we will learn how to manage the state of an object in a microservices architecture using the Event Sourcing design pattern, by exploring a real-time order management system
    What You Will Learn:
    👉 What is Event Sourcing Pattern?
    👉 Why & When we need this design pattern?
    👉 Realtime Problem statement ?
    👉 Hands-on example using (Spring Boot + Kafka + MongoDB )
    🧨 Hurry-up & Register today itself!🧨
    Devops for Developers course (Live class ) 🔥🔥:
    javatechie.ong...
    COUPON CODE : NEW24
    Spring boot microservice Premium course lunched with 70% off 🚀 🚀
    COURSE LINK : Spring boot microservice course link :
    javatechie.ong...
    PROMO CODE : SPRING50
    GitHub:
    github.com/Jav...
    Blogs:
    / javatechie4u
    Facebook:
    / javatechie
    Join this channel to get access to perks:
    www.youtube.co...
    🔔 Guys, if you like this video, please do subscribe now and press the bell icon to not miss any update from Java Techie.
    Disclaimer/Policy:
    📄 Note: All uploaded content in this channel is mine and it's not copied from any community, you are free to use source code from the above-mentioned GitHub account.

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

  • @RaviRanjan-f6r
    @RaviRanjan-f6r 7 дней назад +1

    Hi basant, please start one new series on Java all design patterns(crestional, structural and behavioral). 🙏

  • @gopisambasivarao5282
    @gopisambasivarao5282 29 дней назад +1

    Nice Video on Event Sourcing. God Bless you Basant! 🙂👍🙏

  • @grrlgd3835
    @grrlgd3835 29 дней назад +1

    JT is the greatest! Keep going buddy. Thanks

  • @gopishettymahindra2713
    @gopishettymahindra2713 26 дней назад +1

    Good Explanation scenario sir. Please do videos for few more micro service design patterns

  • @sujith6323
    @sujith6323 29 дней назад +1

    Thanks for this great video.
    Will MongoDB be a shared database for all the different service instances in this case? And is that acceptable considering the principle of having a separate database per service in microservices architecture?

    • @Javatechie
      @Javatechie  29 дней назад

      Yes if business need we also follow shared db concept

  • @vatsanubhav0
    @vatsanubhav0 23 дня назад +1

    Hi Basant,
    If someone wants to enroll in your course available at your site, do we get realtime live classes or the recording sessions ?
    I want to enroll in Microservices course.

    • @Javatechie
      @Javatechie  23 дня назад +1

      Hello! Thank you for showing interest. To clarify, the sessions are recordings of live classes, not live sessions themselves. However, you'll still have the opportunity to ask questions and clear any doubts through our Discord channel.

    • @vatsanubhav0
      @vatsanubhav0 23 дня назад

      @@Javatechie Thanks for the clarification Basant. Will join soon.

    • @vatsanubhav0
      @vatsanubhav0 23 дня назад +1

      @@Javatechie One last thing, what would be the validity of the course? Do we get lifetime access to the videos?

    • @Javatechie
      @Javatechie  23 дня назад +1

      @@vatsanubhav0 yes it's lifetime access

  • @TejaSairavi
    @TejaSairavi 26 дней назад +2

    Hi sir
    What is the difference between this concept and having audit table that tracks the record state. Can you please explain

    • @Derrick-f8m
      @Derrick-f8m 19 дней назад

      Event sourcing can be used for auditing. You will store each event in an event store. You cannot delete any events from this store because it will be used for auditing.

    • @TejaSairavi
      @TejaSairavi 16 дней назад

      @@Derrick-f8m we achieve the same even in db also right by providing the read access, please correct if i am wrong.

    • @Derrick-f8m
      @Derrick-f8m 16 дней назад

      @@TejaSairavi you will need to use CQRS and Event sourcing. You have 2 mongoDB datasources. Datasource1 will be used exclusively for reads. Datasource2 will be used for writes (commands). Datasource2 will be your eventstore where all of the commands/events will be saved. Datasource1 will be where u save the current state of the data model/entity.

  • @VikashSingh-gq9dd
    @VikashSingh-gq9dd 23 дня назад

    Hi @Basant, thanks for your videos! I noticed that you cover almost all the topics related to Spring Boot. Could you please create videos on Flyway/Liquibase migration and entity/domain auditing (perhaps with Kafka Connect and Change Data Capture (CDC)), which are commonly used in real-world projects.

    • @VikashSingh-gq9dd
      @VikashSingh-gq9dd 22 дня назад

      Sorry I found that you’ve already covered Flyway and entity auditing in your videos-great job!

  • @sergiogb
    @sergiogb 29 дней назад +1

    Awesome, thanks for sharing 😊 🎉

  • @nikitapujahari1624
    @nikitapujahari1624 27 дней назад

    Great tutorial..
    Can you please bring one tutorial with end end spring transaction implementation.
    Thanks.

  • @siddhantthorat3269
    @siddhantthorat3269 23 дня назад

    Basant I want to buy a laptop for doing all the java related coding , such that it will run smoothly with eclipse, DB, Vs code, intellIj, angular, kafka and other stuffs that you do in your videos, which laptop to purchase under budget (under 50k ) .

  • @mohammadtoficmohammad3594
    @mohammadtoficmohammad3594 19 дней назад +1

    thank you

  • @nguyenminhquan8352
    @nguyenminhquan8352 29 дней назад +2

    thanks bro, can you make a video on saga pattern using kafka and redis for storing data?

    • @Javatechie
      @Javatechie  29 дней назад

      Saga already available please check the design pattern Playlist

  • @bhargavb115
    @bhargavb115 24 дня назад +1

    Hello, i have an 6.5 year exp in java. Got an offers from HCL and Capgemini which is better?
    Both with same package

    • @Javatechie
      @Javatechie  24 дня назад

      Please drop an email to javatechie4u@gmail.com let's not this things in public forum

  • @ZtowhyA
    @ZtowhyA 26 дней назад +2

    what if you have more than 1 partition, how do you maintain order sequence? and also more than 1 app container.

    • @Javatechie
      @Javatechie  26 дней назад

      Not getting you exactly,

    • @ZtowhyA
      @ZtowhyA 25 дней назад

      @@Javatechie kafka partition and in a kubernetes environment with more than 1 pod

  • @weitanglau162
    @weitanglau162 25 дней назад

    Can you do a video explaining how to implement a common library?

  • @susobhandas999
    @susobhandas999 29 дней назад +4

    Can you show how we can reply the events incase there is an error?

    • @Derrick-f8m
      @Derrick-f8m 19 дней назад

      To replay the events you need to implement CQRS

  • @ramadanlotfe829
    @ramadanlotfe829 28 дней назад +2

    Fancy content, we need a complete video about istio please

  • @bala7965
    @bala7965 29 дней назад +1

    Hi bro please do saga pattern.saga pattern already available in your playlist is flux concept.

    • @Javatechie
      @Javatechie  29 дней назад +1

      Not getting you. Do you want me to remake it with traditional approach?
      I remember your kafka connect requirements I am planning for it comming weekend 😁

    • @bala7965
      @bala7965 28 дней назад +2

      @@Javatechie ​ yes bro already saga video in your playlsit is spring webflux and kakfa stream.please remake in traditional way using kafka an sprinboot .one more guy in the same comment section also expect it.Thanks bro consider my request

  • @SumitKumar-ny1yl
    @SumitKumar-ny1yl 21 день назад +1

    Hello sir I'm from village and i want to learn devops so can you provide devops course in 500😢

    • @Javatechie
      @Javatechie  20 дней назад

      Please connect on javatechie4u@gmail.com

  • @rishiraj2548
    @rishiraj2548 29 дней назад +2

    🙏🏻🙂💯

  • @vinodaddanki3121
    @vinodaddanki3121 29 дней назад +1

    Please provide complete code sir

    • @Javatechie
      @Javatechie  29 дней назад

      Please check in video description

  • @suman8528
    @suman8528 28 дней назад

    having issue failed to listen,failed to deserialize,Caused by: java.lang.ClassNotFoundException: com.kafka.event_sourcing.entity.OrderEvent, any solution

    • @Javatechie
      @Javatechie  28 дней назад

      Please validate yml configuration