there are three actions in a Service method
doSomething {
Database write operations
redis write
call an api
}
how do I achieve the transactionality or ultimate consistency of this method?
if there are only redis and database operations
@ Transactional
doSomething {
redis
}
redis throws an exception that causes database rollback to implement transactional
is there a problem?