Search

Lessons (11)

  • Heaps & Priority Queues

    … That's a priority queue , and a heap is the clever data structure that implements it efficiently. Structure …

  • Kafka vs RabbitMQ & the Kafka Ecosystem

    … for: background job queues ("resize this image"), request/reply, complex routing rules, priority queues, delayed messages, smaller systems …

  • Stacks & Queues

    … remove at both ends Sliding window maximum Priority queue Highest priority out first ER triage, Dijkstra (see Heaps …

  • Design a Reliable Notification System

    … preferences feed priority queues, channel providers and idempotent delivery tracking](/img/system-design-l6/notifications.svg) A notification …

  • Graphs: BFS & DFS

    … It powers GPS navigation and network routing. (See Heaps & Priority Queues .) Key takeaways - Graph = nodes + edges; directed or …

  • Async JavaScript: Promises, async/await and Node's Event Loop

    … Between every callback, Node empties two high-priority queues: first process.nextTick , then promise microtasks. mermaid flowchart LR …

  • The L6 System-Design Thinking Loop

    … Let the database decide who wins A queue (a waiting line) is useful to control how many people …

  • Kafka for Backend Services

    … For task queues with routing, priorities and per-message acknowledgment, RabbitMQ (or SQS) is usually simpler. How do …

  • Backend Design Scenarios

    … Protect the rest of the system with a separate worker pool, queue capacity limits, bulkheads, priority queues and …

  • The Hot SKU Alert Problem

    … You need a written coalescing policy, not just a queue. Policy How it works Good Bad --- --- --- --- Every version …

  • Caching & Redis

    … queues, recent activity Set SADD , SISMEMBER Unique visitors, tags Sorted set ZADD , ZRANGE , ZREVRANK Leaderboards , priority queues, time …