Transactions, Spring.
external API call savePaymentInfo(request); // DB call createSubscription(request) // DB call sendInvoiceEmail() // internal API call } The @Transactional aspect creates a new EntityManager and starts a new transaction by borrowing one Connection from the connection pool (HikariCP is the default in