A light-weight distributed queue based on redis and RxJS.
__ _ _ __ __ __/ _` || '__|\ \/ /| (_| || | > <\__, ||_| /_/\_\| ||_|
A distributed work queue for node.js based on redis and RxJS.
'qrx' provides reactive work queue implemented with redis and RxJS. The goals of the project:
npm install qrx
qrx requires a redis installation see: http://redis.io/download
[sudo] npm install qrx
// create a new queue with well known namewq = 'test-wq';// clear any pending work (optional)wqclear;wq;wq;// subscribe for workwq;// subscribe for completed workwq
var wqMaster = 'clean-test2';var WORK_COUNT = 500;console;forvar i=0; i < WORK_COUNT; i++wqMaster;// two slaves serving 1 mastervar workReceived = 0;var slave1 = 'clean-test2';slave1;var slave2 = 'clean-test2';slave2;// master get's his workvar completedWorkCount = 0;wqMaster
RxObservable// ForkMany usage;var worker = 'test-q';worker;
Copyright (c) Loku. All rights reserved. The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.