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.
Hi basant, please start one new series on Java all design patterns(crestional, structural and behavioral). 🙏
Nice Video on Event Sourcing. God Bless you Basant! 🙂👍🙏
JT is the greatest! Keep going buddy. Thanks
Good Explanation scenario sir. Please do videos for few more micro service design patterns
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?
Yes if business need we also follow shared db concept
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.
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.
@@Javatechie Thanks for the clarification Basant. Will join soon.
@@Javatechie One last thing, what would be the validity of the course? Do we get lifetime access to the videos?
@@vatsanubhav0 yes it's lifetime access
Hi sir
What is the difference between this concept and having audit table that tracks the record state. Can you please explain
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.
@@Derrick-f8m we achieve the same even in db also right by providing the read access, please correct if i am wrong.
@@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.
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.
Sorry I found that you’ve already covered Flyway and entity auditing in your videos-great job!
Awesome, thanks for sharing 😊 🎉
Great tutorial..
Can you please bring one tutorial with end end spring transaction implementation.
Thanks.
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 ) .
thank you
thanks bro, can you make a video on saga pattern using kafka and redis for storing data?
Saga already available please check the design pattern Playlist
Hello, i have an 6.5 year exp in java. Got an offers from HCL and Capgemini which is better?
Both with same package
Please drop an email to javatechie4u@gmail.com let's not this things in public forum
what if you have more than 1 partition, how do you maintain order sequence? and also more than 1 app container.
Not getting you exactly,
@@Javatechie kafka partition and in a kubernetes environment with more than 1 pod
Can you do a video explaining how to implement a common library?
Can you show how we can reply the events incase there is an error?
To replay the events you need to implement CQRS
Fancy content, we need a complete video about istio please
Hi bro please do saga pattern.saga pattern already available in your playlist is flux concept.
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 😁
@@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
Hello sir I'm from village and i want to learn devops so can you provide devops course in 500😢
Please connect on javatechie4u@gmail.com
🙏🏻🙂💯
Please provide complete code sir
Please check in video description
having issue failed to listen,failed to deserialize,Caused by: java.lang.ClassNotFoundException: com.kafka.event_sourcing.entity.OrderEvent, any solution
Please validate yml configuration