All Projects → nullobject → Bokeh

nullobject / Bokeh

Licence: mit
Bokeh is a simple, scalable and blazing-fast task queue built on Node.js and ZeroMQ.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Bokeh

Bull
Premium Queue package for handling distributed jobs and messages in NodeJS.
Stars: ✭ 11,748 (+17434.33%)
Mutual labels:  queue, message
qless-php
PHP Bindings for qless
Stars: ✭ 25 (-62.69%)
Mutual labels:  queue, message
Miniqueue
A simple, single binary, message queue.
Stars: ✭ 77 (+14.93%)
Mutual labels:  queue, message
dynamic-queue
The dynamic queue
Stars: ✭ 17 (-74.63%)
Mutual labels:  queue, zeromq
Mangos
mangos is a pure Golang implementation of nanomsg's "Scalablilty Protocols"
Stars: ✭ 384 (+473.13%)
Mutual labels:  queue, message
Appserver
A multithreaded application server for PHP, written in PHP.
Stars: ✭ 930 (+1288.06%)
Mutual labels:  queue, message
Node Rethinkdb Job Queue
A persistent job or task queue backed by RethinkDB.
Stars: ✭ 158 (+135.82%)
Mutual labels:  queue, message
node-svmq
Native System V message queues in Node.js
Stars: ✭ 16 (-76.12%)
Mutual labels:  queue, message
zmq
ZeroMQ based distributed patterns
Stars: ✭ 27 (-59.7%)
Mutual labels:  queue, zeromq
Bigq
Messaging platform in C# for TCP and Websockets, with or without SSL
Stars: ✭ 18 (-73.13%)
Mutual labels:  queue, message
Quedis
Quedis - redis queue for bosses
Stars: ✭ 31 (-53.73%)
Mutual labels:  queue, message
Atom Message Panel
An easy way to display your messages in Atom
Stars: ✭ 60 (-10.45%)
Mutual labels:  message
Libzmq Rs
A strict subset of ØMQ with an ergonomic API.
Stars: ✭ 54 (-19.4%)
Mutual labels:  zeromq
Mainthreadguard
💂 Tracking UIKit access on main thread
Stars: ✭ 53 (-20.9%)
Mutual labels:  queue
Geeksforgeeks Dsa 2
This repository contains all the assignments and practice questions solved during the Data Structures and Algorithms course in C++ taught by the Geeks For Geeks team.
Stars: ✭ 53 (-20.9%)
Mutual labels:  queue
Yii2 Async
Provides translucent api & queues for moving large tasks out of request context with SQL, Redis or AMQP.
Stars: ✭ 64 (-4.48%)
Mutual labels:  queue
Docker Laravel Queue Worker
A docker image for working with queues being monitored by supervisor as recommended by laravel.
Stars: ✭ 60 (-10.45%)
Mutual labels:  queue
01cnode
tool to monitor full bitcoin node bitcoind-web
Stars: ✭ 50 (-25.37%)
Mutual labels:  zeromq
Tasktiger
Python task queue using Redis
Stars: ✭ 1,053 (+1471.64%)
Mutual labels:  queue
Swiftychat
SwiftUI Chat UI (Client) Framework & Documentation to get started!
Stars: ✭ 50 (-25.37%)
Mutual labels:  message

Bokeh

Build Status

bokeh (pronounced boh-kay) is a simple, scalable and blazing-fast task queue built on Node.js and ZeroMQ. It allows you to offload tasks from your main application process and distribute them among a pool of workers. Workers can be running on the same host as your application, or scaled out onto multiple machines for greater processing power.

When you want a worker to run a task, just submit it to the broker using the client API. A task is simply any class in your application which responds to the run method.

Bokeh consists of three components:

  1. The client library which your application uses to submit tasks to the broker.
  2. The broker process which manages the pool of workers.
  3. The worker processes which are responsible for running tasks.

Installation

ZeroMQ

The only prerequisite is that you have ZeroMQ installed.

OS X

Install ZeroMQ using brew:

$ brew install zeromq

Ubuntu 10.04 LTS

Install ZeroMQ using Chris Lea's PPA:

$ sudo add-apt-repository ppa:chris-lea/zeromq
$ sudo apt-get update
$ sudo apt-get install libzmq-dbg libzmq-dev libzmq1

Bokeh

Install Bokeh using npm:

$ npm install bokeh

Overview

Task

A task is a class which responds to the run method. A task is dealt to a worker and executed.

Once the task has been completed, you must call the callback with any data you want to pass back to your application.

class Reverse
  run: (data, callback) -> callback null, data.split("").reverse().join("")

Client

The client is used by your application to submit tasks to the broker and monitor their progress.

bokeh = require "bokeh"
handle = bokeh.getClient().submitTask "Reverse", "hello world"
handle.on "complete", (data) -> console.log "Task %s completed: %s", handle.id, data
handle.on "error", (error) -> console.error "Task %s failed: %s", handle.id, error

Broker

The broker is responsible for routing messages from clients, persisting them to the data store and dealing them to workers.

bokeh = require "bokeh"
broker = new bokeh.Broker

Bokeh supports pluggable data stores for persisting tasks, currently in-memory, Redis and Riak are supported.

Worker

A worker is a process which receives tasks from a broker and executes them. You must register all your task classes with the worker.

bokeh = require "bokeh"
worker = new bokeh.Worker
worker.registerTask "Reverse", require("./tasks/reverse")

License

Bokeh is released under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].