Sheet 08

Kafka Event Bus & Messaging Engine

Throughput sizing, KRaft controller plane quorum, partition balancing, and topic lifecycle architecture.

Cluster Sizing3 Brokers (6 Partitions)
Producer Throughput
6.51 MB/s
1 KB avg msg
Internal Replication
19.5 MB/s
3x replication
Monthly Ingress
16.1 TB
5.4 TB with zstd
KRaft Quorum
3 Controllers
Zero ZooKeeper

Partition Sensitivity: Max Producer vs Consumer Throughput Capacity (MB/s)

Topic Schema & Partition Configuration

KRaft metadata ops: 0.6000000000000001 ops/s
Topic NamePartitionsRetentionReplicationCleanup PolicyPurpose & Semantics
order.events247 days3xdeleteOrder lifecycle events (created, paid, fulfilled)
payment.transactions1230 days3xcompactPayment ledger (idempotent, financial audit)
inventory.updates127 days3xcompactStock count changes & reservations
order.dlq630 days3xdeleteUnrecoverable failed events for inspection
order.retry.5s61 day3xdeleteRetry tier 1 (5s exponential backoff)
order.retry.30s61 day3xdeleteRetry tier 2 (30s delay topic)
order.retry.5m61 day3xdeleteRetry tier 3 (5m delay topic)
order.reprocess67 days3xdeleteManual reprocess buffer queue