Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Note

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:

  1. Receive a message or a list of messages

  2. 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 and status, you have likely received a duplicate message.

  3. 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.

  4. Process the message(s).

  5. 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:

Page Tree
root@self
startDepth1
sortnatural