0.3.0 • Published 7 years ago
async-queue-adapter v0.3.0
Async Queue Adapter
Async Queue Adapter for Javascript(& Typescript).
Installation
npm install async-queue-adapter --saveUsage
You can create as follows:
(Please refer to the Config section for config.)
const connection = require("async-queue-adapter").create({
adapter: "local"
/* config */
})
// or
import { create } from "async-queue-adapter"
create({
adapter: "local"
/* config */
})Support Queue
- local
- AWS, SQS (require
npm install aws-sdk --save) - beanstalkd (require
npm install beanstalkd --save) - amqp (such as, RabbitMQ) (require
npm install amqplib --save)
Create Connection
Use adapter parameter of create function`s config
Support Options
| adapter | delays | priority | timeout |
|---|---|---|---|
local | O | ..todo.. | O |
aws-sdk | O (Max 15min) | By AWS Console | |
beanstalkd | O | O | |
amqplib | O |
License
MIT
