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
I shipped 3 features this weekend based entirely on community feedback. Here's what I built and why. User Avatar 146 comments $36K in 7 days: Why distribution beats product (early on) User Avatar 127 comments I'm a lawyer who launched an AI contract tool on Product Hunt today — here's what building it as a non-technical founder actually felt like User Avatar 126 comments Finally reached 100 users in just 12 days 🚀 User Avatar 122 comments I realized showing problems isn’t enough — so I built this User Avatar 32 comments Maintaining open-source projects that millions use User Avatar 27 comments