ReadonlynameThe name of the store (e.g. 'mongodb', 'redis', 'dynamodb')
ReadonlylibraryThe client library being used
Returns the underlying producer Writer for operations not wrapped here.
Publish a message to a topic via the producer Writer. The payload is
JSON-serialized (strings/Buffers pass through). NSQ does not return a
client-visible job id, so this resolves to null.
Subscribe a Reader to queue (topic) on a channel and invoke
handler(msg) for each delivered message. One reader is cached per
topic/channel; a repeat process() on the same pair returns it.
Not supported: NSQ exposes no server-side lookup of a message by id.
Not supported: NSQ messages are acknowledged via finish(), not removed by id.
Return a lightweight local view of consumers for a topic: the number of
active Readers this store has bound to it. (NSQ's authoritative stats
live in nsqd's HTTP /stats endpoint, not the client library.)
NsqStorewraps a single producerWriterplus a pool of consumerReaders (keyed bytopic/channel) and exposes the common queue surface. NSQ has no server-side job registry, sogetJob()/remove()(which imply addressing a job by id) are not supported and throw.