This feature is in Beta.
Statues queues allow organizations to send photo information messages to AWS Simple Queue Service to be processed by external integrations when a photo reaches a specified photo status, i.e. PENDING
, APPROVED
, DENIED
, DISCARDED
, READY_FOR_DOWNLOAD
, DOWNLOADED
, DONE
, ENROUTE
, ON_HOLD
.
Consuming messages from an SQS Queue
The specifics of interacting with SQS are outside the scope of this documentation because they are well documented by AWS and most major programming languages have existing libraries for interacting with AWS. However, the high-level process for consuming SQS Photo Status Messages is as follows:
Receive a message or a list of messages
Handle debouncing (if relevant). Ideally, message processing is idempotent because Status Queues provide at-least-once delivery, but messages may be received more than once in some situations. If you receive multiple messages with the same combination of
id
andstatus
, you have likely received a duplicate message.Handle order message ordering (if relevant). Status Queues generally deliver status messages in order but this is not strictly guaranteed and AWS FIFO SQS queues are not supported.
Process the message(s).
Delete the message(s) from SQS. Otherwise, the message(s) will continue to be received by your client after the visibility timeout expires.
See Also: