weyoss / redis-smq

A simple high-performance Redis message queue for Node.js.
MIT License
596 stars 64 forks source link

How are messages stored in brokers in redis-smq? #89

Closed longtt2705 closed 2 years ago

longtt2705 commented 2 years ago

In some other queue like Kafka, which is designed using disk-based retention, this means when a broker downs and then backs, the messages in queue can be recovered. But what happen in redis-smq, Redis relies on main memory of computer for data storage. Does it mean all the messages in the queue will be lost if a broker down? This is the thing that I concern to choose between redis-smq and others. Can you help me answer it @weyoss ?

weyoss commented 2 years ago

@longtt2705 RedisSMQ is backed by Redis.

Depending on your application needs and requirements, Redis can be configured:

For more details see https://redis.io/docs/manual/persistence