Streaming Vs Message Queue

Message queue:

  • Do computation on one individual message
  • Ensure no data is lost
  • Usecases:
    • Good for batching,
    • Good for critical job

Stream processing:

  • Apply complex operations on multiple input streams (multiple messages) at the same time
  • Usecases:
    • Good for real-time event streaming
    • good for data analytics
    • Replay stream

[!note]
Kafka supports Kafka Connect and Kafka Stream which makes streaming is also possible