6 ms·
Ask HN: What Is the SQLite of Queues?
I love how simple and lightweight sqlite is.
I'm looking for an open source queue solution with similar qualities. All I really want are topics/messages/publishers/subscribers. That's it.
I do not want to run ZooKeeper.
- withinboredom 2y agobeanstalkd might be what you are looking for. It's ancient but solid af. I know of systems still running today that use it. For something more modern, check out Nats—and if you are using Go, you can embed the server in your executable.
- illuminant 2y agohttps://github.com/yudhasubki/blockqueue https://github.com/yudhasubki/blockqueue Literally, the sqlite of queues.
- yamumsahoe 2y agothis is redis for me.
- brudgers 2y agoSerious engineering question: Will SQLite work for your application? I’m sure there are better solutions on paper and for performance under common workloads. But if SQLite is good enough for your use case, it’s good enough for your use case. It probably isnt. Good luck.
- deleted 2y ago[deleted]
- turtle_heck 2y agoWas wondering this for OP as well, I've used a database as a queue for small projects in the past and it was fine.
- caprock 2y agoZeroMQ - https://zeromq.org/ https://zeromq.org/
- ttymck 2y agoNotably not a persistent queue, correct?
- toast0 2y ago/var/queue/
- ttymck 2y agoElasticMQ: https://github.com/softwaremill/elasticmq https://github.com/softwaremill/elasticmq
- ivanr 2y agoTry NATS @ https://nats.io https://nats.io It's a single binary and can operate as a message bus, persistent queue, KV store, object store, provide services, and so on.
- Zambyte 2y agoI really like NATS, but it's worth noting that it's only really "the SQLite of queues" in the context of their Go client, which can embed a NATS server into an application. Otherwise I would really say it is more like the Postgres of queues (still great, but potentially not what OP is looking for)
- rl1987 2y agoIf you need them for IPC within same host then POSIX queues (see https://pubs.opengroup.org/onlinepubs/7908799/xsh/mqueue.h.html https://pubs.opengroup.org/onlinepubs/7908799/xsh/mqueue.h.h...) are a thing. Redis can be used as simple message queue as well.
- enjoyyourlife 2y agoRabbitMQ
- deterministic 2y agoSQLite is the SQLite of queues. Simply use a table per queue. And use your choice of SQL to implement the types of queues you want.
- kjlojpo 2y ago[dead]
- bbkj 2y ago[dead]