O Kafka difere das filas de mensagens tradicionais (como RabbitMQ) de formas importantes — é um log distribuído que retém eventos (em vez de deletá-los após o consumo), suporta replay, oferece throughput muito alto e usa um modelo baseado em pull e partições. Entender as diferenças esclarece quando usar cada um.
Diferenças principais
TRADITIONAL QUEUE (e.g. RabbitMQ) → messages are typically DELETED once consumed:
→ a message goes to a consumer and is removed (transient)
→ push-based often; rich routing; per-message acknowledgment
KAFKA → a durable, retained LOG of events:
→ events are STORED (retained for a period), NOT deleted on consumption
→ multiple consumers/groups can read the SAME events independently
→ REPLAY → re-read past events (rewind to any offset)
→ pull-based; partition-based ordering and scaling; very high throughput
