1 Answer
- Newest
- Most votes
- Most comments
0
Not sure why you are receiving these errors. I do not think the issue is with SQS capacity, it more looks like some issue on the client side. Maybe you should retry if this happens?
Saying that, why aren't you using EventBridge Scheduler, which can handle millions of recurring and one time events. No need for you DDB table, the function that wakes up every minute and the queue. EB Scheduler can invoke your dispatcher function directly.
Relevant content
- asked 3 months ago
- asked 7 months ago
- asked 7 months ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
Thanks for your answer, I revamped my implementation to avoid sending too many message in the same lambda process and used batching to reduce SQS calls it looks like I do not have the ECONNRESET error anymore.
Unfortunately EventBridge Scheduler doesn't totally fit my needs since it has a 60-second precision and for the purpose of my application I need something closer to a 1-second precision. But maybe combined with a sleep function in the dispatcher it could do the job, I'll further dig into it to!