Closed joeblew99 closed 7 years ago
Nats is fire and forget with no persistence. That's by design. If you send messages and no one is there to receive the messages the messages are lost.
NSQ has a default mem-queue-size of 10.000 messages. I think that is the reason for your observed behavior.
NSQ-Doc:
-mem-queue-size int
number of messages to keep in memory (per topic/channel) (default 10000)
ok makes sense. thanks
NATS provides a clustered persistence option these days. I think its out of beta too. Might be worth trying out. Apparently the API has no changes at all, so if true its more just a matter of supplying he ability to boot it.
I've created a pull request to support nats streaming: #32
woooo :)
@joeblew99 are you happy?
well i tried it and it worked well for me. SO yes. Will close this..
nsq
nats
BTW since the API is meant to be agnostic to the underlying MQ, then can we use a string based Service factory i wonder :) I know its not proper golang, but well its a neat trick and will make testing / benching easier one might assume.