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
The hardest part isn't building anymore User Avatar 56 comments I sold $6,773 in 2 weeks, with almost no existing community. User Avatar 56 comments Ferguson is LIVE on ProductHunt today... so I audited their homepage first! User Avatar 37 comments Why Remote Teams Stop Talking (And Don't Even Notice It) User Avatar 35 comments Built a local-first Amazon profit-by-SKU + QuickBooks/Xero journal tool. Looking for founding users. User Avatar 32 comments Before you build another feature, use this workflow User Avatar 30 comments