Table of Contents

Redis vs RabbitMQ vs Kafka (Data Structure Comparison)

1. Redis

Yes — Redis main data structure is:

Key idea

Mental model

2. RabbitMQ

RabbitMQ is NOT a hashtable system.

It is a message queue system.

Core structure

How it works

Producer → Exchange → Queue → Consumer

Inside the queue:

Key idea

3. Kafka

Kafka is NOT a hashtable and NOT a queue.

It is an append-only distributed log system.

Core structure

Example:

offset 0 → msg1
offset 1 → msg2
offset 2 → msg3

How it works

Producer → Topic → Partition Log → Consumer reads by offset

Key idea

Comparison Table

System Core Structure Storage Type Access Style
Redis Hashtable RAM Key-based lookup
RabbitMQ FIFO Queue RAM + Disk Message consumption
Kafka Append-only log Disk Offset-based read

Simple Mental Model