Giter Club home page Giter Club logo

disque-worker's Introduction

Build status Coverage Status

disque-worker

Introduction

disque-worker is a small Node.js worker system using the new Disque project (made by @antirez the creator of Redis). It's really basic for now but working fine. It's based on node-redis client since Disque is similar to Redis in terms of connectivity and command execution.

Requirement

You should have Disque server/cluster up and running. Let's assume its running locally on port 7711. (see install documentation on previous link)

Installation

Simply run npm install to install all external packages.

Tests

You can run unit tests using mocha :

mocha

Output should be something like :

disque-worker
✓ should be connected
✓ should add a job in queue
✓ should retrieve a job in the queue list


3 passing (44ms)

Usage by example

You can start a worker by typing in your shell :

nodejs example/worker_example.js

Then you can start pushing some new job in the queue and watch the worker executing them by launching the bench script :

nodejs example/bench.js

Coming next

  • Support unix socket connection
  • Support cluster connection
  • Add stats module

Notes

On May 29th 2015 Disque is still in beta mode so you can expect bugs/issues. Feel free to help by joining the project

disque-worker's People

Contributors

robinef avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.