microjob
jobber
microjob | jobber | |
---|---|---|
2 | 1 | |
2,018 | 17 | |
- | - | |
0.0 | 10.0 | |
over 1 year ago | over 1 year ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
microjob
-
Ship it!
node.js is multithreaded under the hood and always has been. It's true that we used to not have multi thread capability as developers, but we actually have for several years now, but most developers have probably never used it. Even prior to Worker Threads/Shared Buffers, we had 3rd party modules such as node-fiber and various shared memory data structure libraries which could be used to build multi threaded javascript programs. https://github.com/wilk/microjob <- dead simple batteries included multi threading in node.js
-
Should all functions be async?
Real life example: We wanted our website to be static files to save on system time as a kind of caching strategy. So far there are about 100 pages that need to be rendered sometimes when there is an update to the site. Running all of this through our templating engine at once caused the node server to be unresponsive for about 30 to 40 seconds. No joy. There are a few ways to solve this but the one we decided on was to use web worker threads for this execution because this was not going to happen very often. About 5% to 10% of the time. It basically just puts this function (rendering all of the pages) into another thread and returns the result. Now this takes about 15 to 20 seconds and does not hold up the main thread. We used a library called Microjob that makes using a web worker really easy https://github.com/wilk/microjob
jobber
What are some alternatives?
threads.js - 🧵 Make web workers & worker threads as simple as a function call.
agenda-admin - Admin interface for Agenda
libev - Full-featured high-performance event loop loosely modelled after libevent
metasearch - Search aggregator for Slack, Google Docs, GitHub, and more :mag:
threadedClass - Fork instances of classes with one line of code, all while retaining the types of the class.
Remote-Developer-jobs-directory - Document all things for remote developer positions.
Joplin - Joplin - the secure note taking and to-do app with synchronisation capabilities for Windows, macOS, Linux, Android and iOS.
schedule - Schedule module for Nest framework (node.js) ⏰
react-native-multithreading - 🧵 Fast and easy multithreading for React Native using JSI
bull - Bull module for Nest framework (node.js) :cow:
Conveyor MQ - A fast, robust and extensible distributed task/job queue for Node.js, powered by Redis.
dev-resources - A collaborative list of resources for developers