#kafka
16 notes · ← All notes
- RabbitMQ lab: a second broker on shared partsA RabbitMQ lab at /rabbitmq built like the Kafka one, after first pulling the clock, rewind, story mode and toolbar out of Kafka into shared packages; a real RabbitMQ on the server with certificate login; and guided steps that loop with a draggable bar.
- RabbitMQ vs KafkaA queue that forgets acked messages versus a log that keeps everything: how the two differ in routing, delivery, ordering, replay and failure, and when each fits.
- Rewind, replay and loop in a deterministic simulationHow the Kafka and RabbitMQ labs go back in time without snapshots: a fixed-step clock, a log of outside actions, and replay from the start. Then the same trick turned into a looping, scrubbable step player.
- Kafka lab: making the cards say what they meanA short night of small fixes to the Kafka lab: the happy path moved to the top, a disk meter that stayed empty, hover explanations on the consumer-group card, P0/pod0 labels with lines between them, and consumer names that match their pods.
- Kafka day: a simulated lab, a real cluster, and certificatesThe Kafka sub-project in one day: a deterministic simulator at /kafka, a real three-node KRaft cluster on a resized VM, client-certificate logins from the laptop, a build-your-own-Kafka course, and a run of fixes after actually using it.
- Build your own Kafka, 0: why a logBefore writing any code: why Kafka stores messages in an append-only log instead of a queue, and what that one decision buys.
- Build your own Kafka, 1: records on diskThe exact bytes Kafka writes for a batch of records: a 61-byte header, varint-encoded records and a CRC-32C. You write the varint encoder.
- Build your own Kafka, 2: offsets and the indexA consumer asks for offset 217. How a broker finds it in a gigabyte file without scanning: a sparse index, binary search, then a short scan. You write the lookup.
- Build your own Kafka, 3: segments and retentionAn append-only file can only grow. Splitting the log into segment files makes deleting old data cheap. You write the retention rule.
- Build your own Kafka, 4: the page cache and crash recoveryKafka does not fsync each write. What that costs when the power goes, how a broker repairs a torn log on startup, and why replication is the real answer. You write the recovery.
- Kafka ACLs and authorization errorsHow Kafka decides who may do what: principals, resources, operations, deny-by-default, prefixed patterns, the permissions producers and consumers need, and what TOPIC_ and GROUP_AUTHORIZATION_FAILED mean.
- Kafka: consumer groups, rebalances and lagHow a group splits partitions between its members, what happens when someone joins, leaves or crashes, where committed offsets live, and how to read lag.
- Kafka: topics, partitions, offsets and the logA topic is a set of append-only logs. How records get an offset, which partition a key lands on, and what the files on a broker’s disk look like.
- Logging in to Kafka and MySQL from a laptop with a client certificateA private CA, a client certificate, an SSH tunnel, and DataGrip: the command to run every time, the one-time setup, and every question that came up on the way.
- Inside the Kafka producer: batching, buffering and timeoutsWhat happens between send() and the broker: serializing, choosing a partition, batching in the record accumulator, waiting when there is no leader, and the timeouts that decide when a record fails.
- Kafka: replication, the ISR and the high watermarkLeaders and followers, which replicas count as in sync, what acks=all really waits for, and how Kafka avoids (or allows) losing writes when a broker dies.