Choosing a transaction propagation level for calls that span multiple services depends on whether those calls must be atomic together or need to stay isolated from each other, and each choice carries its own risk.
An order-placement flow uses REQUIRED so inventory deduction and order creation commit or roll back together, but logs the audit trail with REQUIRES_NEW so the audit record is preserved even if the order itself later fails and rolls back.
@Service
public class OrderService {
// Order creation and stock deduction succeed or fail together
@Transactional // propagation = REQUIRED (default)
public void placeOrder(Order order) {
orderRepository.save(order);
inventoryService.deduct(order.items()); // joins this transaction
auditService.record("ORDER_PLACED", order.id()); // separate transaction
paymentService.charge(order); // if this throws, order + stock roll back
}
}
@Service
public class AuditService {
// Must be a different bean: self-calls bypass the transactional proxy
@Transactional(propagation = Propagation.REQUIRES_NEW)
public void record(String action, Long orderId) {
auditRepository.save(new AuditEntry(action, orderId)); // kept even on rollback
}
}A concise interview answer is
I'd default to REQUIRED for operations that must succeed or fail together, and reach for REQUIRES_NEW only when something, like audit logging, needs to survive an outer rollback. The tradeoff is that REQUIRED risks longer lock contention under load, while REQUIRES_NEW adds resource overhead and more complex failure handling -- and for calls that cross separate databases entirely, neither works, so I'd use a saga pattern instead.
Last updated: 1 November 2026
Previous question: Describe a time when a misconfigured properties file caused a production issue.
Next question: What are the best practices for designing a custom exception handling framework in Spring Boot?