How might you do this?

You need to process long-running jobs once and only once. How might you do this?

You need to process long-running jobs once and only once. How might you do this?

A.
Use an SNS queue and set the visibility timeout to long enough for jobs to process.

B.
Use an SQS queue and set the reprocessing timeout to long enough for jobs to process.

C.
Use an SQS queue and set the visibility timeout to long enough for jobs to process.

D.
Use an SNS queue and set the reprocessing timeout to long enough for jobs to process.

Explanation:
The message timeout defines how long after a successful receive request SQS waits before allowing jobs to be seen by
other components, and proper configuration prevents duplicate processing.
http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/MessageLifecycle.html



Leave a Reply 1

Your email address will not be published. Required fields are marked *


Sadeel Anjum

Sadeel Anjum

C
visibility timeout is the period a message is unavailable to other for. so C will help us , and there is no SNS Queue.