{"by":"memset","descendants":156,"id":40837610,"kids":[40838606,40838082,40841750,40838032,40838372,40838269,40841227,40838725,40840916,40838206,40840183,40840044,40838384,40840839,40838832,40838150,40838862,40840223,40839342,40838385,40838079,40840683,40845111,40838257,40838115,40838096,40840024,40884753,40841872,40838357,40838440,40843354,40839282,40838598,40837943,40844083,40842654,40837985,40839227],"score":656,"text":"Hi! I wanted to share an open source API-compatible replacement for SQS. It&#x27;s written in Go, distributes as a single binary, and uses SQLite for underlying storage.<p>I wrote this because I wanted a queue with all the bells and whistles - searching, scheduling into the future, observability, and rate limiting - all the things that many modern task queue systems have.<p>But I didn&#x27;t want to rewrite my app, which was already using SQS. And I was frustrated that many of the best solutions out there (BullMQ, Oban, Sidekiq) were language-specific.<p>So I made an SQS-compatible replacement. All you have to do is replace the endpoint using AWS&#x27; native library in your language of choice.<p>For example, the queue works with Celery - you just change the connection string. From there, you can see all of your messages and their status, which is hard today in the SQS console (and flower doesn&#x27;t support SQS.)<p>It is written to be pluggable. The queue implementation uses SQLite, but I&#x27;ve been experimenting with RocksDB as a backend and you could even write one that uses Postgres. Similarly, you could implement multiple protocols (AMQP, PubSub, etc) on top of the underlying queue. I started with SQS because it is simple and I use it a lot.<p>It is written to be as easy to deploy as possible - a single go binary. I&#x27;m working on adding distributed and autoscale functionality as the next layer.<p>Today I have search, observability (via prometheus), unlimited message sizes, and the ability to schedule messages arbitrarily in the future.<p>In terms of monetization, the goal is to just have a hosted queue system. I believe this can be cheaper than SQS without sacrificing performance. Just as Backblaze and Minio have had success competing in the S3 space, I wanted to take a crack at queues.<p>I&#x27;d love your feedback!","time":1719760268,"title":"Show HN: Drop-in SQS replacement based on SQLite","type":"story","url":"https://github.com/poundifdef/SmoothMQ"}