Тёмный

Keep your Data CORRECT: How to use Transactions in Spring Boot 

Devtiro
Подписаться 16 тыс.
Просмотров 13 тыс.
50% 1

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

 

21 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 26   
@emmanuelU17
@emmanuelU17 Год назад
Top video. Didn’t understand the annotation until this!
@devolajide
@devolajide Год назад
Same here. I use it but I don't understand it and I have been asked in interview before.
@yahiaazil9980
@yahiaazil9980 Месяц назад
you are the best, i wish you'd have more subs and continue doing the thing you love
@grumpydev3140
@grumpydev3140 Месяц назад
I love the fact that you use actual UML subscribed.
@tarikmujcic2966
@tarikmujcic2966 Месяц назад
Very nice explanation.
@rajapattai
@rajapattai Год назад
better use case and good delivery. thank you for this atomic featured videos. it will change the way we knew about what we already knew. it's great please put this video in to a atomic features playlist.
@asterixcode
@asterixcode Год назад
Thanks for bringing great and simple examples to things sometimes kinda "obscure" like @Transactions!
@jitendrapatil3276
@jitendrapatil3276 2 месяца назад
Nice and detailed explanation. Just subscribed.
@ZainAli-go3hl
@ZainAli-go3hl 4 месяца назад
learn a lot thanks for the explanation. I have subscribed and hit the like button
@bmamatkdyr
@bmamatkdyr Год назад
That's very helpful, I like your videos 🔥
@marinosag8808
@marinosag8808 6 месяцев назад
great job. keep the good work !
@ayeshaasim1530
@ayeshaasim1530 7 месяцев назад
Great Explanation!!
@ezhilarasikrishnan5408
@ezhilarasikrishnan5408 6 месяцев назад
great explanation ❤👍👍
@Vinicius-jn1pt
@Vinicius-jn1pt 9 месяцев назад
Thanks man. Pretty nice content!
@marcelinoparado
@marcelinoparado 5 месяцев назад
helpful content, thanks
@volodymyrkulesha7542
@volodymyrkulesha7542 9 месяцев назад
Great explanation, as in your other videos.
@divinity5250
@divinity5250 4 месяца назад
Your new subscriber ❤🎉
@nobodyishere8935
@nobodyishere8935 Год назад
may be you can add introduction to the Saga pattern for distributed transactions and how to use it in Spring Boot app ?
@alexbrun6863
@alexbrun6863 Год назад
Do i need to add Transaction Manger @Bean in the @Configuration class or is it autowired for us with Mysql / Postgres dependency or something?
@devtiro
@devtiro Год назад
Thank you so much 🙏
@ajs9721
@ajs9721 9 месяцев назад
PlatfformTransactionManager bean is auto configured. So it will work out of the box, But like everything you can override if required.
@mrbmro3991
@mrbmro3991 8 месяцев назад
All well and good using this in your service layer, but how will this work with clean architecture? The service layer would be replaced by the Domain layer and we all know the domain layer has zero dependencies on any other layer such as the outer spring layers etc. How would implement transactional behaviour using clean architecture and even things like cascade?
@mrbmro3991
@mrbmro3991 8 месяцев назад
Maybe a solution is to have the controller call a dumb Service such as PersonService which contains the PersonUseCase. When the client calls PersonService.save() the save() method within the PersonService will have the @Transaction annotation and then the next line of code within PersonService.save() will be personUseCase.execute(). This way we simply delegate to the usecase where the business logic lives and at the same time it is transactional?
@floriankubiak7313
@floriankubiak7313 10 месяцев назад
Does @validate also make the action atomic? Does it save non-validated requests?
@ajs9721
@ajs9721 9 месяцев назад
@Valid and @Validate are JPA annotations, so that is a different use case, and will throw exception at the controller during binding, won't even go to Service layer.
@RskSmiles
@RskSmiles 10 дней назад
lol. Your initial example is totally differently to the one you implement. It is a totally different problem to the code you implement. so how do you manage concurrent buyers after one book? Sorry what you describe at the start is not a transaction. The book being sold when the buy button is pressed is the transaction.
Далее
Transactional Gotchas in Spring Boot Tests
25:54
Просмотров 3 тыс.
What is a Database Transaction? Be ACID compliant!
9:46
Шок-контент! 😱
00:50
Просмотров 1,9 млн
Наши дети захватили кухню!
00:59
Просмотров 157 тыс.
Транзакции - Spring Framework в деталях
1:20:21
Spring & Spring Data JPA: Managing Transactions
10:34
Шок-контент! 😱
00:50
Просмотров 1,9 млн