4
5 Comments

How to Get Past the 15 Minute Delay Limit in Amazon SQS

Hi! Scheduling an SQS message for delayed delivery doesn't exist in AWS. Anything past 15 minutes requires you to build your own scheduler.

To solve this, we've built an API for an SQS task scheduler. Call the API with your delay and message, and it will publish to your queue at the scheduled time. It supports delays up to a year, with production level SLA's. You can see how it works here:

https://medium.com/swlh/how-to-get-past-the-15-minute-delay-limit-in-amazon-sqs-fba3c50daf0b?source=friends_link&sk=f0015b683f9df96e4974bb1c37b2d785

Let me know what you guys think, and if anyone would find this useful!

posted to Icon for group Developers
Developers
on October 28, 2020
  1. 2

    Interesting but to be honest not sure I would use it. Here is why:

    • to get around the limit I can just create 2 queues.
    • I create a lambda that reads from queue A and publishes to queue B.
    • we can create as many queues as we want.
    • everything stays in aws which is great for compliance reasons (we need encryption in transit/ rest).
    • integrates nicely with IAM
    • cheap. Almost anything else costs more.

    Yes, maybe the api isn't as convenient but then again, with a simple cdk command I can spin the construct above up.

    I'm not saying ur idea is bad and looking at some other comments there may be a market for it but I cannot imagine a usecase for me that justifies this service as a dependency in my stack.

    1. 1

      Hey, np thanks for the feedback. It's possible to do that, but if you have a lot of messages with long delays, the consumers are mostly passing messages back and forth and not actually consuming anything any more. If a message was delayed 24 hours for example, then that message will have bounced between the two queues almost 100 times.

  2. 1

    Can't you just wrap your object in SQS in something that specifies the earliest time it can be published and if it's not past that time...put it back in the queue with the appropriate delay? Why is using, and depending on, a third party service better?

  3. 1

    Nice! I use Aws SQS for my projects but don't need longer delay. I'll remember your product in case I need it in the futur.

    1. 1

      Thanks man, np and lmk if you do need it in the future!

Trending on Indie Hackers
7 years in agency, 200+ B2B campaigns, now building Outbound Glow User Avatar 89 comments This system tells you what’s working in your startup — every week User Avatar 53 comments 11 Weeks Ago I Had 0 Users. Now VIDI Has Reviewed $10M+ in Contracts - and I’m Opening a Small SAFE Round User Avatar 46 comments The "Book a Demo" Button Was Killing My Pipeline. Here's What I Replaced It With. User Avatar 41 comments I built a desktop app to move files between cloud providers without subscriptions or CLI User Avatar 24 comments My AI bill was bleeding me dry, so I built a "Smart Meter" for LLMs User Avatar 19 comments