Re:SQL Maxis: Why We Ditched RabbitMQ and Replaced It with a...
by zamalek on Tuesday April 11, 2023 @01:25PM
(#35528255)
The problem with a queue on SQLite is that every successful read implies a write. SQLite is fast enough that it may not matter, though.
[ Parent
| on HN ]
Re:SQL Maxis: Why We Ditched RabbitMQ and Replaced It with a...
by jacobr1 on Tuesday April 11, 2023 @01:33PM
(#35528354)
We used sqlite for a queue at a prior startup - enabling the WAL was critical to maintain disk throughput.
Re:SQL Maxis: Why We Ditched RabbitMQ and Replaced It with a...
by mst on Wednesday April 12, 2023 @01:30AM
(#35535396)
I once saw WAL turned off to make a sqlite queue perform better.
But that was ... gremlins. More than one person tried to figure out wtf was going one and eventually it was better business wise to declare 'gremlins' and everybody involved in the incident has been annoyed about not figuring it out since.
Re:SQL Maxis: Why We Ditched RabbitMQ and Replaced It with a...
by simplotek on Tuesday April 11, 2023 @01:52PM
(#35528637)
> The problem with a queue on SQLite is that every successful read implies a write.
SQLite also supports in-memory databases with shared cache.
https://www.sqlite.org/inmemorydb.html
If a message queue does not require any form of persistence, writes don't sound like an issue.
Re:SQL Maxis: Why We Ditched RabbitMQ and Replaced It with a...
by avinassh on Tuesday April 11, 2023 @02:28PM
(#35529189)
But this is purely in-memory with no disk persistence. That’s quite risky
Re:SQL Maxis: Why We Ditched RabbitMQ and Replaced It with a...
by michaelcampbell on Tuesday April 11, 2023 @04:36PM
(#35531192)
Not to be coy, but it only is if it is. For this application I'd agree, but there are plenty of apps that want queues for in-memory use, and if the thing that holds the memory for the queue dies, chances are the whole ecosystem has.
Sometimes this is fine.
Re:SQL Maxis: Why We Ditched RabbitMQ and Replaced It with a...
by nerpderp82 on Tuesday April 11, 2023 @08:12PM
(#35533470)
I just did a quick test, I am seeing over 1k commits per second when being driven from Python 3.11 on an old macbook pro.