Search

Lessons (17)

  • ACID, Transactions & Locks

    Make multi-step changes correct with atomic transactions, isolation choices, constraints and short-lived locks. The bank-transfer …

  • Design a Reliable Notification System

    Deliver email, SMS, push and in-app messages with preferences, isolation, idempotency, provider failover and auditable states. ![Notification …

  • Database Indexing & Transactions

    … Learn how B-tree indexes work, how to read a query plan, and how isolation levels prevent concurrency …

  • Microkernel (Plugin) Architecture

    … catch plug-in errors, timeouts One bad plug-in shouldn't crash the host Isolate security where plug …

  • Monolith vs Microservices

    … team contention, scaling differences, isolation needs. - Avoid the distributed monolith: no shared databases, no lock-step deploys.

  • Design an E-Commerce Checkout

    … Handle unknown provider outcomes through reconciliation; expire reservations; isolate checkout capacity from bulk exports and marketing traffic.

  • Batch vs Stream and Data Modeling

    … Batch jobs need isolation so reporting cannot starve checkout. A denormalized projection needs an owner and a measurable …

  • Design a Logging and Monitoring Platform

    … Preserve tenant isolation, retention controls and an audit trail. Measure ingestion lag, dropped samples, query latency, cardinality and …

  • Flash Sale: 10 Million Buyers, No Oversell

    … Give every purchase an idempotency key, reconcile reservations/orders/payments, and isolate sale traffic from browsing and recommendations.

  • Transactions, Indexes & Concurrency

    … Atomicity is all-or-nothing; consistency preserves constraints; isolation defines concurrent visibility; durability survives failure. Never wait for …

  • Storage Engines & Database Operations

    … Keep independent backups, define retention, encrypt them, and test restoring a realistic dataset into an isolated environment. Know …

  • Replication, Partitioning & Sharding

    … tenant id is often safer than an arbitrary hash when tenancy is a hard isolation boundary. Avoid hot …

  • Resilience Patterns

    … const recs = await breaker.fire(userId); 4. Bulkhead: isolate resources Ships are divided into watertight compartments ( bulkheads ). A …

  • Clean Architecture

    … fast tests, swappable infrastructure, business rules you can read in isolation.

  • Delivery Guarantees: At-Most, At-Least & Exactly Once

    … retried throw error; } }, }); Consumers of ledger must use isolation.level=read committed so they skip records from aborted …

  • Docker & Containers

    … GBs MBs Starts in Minutes Seconds or less Isolation Strong (separate kernel) Good (shared kernel, namespaces) Density ~10s …

  • Frontend Testing Strategy

    … typos and type bugs Unit One function in isolation Vitest / Jest ⚡⚡ Logic is correct Integration / component ⭐ Components working …