GithubHelp home page GithubHelp logo

sheltowt / node_worker_bee Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.85 MB

A node.js application that creates a job queue whose workers fetch data from a url, and store results in a database. The job queue exposes a REST API for adding jobs and checking their status and results.

JavaScript 95.86% HTML 4.14%

node_worker_bee's Introduction

node_worker_bee

A node.js application that creates a job queue whose workers fetch data from a url, and store results in a database. The job queue exposes a REST API for adding jobs, updating jobs, deleting job and checking their status and results.

On post requests, and put requests where the url changes, the job is added to the queue. The queue iterates through jobs, distributing processing tasks to child processes. Child processes retrieve data from a url, and than save the data to a table containing data about a job, as well as a table containing data about a worker.

One job can have multiple workers, if there are multiple put request updating the url of a specific job.

TO get up and running:

  1. Install node, mongodb
  2. npm install
  3. In root directory type node app.js

node_worker_bee's People

Contributors

sheltowt avatar

Watchers

 avatar  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.