by Supermancho · 5y ago · 0 comments
I would never trust anyone who says this, regardless of who did what with it.
SQS Standard (which was the only for a long time) has historically been a nightmare for almost any use case including job queueing. I love creating a whole separate cache to ensure when SQS delivers message multiple times, that I don't act on them. That's just ONE issue that I don't need to have. When you get into FIFO to avoid that, now your costing is ridiculous at scale AND the (relatively small) number of issues with FIFO that are still outstanding .
eg https://tomgregory.com/3-surprising-facts-about-aws-sqs-fifo...
I second the parent post. I've billions of messages through SQS at a previous job and I can remember having issues with SQS availability exactly once (due to a systemic failure involving DyanmoDB where cascading failures took down almost everything (and all of our integrations) that would have hosed us completely if not for our durable-queue/s3-journal[0] at the edge). SQS is simple to use, does what it says, and has very good SDK support. A++++ Would build a business on top of again!
I've found its trivial to just have a unique ID in the message and just check if the ID already exists in a jobs table to avoid double processing.
I pretty much always have some metadata table needed for the job anyway, so its not like I'm building something extra.
SQS (standard and FIFO) has another problem that precludes using it in one case I have; the 256KB message size limit. Amazon has a Java-only workaround (Amazon SQS Extended Client Library for Java) that will spool large messages to/from S3 -- so clearly my case isn't unreasonable -- but there is nothing for the general case.
For the most expensive tier: 40 cents per million API requests for plain SQS vs 50 cents per million API requests for FIFO SQS.
Like many AWS Services, it started off pretty basic or limited, but gradually and incrementally improved over time.
I started off pretty skeptical, but over time I've grown to be impressed with SQS and SQS FIFO.