FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Design a Reliable Wallet Transfer System with ACID Guarantees pt - 4 (Durability)
How-ToMachine Learning

Design a Reliable Wallet Transfer System with ACID Guarantees pt - 4 (Durability)

via Dev.toSaranya R2h ago

Durability – ensures that once a transaction is successfully committed, its changes are permanently stored in the database, even in case of system failures. the accounts table: CREATE TABLE accounts ( id SERIAL PRIMARY KEY, name TEXT NOT NULL, balance INT NOT NULL CHECK (balance >= 0), last_updated TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); the accounts table is created successfully Then the dummy data is added to the table INSERT INTO accounts (name, balance) VALUES ('Alice', 1000), ('Bob', 500); Now the initial balance in both accounts are Alice = 1000 & Bob = 500 To test if durability works properly, perform a transaction and commit it BEGIN; UPDATE accounts SET balance = balance - 200 WHERE name = 'Alice'; COMMIT; After COMMIT: Alice’s balance becomes 800 the change is permanently saved To verify durability, even if the system crashes immediately after commit: When the database restarts, Alice’s balance should be 800 the committed transaction should not be lost If the committed data pe

Continue reading on Dev.to

Opens in a new tab

Read Full Article
0 views

Related Articles

How-To

10 Things Every Software Developer Should Know (But Most Ignore)

Medium Programming • 48m ago

The Deceptively Tricky Art of Designing a Steering Wheel
How-To

The Deceptively Tricky Art of Designing a Steering Wheel

Wired • 1h ago

7 Wireshark Filters That Instantly Make You Look Like a Network Expert
How-To

7 Wireshark Filters That Instantly Make You Look Like a Network Expert

Medium Programming • 2h ago

Week 6 — No New Problems. Just Me and Everything I Already Learned.
How-To

Week 6 — No New Problems. Just Me and Everything I Already Learned.

Medium Programming • 7h ago

What OpenClaw Gets Wrong Out of the Box (And How to Fix It)
How-To

What OpenClaw Gets Wrong Out of the Box (And How to Fix It)

Medium Programming • 8h ago

Discover More Articles