Transactions, Spring.
savePaymentInfo(request); // DB call createSubscription(request) // DB call return request; }); sendInvoiceEmail() // internal API call } In the above snippet, we did not use @Transactional but we have used TransactionTemplate twice and wrapped the DB operations inside. The following steps are