Durablity

Published: (March 29, 2026 at 11:26 AM EDT)
1 min read
Source: Dev.to

Source: Dev.to

Durability

Durability means that once a transaction is successfully committed, its changes are permanently saved in the database. Even if the system crashes, experiences a power failure, or encounters other failures, the transaction remains reliable.

In databases like PostgreSQL, this reliability is achieved through Write‑Ahead Logging (WAL). Before making actual changes, the system first records the transaction in a log file. If a crash occurs before the changes are applied, the logged queries can be replayed to ensure consistency.

Durability in Wallet Systems

Once money is transferred and confirmed, it will always be reflected, eliminating the risk of losing completed transactions and records for the user.

BEGIN;

UPDATE accounts 
SET balance = balance - 100 
WHERE name = 'Alice';

COMMIT;
0 views
Back to Blog

Related posts

Read more »

Idempotency Situation

Ensuring Reliable Money Transfers Using Database Transactions In a digital wallet system similar to PhonePe, Google Pay, or Paytm, users expect their money to...

Alter Queries

In this assignment, I worked on modifying existing tables using ALTER TABLE. This helped me understand how to update constraints without recreating tables. Task...

CA 36 – Isolation (ACID)

Scenario The experiment demonstrates how the Isolation property of ACID works when two sessions try to operate on the same account concurrently. Steps Session...