News for hackers. Stuff that matters.
Re:Show HN: TaskBotJS – TypeScript and JavaScript background... by askmike on Friday July 06, 2018 @12:24PM (#17472680)
You can also do that with sqlite: have workers query for data and lock records when they are working on it. (people have been implementing job queues in SQL based environments for decades). The point of using sqlite is that it's not something you need to install and manage separately, or something that acts as a broker. (sqlite would be very slow as the workers need to poll for jobs).
Re:Show HN: TaskBotJS – TypeScript and JavaScript background... by eropple on Friday July 06, 2018 @12:28PM (#17472724)
Polling is not the worst thing in the world; when using reliable queueing and BRPOPLPUSH TaskBotJS does poll, and Redis handles it okay. SQLite is more just emphatically Not A Good Network Database, and the developers themselves say so.