Kafka differisce dalle code di messaggi tradizionali (come RabbitMQ) in modi fondamentali — è un log distribuito che conserva gli eventi (invece di eliminarli al consumo), supporta replay, offre throughput molto elevato e utilizza un modello basato su pull e partizioni. Comprendere le differenze chiarisce quando utilizzare l'uno o l'altro.
Differenze chiave
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
