Search
Lessons (31)
- Topics, Partitions & Offsets
… orders (3 partitions)"] P0["Partition 0 → Broker 1"] P1["Partition 1 → Broker 2"] P2["Partition 2 → Broker 3 …
- Replication, Partitioning & Sharding
Scale reads with replicas, split data safely with partitions and shards, and plan for consistency, hot keys and …
- Consumers & Consumer Groups
How consumers read in parallel with consumer groups, how partitions are assigned and rebalanced, how offsets are committed …
- What Is Apache Kafka?
… async ({ partition, message }) = { const order = JSON.parse(message.value.toString()); console.log( partition ${partition} offset ${message.offset}: , order …
- Running Kafka in Production: The DevOps View
… which broker leads which partition. Since Kafka 4.0, KRaft replaces ZooKeeper completely Replication Each partition is copied …
- Brokers, Replication & Durability
… In Kafka, every partition has one leader replica and several follower replicas on different brokers. . Local setup …
- Capacity, Availability, Latency and CAP
… Decide, per action, what happens during a partition When copies can't talk, you must pick for each …
- L6 Production Debugging Casebook
… Are keys spread evenly? Does adding partitions break ordering? (Adding partitions changes which partition a key maps to …
- Message Delivery: Queues, Kafka, Ordering and DLQs
… Messages are split into partitions, and each partition keeps its order. Rule 2: Expect duplicates and make them …
- Big Data: ETL, Warehouses and Streaming
… 2. Replay yesterday's raw partition through the fixed code into a new version of the output (e …
- DynamoDB Modeling, RDS Scaling and Data Resilience
… Find orders by status. Keys Key Role --- --- Partition key (PK) Hashed to choose the storage partition; must spread …
- Kafka vs RabbitMQ & the Kafka Ecosystem
… topic + partition by key Ordering Per queue (with one consumer) Per partition Throughput High (tens of thousands of …
- Backend Design Scenarios
… Partition by a natural access boundary such as tenant or time when queries can use partition pruning and …
- The Hot SKU Alert Problem
… it's guaranteed to be posted, even if the postman comes later. Kafka / partition Kafka is a durable …
- Delivery Guarantees: At-Most, At-Least & Exactly Once
… toLedgerEntry(message.value) }] }); await tx.sendOffsets({ consumerGroupId: "ledger-writer", topics: [{ topic, partitions: [{ partition, offset: (BigInt(message.offset) + 1n …
- SQL Interview Query Drills
… For an average per class, use a correlated subquery or partitioned window function. Q26: Third-highest distinct salary …
- SQL vs NoSQL Databases
… keep answering, even with possibly stale data (social feeds). mermaid flowchart TD P["🔌 Network partition happens"] -- C["Choose …
- Sorting Algorithms
… pick a pivot, partition 🎓 Analogy: A teacher says "everyone shorter than Sam, stand left; taller, stand right." Then …
- Product-Scale Frontend Patterns
… On tenant switching, clear or partition the cache so one customer's data cannot appear in another customer …
- Real-Time, Pub/Sub, Webhooks and CDC
… promise only what you can keep Events are spread across partitions (separate lanes that run in parallel). Order …
- What Is Software Architecture?
… flexible fields - Horizontal write scaling needs work later (partitioning / Citus) Alternatives considered - MongoDB: flexible schema, but weaker multi …
- Event-Driven Architecture
… store processed event IDs Ordering Partition by entity key (Kafka); include versions/timestamps Lost events when saving + publishing …
- Dynamic Programming
… sum dp[row][col] Intervals Burst balloons, palindrome partitioning dp[left][right] Bonus: house robber Rob houses in …
- AWS Databases: Choose the Right One
… list a customer’s orders by date.” The partition key decides where data lives; a sort key orders …
- Database Internals, Replication and Scaling
… read replica. One huge table Split it into partitions (e.g. by month) only if queries or deleting …
- Time, Consistency and Distributed Transactions
… Now you know you have a real conflict to resolve. Split brain A network partition is when servers …
- Scaling, Load Balancing & Rate Limiting
… After a user updates their profile, read their profile from the primary ("read your own writes"). Sharding (partitioning …
- Collaborative Document Editing & Real-Time Sync
… id, body, author, resolved) -- Op log (wide-column: partition = doc id, clustering = rev) ops(doc id, rev, client …