1

In the Amazon SQS queue there are many of messages. Is it possible in the AWS Step Functions workflow receiving message from the SQS queues until empty then continue the workflow?

here the workflow here

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
  • You'd probably need to use an AWS Lambda function to check the CloudWatch Metrics on the queue. Can you tell us more about your situation? _Why_ do you want to wait for the SQS queue to be empty? – John Rotenstein Aug 11 '22 at 04:23
  • because we need all data from process in receiving messages in queue before process flow in lambda2 – Chea Chandarith Aug 11 '22 at 04:55
  • You'll probably need to create a loop that calls an AWS Lambda function to check the metric. If the queue is not empty, configure Step Functions to wait a while before looping again. – John Rotenstein Aug 11 '22 at 04:59
  • You could do this without step functions, if you don't want to use them. – Marcin Aug 11 '22 at 05:32

0 Answers0