Тёмный

Microservices Architecture Patterns | SAGA Design Pattern| Project Creation| Distributed Transaction 

Java Tech Solutions
Подписаться 4,4 тыс.
Просмотров 26 тыс.
50% 1

Опубликовано:

 

30 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 74   
@raghavh7171
@raghavh7171 Год назад
Clearly explained the SAGA pattern with implementation. Thanks 🙏
@JavaTechSolutions
@JavaTechSolutions Год назад
Thanks
@nihalgajbhiye8414
@nihalgajbhiye8414 7 месяцев назад
Thank you for explaining the SAGA choreography pattern in such a lucid way👍
@JavaTechSolutions
@JavaTechSolutions 7 месяцев назад
Happy to help!
@sudheerkumar-tp1mg
@sudheerkumar-tp1mg 11 месяцев назад
The best video on saga pattern also please add the failure scenarios like one of the service is down and other services keep on pushing the datat to kafka, please enhance the video which will be great help for all of us.
@JavaTechSolutions
@JavaTechSolutions 11 месяцев назад
Thank you.. I will put that one
@sudheerkumar-tp1mg
@sudheerkumar-tp1mg 11 месяцев назад
Also one doubt sir, like if Kafka cluster is down during processing of orders what will happen, please suggest
@PradeepKumar-db7pe
@PradeepKumar-db7pe 8 месяцев назад
@@JavaTechSolutions Yes. If say payment-ms is down and order-ms send orderEvent over topic new-orders. Once the payment-ms is up, I believe it will consume the orderEvent?
@JavaTechSolutions
@JavaTechSolutions 8 месяцев назад
@@PradeepKumar-db7pe correct
@karamjitsinghsehdev3451
@karamjitsinghsehdev3451 Год назад
Excellent explanation and example. Please keep making such videos.
@JavaTechSolutions
@JavaTechSolutions Год назад
Thanks
@kanikagoyal9291
@kanikagoyal9291 9 месяцев назад
Nice explanation about chorography design pattern. Thanks for such great content 👍
@JavaTechSolutions
@JavaTechSolutions 9 месяцев назад
My pleasure 😊
@arundhwajiiith
@arundhwajiiith Год назад
Nice explanation and example for Saga pattern. Thanks.
@JavaTechSolutions
@JavaTechSolutions Год назад
Thanks
@sudheerkumar-tp1mg
@sudheerkumar-tp1mg Год назад
Very nice explanation best example and easy explanation
@JavaTechSolutions
@JavaTechSolutions Год назад
Thanks
@dipalitusharvlogs7252
@dipalitusharvlogs7252 Год назад
To the point explanation... Thank you for this tutorial... Cheers to your efforts..
@JavaTechSolutions
@JavaTechSolutions Год назад
Thanks
@MurugeshG-mm3cm
@MurugeshG-mm3cm 5 месяцев назад
Clear content, Thanks for sharing
@JavaTechSolutions
@JavaTechSolutions 5 месяцев назад
Thank you
@officemac321
@officemac321 7 месяцев назад
Question: here upon success we are always publishing a new event to the next step, what if we have to send data back on Success ? In this example Deliver order is the last step, hence we are just saving data on success, how to return some data to stock on success ? do we need to have a success topic and put an even there and consume it in Stock service ?? the way we are consuming reverse stock on failure? or is there a better standard way?
@JavaTechSolutions
@JavaTechSolutions 7 месяцев назад
Then we need to send data in multiple queue based on the requirement.
@abhishekpandey7806
@abhishekpandey7806 3 месяца назад
Very good explanation, just one question - In Reverse Order, how Object mapper can convert String into OrderEvent?
@JavaTechSolutions
@JavaTechSolutions 3 месяца назад
Actually string contains the complete Json response in string. Object mapper is doing the conversion from Json string to DTO
@devireddyfavreddy4785
@devireddyfavreddy4785 Год назад
Very good presentation
@JavaTechSolutions
@JavaTechSolutions Год назад
Thank you
@manohark2511
@manohark2511 Год назад
Great video.Helped a lot.Thanks!
@JavaTechSolutions
@JavaTechSolutions Год назад
Thanks
@manohark2511
@manohark2511 Год назад
​@@JavaTechSolutionsWould be greta help if the orchestration implementation also given to us
@Vithal_Nivargi
@Vithal_Nivargi 11 месяцев назад
Thanks nicely explained
@JavaTechSolutions
@JavaTechSolutions 11 месяцев назад
Thank you
@sagarshekhar6296
@sagarshekhar6296 5 месяцев назад
Is it necessay to take two different kafkaTemplate objects? Can't we use the same kafkaTemplate object and create different topics and put messages in those?
@JavaTechSolutions
@JavaTechSolutions 5 месяцев назад
Based on the topics we can push and pull data from that topics and kafka template is used to push data into kafka
@jj_pog_champ
@jj_pog_champ 10 месяцев назад
🎆🎆Happy New Year Sir 🎆🎆, thank you for your help. As I have learned from comments that this is choreography pattern, so to relate that order done then next step payment and in this way states are being changed. I am still skeptical about something that in this case even a rabbitMQ would do the job, then why consider kafka.
@JavaTechSolutions
@JavaTechSolutions 9 месяцев назад
Happy New Year .. Rabit MQ also do the same thing but Kafka is more reliable and perform better.
@gamechanger7061
@gamechanger7061 9 месяцев назад
Thank you so much.
@JavaTechSolutions
@JavaTechSolutions 9 месяцев назад
You're welcome!
@prabhuelangovan8566
@prabhuelangovan8566 7 месяцев назад
What happens when the data is stored in Db and during the pbulishing of event to message broker if it fails??
@JavaTechSolutions
@JavaTechSolutions 7 месяцев назад
Then it will treat it as either failed or invalid transaction. If any amount or invoice generated those will be rollback after certain time
@AshishAshish-fp8po
@AshishAshish-fp8po Год назад
Sir, Which design pattern you have used here - orchestration OR choreography ?
@JavaTechSolutions
@JavaTechSolutions Год назад
Choreography pattern
@abhilashpatel6852
@abhilashpatel6852 11 месяцев назад
@@JavaTechSolutions what I observed is that even though orchestration is a better decoupled approach, almost no one use it in real life. any reason? or simply the application does not grow complex enough to migrate to orchestration pattern? Please reply sir.
@JavaTechSolutions
@JavaTechSolutions 11 месяцев назад
@@abhilashpatel6852 it's depends based on the requirements or situation.
@besooab8810
@besooab8810 Год назад
Thanks alot!! one more question how to apply cqrs pattern on this ?
@JavaTechSolutions
@JavaTechSolutions Год назад
I have already uploaded tutorial regarding CQRS design pattern
@besooab8810
@besooab8810 Год назад
@@JavaTechSolutions I’m not sure if it with Microservices , cuz, most of the RU-vid videos explained the CQRS General info . I’m looking for deep idea and implementation as you have done in this video . Plz share the link thanks!!!! 🙏
@JavaTechSolutions
@JavaTechSolutions Год назад
Please refer this one: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE--jNSmgygP5A.html
@start1learn-n171
@start1learn-n171 7 месяцев назад
Tq😊
@JavaTechSolutions
@JavaTechSolutions 7 месяцев назад
Welcome
@kakshaye2997
@kakshaye2997 11 месяцев назад
What if network failure happened and your microservice could not put message to roll back your transaction?
@JavaTechSolutions
@JavaTechSolutions 10 месяцев назад
We need to maintain retry mechanism for that... As it was a written for demo purpose so I have not focused on that part
@user-rp9iis1en6h
@user-rp9iis1en6h Год назад
When to use @Service or when to use @Component annotation? Is there any clear guideline?
@JavaTechSolutions
@JavaTechSolutions Год назад
@Component is a generic stereotype for any Spring-managed component. @Service annotates classes at the service layer.
@user-rp9iis1en6h
@user-rp9iis1en6h Год назад
@@JavaTechSolutions Sorry I could not understand. Could you please tell us specifically when should we use Component?
@JavaTechSolutions
@JavaTechSolutions Год назад
Component is the very generic annotation. It can be used anywhere like service layer or dao layer. But spring provide specific annotation for service and repository level. So component can be used in dao layer as we are having service annotation for service layer
@chayanguhathakurata5140
@chayanguhathakurata5140 Год назад
or'K'estration
@JavaTechSolutions
@JavaTechSolutions Год назад
Ok
@SiiitiiFreelancing-jl3ty
@SiiitiiFreelancing-jl3ty 7 месяцев назад
you should not create simple classes from scratch. just explain the code written by you. focus on important points. Till 1.02.00 you are coding just the CRUD part.
@JavaTechSolutions
@JavaTechSolutions 7 месяцев назад
May be it's easy for you to understand but other may be not..
@JavaTechSolutions
@JavaTechSolutions 7 месяцев назад
Thank you for your suggestion
@SiiitiiFreelancing-jl3ty
@SiiitiiFreelancing-jl3ty 7 месяцев назад
@@JavaTechSolutions can you explain where in your video you have explained distributed transaction? how will you handle transactions that were not successful? What is there in this video that you are saying its easy to understand?
@JavaTechSolutions
@JavaTechSolutions 7 месяцев назад
@@SiiitiiFreelancing-jl3ty Actually this is just for explaining the concept. Not possible to cover all the point. Still I am trying to understand what you need basically? Please let me know in detail so that I will create another tutorial for that
@SiiitiiFreelancing-jl3ty
@SiiitiiFreelancing-jl3ty 7 месяцев назад
@@JavaTechSolutions I was looking for the specific code that takes care of rolling back data in other microservice when one failed or it retried say 5 times and then it was success or failed. This is 2PC or 3PC. This video is a simple one without transaction management
@magadiflo-dev
@magadiflo-dev 10 месяцев назад
Hi, I have a question, I see that in the @KafkaListener() annotation the groupId attribute is repeated for some topics, for example: In the microservice payment-ms you have @KafkaListener(topics = "new-orders", groupId = "orders-group") and in the microservice order-ms you have @KafkaListener(topics = "reversed-orders", groupId = "orders-group"), i.e. both topics, both "new-orders" and "reversed-orders" point to the same groupId="orders-group". In that sense, why the groupId="orders-group" is repeated in both topics? shouldn't the groupId be unique for each topic?.... I would be very grateful if you could help me to understand this question. Note: Excellent tutorial, I enjoyed watching the whole video, best regards! 😊
@JavaTechSolutions
@JavaTechSolutions 9 месяцев назад
Thank you for asking such nice questions. The question you asked is related to kafka . Like how kafka is working. Can you please go through kafka related tutorial. I hope you can clear your most of the doubts from that tutorial. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-RYUlF-8IYsI.html ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-F3f9kekI4Q4.html
@magadiflo-dev
@magadiflo-dev 9 месяцев назад
@@JavaTechSolutions Thank you for responding, I will watch the video you provided, I hope to clear my doubt with that resource. thanks!
Далее
Microservices with Databases can be challenging...
20:52
Microservices using SpringBoot | Full Example
1:21:39
Microservices using SpringBoot 3.0 | Full Example [NEW]
1:25:38