damoclark / node-persistent-queue

Simple SQLite backed Queue for long running sequential tasks in Node.js using setImmediate()
Apache License 2.0
37 stars 12 forks source link

Using this library in a Kubernetes environment #24

Open robross0606 opened 2 months ago

robross0606 commented 2 months ago

We've been exploring use of this library in a Kubernetes (K8s) environment, but the choice of Sqlite as a back end is possibly preventing that use:

Was any thought given here to this type of environment? I'm curious why sqlite was chosen over directly using the file system for persistence. Any thoughts on alternate back ends?

damoclark commented 2 months ago

The library was never intended for a distributed environment. It was built to serve a Node Red msg-queue node. From memory, I considered direct filesystem storage, but using sqlite saved me from all the low-level implementation details for maintaining a reliable persistent storage queue.