1.0.2 • Published 19 days ago

smq-rabbitmq-queue v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
19 days ago

simple wrapper for rabbitmq or redis-smq with multiple consumer .

use unified api for both

class QueuePipe extends BaseMqInterface{
  constructor(config, isCluster=null) {
    super()
    if (config.isRabbitMQ) { // your custom config
      return new RabbitMQPipe(config, isCluster)
    } else {
      return new SMQPipe(config, isCluster)
    }
  }
}
1.0.2

19 days ago

1.0.1

20 days ago

1.0.0

20 days ago