Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Windows Tipps & SecurityNighthawk M7 Pro im Test: Flexibler, aber teurer 5G-Router(21.09.2026 um 10:30 Uhr)
Sichere ProgrammierungNeue Gmail-Funktion: So sparst du jetzt Zeit bei Einmalcodes(21.09.2026 um 10:00 Uhr)
Sichere ProgrammierungYour GIF exporter is fine — the container is the problem(21.09.2026 um 10:01 Uhr)
Sichere ProgrammierungCSS, Motion, or GSAP? I Choose by Who Owns the Animation(21.09.2026 um 10:12 Uhr)
Windows Tipps & SecurityNighthawk M7 Pro im Test: Flexibler, aber teurer 5G-Router(21.09.2026 um 10:30 Uhr)
Sichere ProgrammierungNeue Gmail-Funktion: So sparst du jetzt Zeit bei Einmalcodes(21.09.2026 um 10:00 Uhr)
Sichere ProgrammierungYour GIF exporter is fine — the container is the problem(21.09.2026 um 10:01 Uhr)
Sichere ProgrammierungCSS, Motion, or GSAP? I Choose by Who Owns the Animation(21.09.2026 um 10:12 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

ELI25: Apache Kafka Quick Notes for Interviews

Kafka was originally built by LinkedIn and later made open source under the Apache Software Foundation. Goals High throughput Scalable Reliable Fault-tolerant Pub/Sub architecture Use Cases Logging Messaging Data…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Kafka was originally built by LinkedIn and later made open source under the Apache Software Foundation.






Goals




  • High throughput

  • Scalable

  • Reliable

  • Fault-tolerant

  • Pub/Sub architecture






Use Cases




  • Logging

  • Messaging

  • Data replication

  • Middleware logic









The Architecture



At a high level, the flow looks like this:



Producers -----> Brokers (Topics/Partitions) -----> Consumer Groups (Consumers)






1. Producers



These are client applications that produce (write) data to the system.






2. Brokers



Brokers are daemons (background processes) that run on hardware or virtual machines.





  • Cluster: Multiple brokers running together form a Kafka Cluster.


  • Storage: Their primary job is to take messages from producers and store them on disk.


  • Retention: Brokers have a defined retention policy (time-based or size-based). Once the limit is reached, old messages are deleted to make room for new ones.






3. Topics



Topics are logical collections of messages (e.g., orders, customers, clicks).




  • You can have as many topics as you want.

  • Topics are split into Partitions.






4. Partitions



A topic can have one or more partitions. These partitions are distributed across the brokers.



Example Scenarios:





  • Scenario A: 1 Topic (Orders), 2 Brokers, 2 Partitions.





    • Broker 1: Holds Orders-Partition-0


    • Broker 2: Holds Orders-Partition-1








  • Scenario B: 1 Topic, 3 Brokers, 2 Partitions.





    • Broker 1: Holds Orders-Partition-0


    • Broker 2: Holds Orders-Partition-1


    • Broker 3: Unused for this topic.








  • Scenario C: 1 Topic, 1 Broker, 2 Partitions.





    • Broker 1: Holds both Orders-Partition-0 and Orders-Partition-1









Important Note: Every message is written to a specific partition of a TOPIC. Each message gets a unique Offset ID. Kafka guarantees ordering only within a partition, not across the entire topic.










Consumer Groups



Consumers are the applications reading data from Kafka.




  • They sit in logical groupings called Consumer Groups.

  • Consumers can read from one or more partitions.



The Scaling Rule:

If you have more Consumers than Partitions, the extra consumers will sit idle.





  • Example: 2 Partitions, 3 Consumers ---> Consumer 1 reads Partition 1, Consumer 2 reads Partition 2, Consumer 3 sits idle.



Offset Management:

Consumers track the last message they read. If a consumer crashes, the group rebalances. A new consumer picks up the partition and resumes from the last committed Offset (the unique ID mentioned earlier).









Handling Failure (Fault Tolerance)



Understanding the "happy path" is great, but interviews often focus on failure.



Consumer Failure:

Straightforward. The new consumer looks up the last committed offset and continues reading.



Broker Failure:

Since messages are stored on disk inside the broker, what happens if the broker dies? Do we lose data?

No. This is where the Replication Factor comes in.



Kafka replicates partitions across different brokers.





  • Example: Orders Topic, 2 Brokers, Replication Factor of 2.



    • Broker 1: Holds Partition 0 (Leader), Partition 1 (Replica)


    • Broker 2: Holds Partition 1 (Leader), Partition 0 (Replica)








If Broker 2 crashes, Broker 1 typically takes over as the Leader for Partition 1.



When does replication happen?

When a message is written to the Leader partition, it is immediately relayed to the follower replicas.






Producer Acknowledgement (ACKS)



The producer sends a message to the leader partition. The leader writes it, replicates it, and sends an acknowledgment (ACK) back. You can configure how strict this is:





  • acks=0 (Fire and Forget): Producer sends data and doesn't wait for a response. Fastest, but risk of data loss.


  • acks=1 (Leader Ack): Producer waits for the Leader to confirm it wrote the message.


  • acks=all (Strongest): Producer waits for the Leader AND all in-sync replicas to confirm. Safest, but highest latency.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten ELI25: Apache Kafka Quick Notes for Interviews

Thematisch verwandte Begriffe: ELI25, Apache, Kafka, Quick · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

© 2015 - 2026 tsecurity.de — Nachrichten- & Content-Portal. Alle Rechte vorbehalten.

SSL 256-bit DSGVO Konform
Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94030 | A security vulnerability has been detected in SerenityOS up to 3d83e4509…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick