2.1.0 • Published 5 years ago

workflow-es-redis v2.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Redis providers for Workflow ES

Provides distributed lock management and queue services on Workflow ES using Redis.

Installing

Install the npm package "workflow-es-redis"

> npm install workflow-es-redis --save

Usage

Use the .useLockManager() and .useQueueManager() methods when setting up your workflow host.

const workflow_redis = require("workflow-es-redis");
const Redis = require('ioredis');
...

let connection = new Redis('redis://:authpassword@127.0.0.1:6380/4');

var config = workflow_es.configureWorkflow();
config.useLockManager(new workflow_redis.RedisLockManager(connection));
config.useQueueManager(new workflow_redis.RedisQueueProvider(connection));