So we have a sns → sqs → lambda .
Due to a rushed go live deployment orchestrated by an incompetent corporate andy manager, we are facing various problems due to inadequate scoping on the deployment.
Anyways for my specific issue, I have 30k messages in a dead queue and I need to move them to the live queue. We had a timed task with event bridge (done by a lambda) that would move the messages from the dead queue to the live queue but that task is timing out due to the large amount of messages needed to be pull.
Why are there 30k messages in the first place? Due to the rushed launch.
What should I do at this point?
-
I heard you can subscribe the dead queue to a consumer? Should I subscribe the dead queue to the consumer (lambda)?
-
Increase the memory and timeout of the lambda that is scheduled under event bridge and hopefully it won’t time out? Increase the visibility timeout of the messages to some large amount when pulling them as well?
-
I tried testing with a script to grab sqs messages, send them to the live queue, and delete them but this is taking forever. I tried it in a dev environment with a similar amount of sqs messages and over night it only processed about half. (~16,000)
Yeah I know there are probably bad practices here but the team is hopefully trying to get all 30,000k messages processed.
Anyways I am at wit’s end so just hoping for some helpful advice.
Related discussions:
- SNS and SES for OTP auth of an escorts site
- SQS + Lambda - alert on batchItemFailures count?
- Using SES to send emails on behalf of customers, but I want to be able to send that customer a notification when that email is opened
- SES production access rejected — despite following all the best practices — please help!
- SQS to S3: One file per message or batch multiple messages?