by 00000000005 · 4y ago · 0 comments
Linux file move is atomic, which means file system based queues are perfectly viable. Just save one message per file. Move the file to a different directory when it changes state.
I built a prototype queue around this mechanism. Performance was bound to the disks ability to create small files, around 30,000 messages per second.
This sort of performance rivals some of much more sophisticated and complex queuing systems, but has zero configuration.
It's surprisingly difficult to write something that stores changing data on disk correctly and durably.
If you roll your own, that's very hard to get right. I wouldn't have confidence in such a system that I've built myself.