Bee-Queue
bases
Bee-Queue | bases | |
---|---|---|
6 | 13 | |
3,625 | 5,650 | |
1.2% | 3.7% | |
8.5 | 7.6 | |
6 days ago | 15 days ago | |
JavaScript | TypeScript | |
GNU General Public License v3.0 or later | 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.
Bee-Queue
-
Node.js backend architecture question
You could use a Redis based job system like https://github.com/bee-queue/bee-queue for maintenance and email. The jobs could be populated by the API service, some cron scripts, and whatever else, while you'd have dedicated worker processes (written in Node.js?) pulling the jobs and running them.
-
Building a task queue, Part 1
The Node.js libraries BullMQ and Bee Queue are also infrastructure and interface. However, you typically have to use their interface.
-
Scaling synchronous microservices
I'm a fan of bee-queue for this when working in Node, but it's just a wrapper around reliable queue patterns in Redis; you might want to investigate how it works (the readme is quite good) for your own use case, or find an equivalent for your environment. The key is it's designed for short tasks (seconds long, not minutes or hours), and you can receive a result back from the task unlike some fire-and-forget queueing solutions.
-
[Question] API routes and worker_threads
I'd also consider something like bee-queue, which would enable you to scale across processes or even across multiple server machines.
-
NodeJS recommended job queue/message queue??
For NodeJS, there are BullMQ(successor of Bull), Bull and Bee Queue
-
[AskJS] How do you do JS on the backend?
bee-queue for offloading tasks onto non-web-server machines
bases
-
Configuring Jest for Typescript Unit Tests
We will install ready-to-use Typescript base configurations instead of starting from scratch. In this article, we will use Typescript base configurations for node version 20. If you are using a different version of node, visit the tsconfig bases docs to find out what you need. You can also create a Typescript configuration file with settings that work for you.
-
TSConfig Applier Extension :)
This Visual Studio Code extension simplifies the process of selecting and applying TypeScript configuration files (`tsconfig.json`) from the https://github.com/tsconfig/bases repository. With this extension, you can effortlessly browse through available configuration
-
The hardest thing in Typescript for me is...
Steal from this repo: https://github.com/tsconfig/bases/blob/main/bases/next.json
-
🎓 Monorepo College Lecture 2: Build Me Up Buttercup
I personally am a big advocate for writing the least amount of tsconfig possible, and the tsconfig/bases package serves as a great source for getting tsconfig templates.
-
Use Mocha instead of Jest and boost your tests speed
Possibly depends on your tsconfig. We use the recommended base configs from here https://github.com/tsconfig/bases
-
Achieving end-to-end type safety in a modern JS GraphQL stack
A tsconfig.json preset that ensures type safety;
-
Create a NodeJS Boilerplate with Typescript
The same configuration is also available for other nodejs versions like 14 and 12.
-
Converting your vanilla Javascript app to TypeScript
After installing, we also need to set up a basic tsconfig.json file for how we want tsc to behave with our app. We will use one of the recommended tsconfig files here: https://github.com/tsconfig/bases#centralized-recommendations-for-tsconfig-bases. This contains a list of community recommended configs depending on your app type. We’re using Node 16 and want to be extremely strict on the first pass to clean up any bad code habits and enforce some consistency. We’ll use the one located: https://github.com/tsconfig/bases/blob/main/bases/node16-strictest.combined.json.
-
Possibly moving from JS to TS - have a few questions
You'll need @typescript-eslint/parser to get it working with eslint, then I would add @typescript-eslint/recommended as a plugin, then add prettier-eslint for formatting. What's more important is having a really good tsconfig file, I would recommend extending something from https://github.com/tsconfig/bases
-
How to Set Up a Node.js Project with TypeScript
The above configuration file extends the base configuration provided by the TypeScript team for Node.js v16. Additional options or overrides may be included through the compilerOptions property. It also specifies that all the files in the src directory should be included in the program, but everything in the node_modules directory is skipped entirely. Both the include and exclude properties support glob patterns.
What are some alternatives?
bull - Premium Queue package for handling distributed jobs and messages in NodeJS.
node-express-boilerplate - A boilerplate for building production-ready RESTful APIs using Node.js, Express, and Mongoose
kue - Kue is a priority job queue backed by redis, built for node.js.
tsconfig-applier - Welcome to `tsconfig-applier`! This Visual Studio Code extension simplifies the process of selecting and applying TypeScript configuration files (`tsconfig.json`) from the https://github.com/tsconfig/bases repository. With this extension, you can effortlessly browse through available configuration
Qedis
piscina - A fast, efficient Node.js Worker Thread Pool implementation
The gist - BullMQ - Message Queue and Batch processing for NodeJS and Python based on Redis
anvil-ts-upgrade-example - Example repository for Javascript to TypeScript upgrade blog post
node-resque - Node.js Background jobs backed by redis.
volta - Volta: JS Toolchains as Code. âš¡
deno - A modern runtime for JavaScript and TypeScript.