Apache Kafka
Infrastructure & DevOpsconcept · 6 मिनट · अपडेट 19 जुल॰ 2026

Apache Kafka

लेखक Rajendra Sharma, RN, CPC, CPBसमीक्षक Rajendra Sharma, RN, CPC, CPB · 29 जून 2026

A durable, replayable event log for high-volume streams — the backbone when device telemetry outgrows a simple broker.

In one line

Kafka is a distributed, append-only event log: producers write events to partitioned topics, the log persists them for days or forever, and any number of consumer groups read at their own pace — including re-reading history.

producer topic (log) consumers
Kafka is a durable, partitioned append-only log: producers append events, many consumers read at their own pace.

The problem it solves

A simple MQTT broker routes a message to whoever's subscribed right now and forgets it. But at hospital scale you want many downstream systems — analytics, alerting, the EHR, an ML pipeline, an audit store — each consuming the same stream independently, and you want to replay history when you add a new one. That's a durable log, not a transient queue — which is Kafka.

How it works

  • Unlike a message queue that deletes on delivery, Kafka retains events; each consumer just tracks its offset (position in the log).
  • Partitions give parallelism and ordering per key — all events for device-42 stay in order.
  • Replication gives durability; consumer groups give horizontal scale-out.
  • The replay property is the killer feature: deploy a new analytics service today and let it consume last month's stream as if it were live.

Where it shows up in digital health

  • Hospital-scale device telemetry — MQTT at the edge, bridged into Kafka in the core.
  • HL7/FHIR event backbones feeding many downstream systems independently.
  • Audit pipelines (an immutable log is a natural audit trail) and ML feature streams.

The honest sizing note

Kafka is powerful and operationally heavy (brokers, partitions, replication, tuning). The sizing rule from this platform's own cost discipline: Kafka earns its weight at high volume — do not run it for ten devices. A small deployment is better served by a managed queue or even a TSDB directly.

Common pitfalls

  • Reaching for Kafka too early — the operational cost outweighs the benefit at low volume.
  • Poor partition-key choice — wrong keys break ordering guarantees or create hot partitions.
  • Unbounded retention — "keep forever" is a storage (and PHI-governance) decision, not a default.

Key takeaways

  • Kafka = a durable, partitioned, replayable event log — not a transient queue.
  • Consumers read independently at their own offset; replay lets new services see history.
  • The backbone for high-volume health event streams (telemetry, FHIR events, audit).
  • Heavy by design — adopt it at real scale, not for small fleets.

अपना स्मरण जाँचें

2 में से 0 याद

दोबारा पढ़ने से बेहतर है सक्रिय स्मरण — पहले उत्तर सोचें, फिर देखें।

  1. How does Kafka differ from a simple message queue?

  2. When does Kafka earn its operational weight?

संदर्भ

  1. Apache Kafka Documentation

संबंधित entries