0x55aa
← Back to Blog

#Databases

8 articles tagged with "databases"

backendarchitecture

🌊 Event Sourcing: Your Database Has Amnesia (Here's the Fix)

Most databases only store the current state — the last write wins and history vanishes. Event Sourcing flips this on its head: store what happened, derive what is. Here's how to apply it without drowning in ceremony.

Jun 28, 2026
6 min read
Read more
databasespostgresql

🔢 OFFSET Pagination is a Lie: Switch to Cursors Before Your Table Eats You Alive

OFFSET-based pagination sounds innocent until your table hits a million rows and your database starts full-scanning just to skip the first 50,000. Here's why cursor-based pagination is the fix your API deserves.

Jun 16, 2026
6 min read
Read more
backendarchitecture

CQRS: When Your Read and Write Models Need a Divorce \U0001F500

CQRS separates the commands that mutate state from the queries that read it — giving you independent scaling, specialized models, and saner codebases. Here's when it's worth the complexity and when it's overkill.

Jun 14, 2026
6 min read
Read more
testingbackend

🏭 Test Data: Stop Writing Fixtures, Start Building Factories

Hardcoded fixtures make your tests brittle and your seed files a nightmare to maintain. Factories generate realistic, varied test data on the fly — here's why your test suite needs to make the switch.

Jun 13, 2026
5 min read
Read more
performancebackend

📊 P99 Is Your Real Boss: Why Average Latency Is Gaslighting You

Your dashboard says 45ms average. Your users say the app feels sluggish. Both are telling the truth — your average is just hiding the tail. Here's how to measure, diagnose, and tame P99 latency before it chases users away.

Jun 11, 2026
7 min read
Read more
databasesperformance

🐌 N+1 Queries: The Silent API Killer Hiding in Your ORM

Your API feels fine until it doesn't. The N+1 query problem is the most common database performance bug in ORM-heavy backends — and it hides in plain sight until your database is on fire.

Jun 02, 2026
7 min read
Read more
databasespostgresql

🗑️ Soft Deletes vs Hard Deletes vs Audit Tables: Pick Your Strategy Before Production Picks It for You

Deleting a database row sounds trivial — until your boss asks why the customer record vanished and nobody knows. Here is how to pick the right deletion strategy before a production incident forces your hand.

May 19, 2026
6 min read
Read more
backendapi-design

Cursor-Based Pagination: Why OFFSET Is Slowly Killing Your API 🐌

OFFSET pagination feels intuitive until your database is scanning 500,000 rows to serve page 100. Cursor-based pagination fixes the performance cliff, ghost records, and duplicate entries in one shot.

May 18, 2026
6 min read
Read more