Challenge 5a: Single-Node Kafka-Style Log

desccode

Built a single-node log system with Kafka-like semantics. Messages get appended with monotonic offsets, and clients can read from specific positions.

What it Does

The Implementation

Key Design Choices

Log Operations

  1. Send: Append message, return new offset

  2. Poll: Read messages from offset onwards

  3. Commit: Update consumer's position for a key

  4. List Commits: Show all consumer positions

Why This Works

This is the building block for distributed logs - once we have solid single-node semantics, we can replicate across multiple nodes.

Links

← PrevSeriesNext →