1

I want to know the difference between Redis Streams and PubSub.

Murali krx
  • 65
  • 1
  • 5
  • https://stackoverflow.com/questions/59540563/what-are-the-main-differences-between-redis-pub-sub-and-redis-stream – Parshwa Shah Oct 01 '21 at 16:48
  • Does this answer your question? [What are the main differences between Redis Pub/Sub and Redis Stream?](https://stackoverflow.com/questions/59540563/what-are-the-main-differences-between-redis-pub-sub-and-redis-stream) – Tando Nov 27 '21 at 03:48
  • A much detailed answer can be found on this thread: https://stackoverflow.com/questions/59540563/what-are-the-main-differences-between-redis-pub-sub-and-redis-stream – Shweta Oct 13 '22 at 12:06

1 Answers1

4

Pub/Sub is a Publisher/Subscriber platform, it's not data storage. Published messages evaporate, regardless if there was any subscriber.

In Redis Streams, stream is a data type, a data structure on its own right. Messages or entries are stored in memory and stay there until commanded to be deleted.