1.1.5 • Published 6 months ago

smq-rabbitmq-queue v1.1.5

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

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

use unified api for both

const conf = {
  // isRabbitMQ: true // use rabbitmq without this is use redis
  QueueName: 'amqp_queue',
  DB: 0,
  host: '127.0.0.1',
  port: 6379,
  password: '123456',
}
const messageHandler = async (payload) => {
console.log(payload)
}
const q = new QueuePipe(conf);
await q.setConsumer(messageHandler)
const q = new QueuePipe(conf); // same conf as consumer
const prod = await q.getProducer()
prod.publish({
// payload
})
1.1.1

6 months ago

1.1.0

6 months ago

1.1.5

6 months ago

1.1.4

6 months ago

1.1.2

6 months ago

1.0.22

6 months ago

1.0.21

6 months ago

1.0.20

6 months ago

1.0.26

6 months ago

1.0.25

6 months ago

1.0.24

6 months ago

1.0.23

6 months ago

1.0.19

8 months ago

1.0.18

8 months ago

1.0.17

8 months ago

1.0.16

8 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.11

9 months ago

1.0.10

9 months ago

1.0.15

8 months ago

1.0.14

9 months ago

1.0.13

9 months ago

1.0.12

9 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago