What strategies do you use to manage database transactions and ensure data consistency in a distributed system?