r/SpringBoot • u/iamwisespirit • Jan 09 '26
Question @Transactional method
What happen when I run executorsrrvice inside @Transactional method what would you offer like this scenario
2
Upvotes
r/SpringBoot • u/iamwisespirit • Jan 09 '26
What happen when I run executorsrrvice inside @Transactional method what would you offer like this scenario
View all comments
Show parent comment
1
u/d-k-Brazz Jan 10 '26
Just so you know
In Spring you should avoid any kind of manual asynchronous execution, you should use proper tools for this - queues, events etc.
Classic (non-reactive) Spring is designed for synchronous execution, while providing you toolkit for properly building asynchronous systems