NATS is a simpler, faster alternative: http://nats.io/
NSQ – A realtime distributed messaging platform
61–64 of 64 posts
Gotta love those benchmarks for 4k payloads... those are some big messages right there.
Re: NSQ – A realtime distributed messaging platform
#62Re: NSQ – A realtime distributed messaging platform
#63Earlier quoted context omitted.
Redis pub/sub is ephemeral. If you aren't connected and listening, you missed it.
My mistake: I should have said Redis queues.
NSQ's improvements over Redis queues are:
- NSQ is about equally simple as Redis. Like Redis, it's one binary (and an optional second, if you want a dynamically resizable cluster)
- simplicity of clustering, just boot more servers
- messages aren't lost if the worker process takes one and then dies, they will be retried.
- optional overflow to disk, queues do not have to fit in RAM
- optionally always write to disk, for reliability
- a message on one "channel" can be queued automatically in several "topics", and the sender doesn't need to know. So messages can be diverted to monitoring, for example.