AlgoViz

Apache Kafka

medium 34 min

Apache Kafka is a distributed log for events.

What each level should show

The same question is judged differently for mid, senior and staff.

  • Mid

    Must show

    • Topics, partitions, offsets, groups
    • Same key, same partition, same order
    • Commit after the work, duplicates possible

    Will be probed on

    • Consumers versus partitions
    • acks=1 versus acks=all

    Stands out

    Says which field is the key and why.

  • Senior

    Must show

    • In-sync copies and min.insync.replicas
    • Sizing with arithmetic
    • Hot keys, rebalances, dead letters

    Will be probed on

    • Scope of transactions
    • What happens when two brokers fail

    Stands out

    Solves the gap between database and log with an outbox.

  • Staff

    Must show

    • Schemas, ownership and quotas for shared topics
    • Upgrade and failure plans across zones
    • When a managed or simpler service wins

    Will be probed on

    • Tiered storage limits
    • Moving a keyed topic to more partitions

    Stands out

    Puts a price on running it and names what would change the choice.