AdvancedAbout 20 min

    Kafka Architecture

    Read the full article on Substack

    7 min read.

    Explore the high-throughput, distributed event streaming architecture of Apache Kafka.

    Think of it this way: Kafka is like a continuous, uneditable diary. Producers write new entries at the end. Readers (consumers) place a bookmark (offset) to remember where they stopped reading, allowing multiple people to read at different speeds without destroying the pages.

    Partition 0from Producer A
    0
    1
    2
    3
    4
    5
    6
    7
    Group 1 reads offset 0 next
    Group 2 reads offset 0 next
    Partition 1from Producer B
    0
    1
    2
    3
    4
    5
    6
    7
    Group 1 reads offset 0 next
    Group 2 reads offset 0 next

    Press Play. Producers add records to the end of each partition, and each group reads at its own pace.

    Check your understanding

    Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.

    Who does what?

    Sort

    Sort each responsibility into the Kafka component that owns it.

    Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.

    Producer

    Drop items here

    Broker

    Drop items here

    Partition

    Drop items here

    Consumer group

    Drop items here
    6 pieces left to place

    Quiz

    21 questions
    Question 1 of 21
    Score: 0

    What happens to a message in Kafka after a consumer reads it?

    Done with this lesson?

    Sign in free to keep your progress, streak and quiz scores.

    Keep going