Skip to content

Multi-process, multi-queue background processing in both node and browser.

License

Notifications You must be signed in to change notification settings

namiwang/minion-job

Repository files navigation

MinionJob

Multi-process, multi-queue background processing in both node and browser.

Install

npm install minion-job --save

Usage

In browser

var job = new MinionJob.Job(
  function(dataset){
    do_some_intense_work(dataset)
  },
  'urgent_queue'
)

job.perform_later(dataset)

In Node.js

Well, it's almost exactly the same code as in browser.

var MinionJob = require('minion-job')

var job = new MinionJob.Job(
  function(dataset){
    do_some_intense_work(dataset)
  },
  'urgent_queue'
)

job.perform_later(dataset)

Inside

Using Web Worker in browser and node-webworker-threads in node as multi-process implantation.

Using Loki.js for in-memory data storage in both browser and node.

More

Please feel free to create issues for bugs, feature requests and other discussions.

About

Multi-process, multi-queue background processing in both node and browser.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published