0x55aa
โ† Back to Blog

#Architecture

14 articles tagged with "architecture"

backendmessaging

๐Ÿ“ค The Outbox Pattern: Two Writes, One Lie

Your database commit succeeded. Your Kafka publish failed. Now what? The transactional outbox pattern fixes the dual-write problem that every 'just publish an event after saving' tutorial conveniently skips.

Aug 19, 2026
5 min read
Read more
databasesbackend

๐Ÿชฆ Soft Deletes vs Hard Deletes vs Audit Tables: The Database Never Forgets (Unless You Told It To)

DELETE FROM users WHERE id = 42 feels satisfying right up until legal, support, and future-you all ask where that row went. A field guide to soft deletes, hard deletes, and the audit tables that actually save you.

Aug 18, 2026
5 min read
Read more
architecturebackend

๐Ÿง… Hexagonal Architecture for Skeptics: Ports, Adapters, and the Onion You Didn't Ask For

Hexagonal architecture sounds like a whiteboard fantasy until the day your team swaps Postgres for DynamoDB in an afternoon. A skeptic's guide to ports, adapters, and why the hexagon isn't the point.

Aug 16, 2026
5 min read
Read more
architecturemulti-tenancy

๐Ÿข Multi-Tenancy Strategies: One App, Many Masters (Without Losing Your Mind)

Shared schema, schema-per-tenant, or database-per-tenant? A practical tour of multi-tenancy strategies, the tradeoffs nobody puts on the slide, and the row-level security trick that saves you from your own ORM.

Aug 09, 2026
5 min read
Read more
architecturemicroservices

๐Ÿงต Sagas: The Distributed Transaction That Isn't a Transaction

You can't BEGIN/COMMIT across five microservices. The saga pattern is how you fake it anyway โ€” with compensations instead of rollbacks and a lot of humility about what \"consistent\" actually means.

Aug 02, 2026
5 min read
Read more
backendmessaging

๐Ÿ“ฌ The Outbox Pattern: How to Stop Lying to Your Message Broker

You write to the database, then publish an event. What happens when the process dies between those two lines? The outbox pattern is the boring, reliable answer to a problem every event-driven system eventually hits.

Jul 22, 2026
6 min read
Read more
architecturemicroservices

๐Ÿงต The Saga Pattern: Distributed Transactions Without the Two-Phase Commit Hangover

Your monolith had ROLLBACK. Your microservices don't. The saga pattern is how you fake a distributed transaction using nothing but events, compensating actions, and the quiet acceptance that everything is eventually consistent.

Jul 12, 2026
5 min read
Read more
testingmicroservices

๐Ÿ”บ The Test Pyramid Lied to You (Kind Of): Rethinking Test Shape for Microservices

The classic test pyramid assumes one codebase, one deploy, one team. Split that into fifteen services and the shape quietly stops making sense. Here's what actually works when 'integration' means 'a network call to someone else's team.'

Jul 11, 2026
5 min read
Read more
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
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
nodejsexpress

๐Ÿ“ฌ Node.js Job Queues: Stop Making Your API Do Everything Right Now

Your API endpoint shouldn't be sending emails, resizing images, AND returning a response in 200ms. Meet job queues โ€” the background workers that do the slow stuff so your API can stay fast.

May 07, 2026
6 min read
Read more
nodejsexpress

๐Ÿ“ฆ Node.js API Versioning: Because Breaking Your Users Is Not a Feature

You shipped a \"small\" API change and now 3 mobile apps are on fire. Sound familiar? Let's talk API versioning in Express โ€” how to evolve your backend without nuking your users.

Apr 12, 2026
5 min read
Read more
nodejsbackend

๐Ÿ“ก Node.js Event Emitters: The Built-In Pub/Sub You've Been Ignoring

You've been installing pub/sub libraries while Node.js ships one in the box. Let's fix that โ€” EventEmitter is more powerful than you think.

Apr 08, 2026
5 min read
Read more
nodejsbackend

๐Ÿญ Node.js Job Queues: Stop Making Your Users Stare at a Spinner

Sending emails, processing images, generating PDFs โ€” your API shouldn't make users wait for slow work. Job queues are the secret weapon that keeps your responses snappy while the heavy lifting happens in the background.

Apr 04, 2026
6 min read
Read more