Purpose of SQS Queues in Docker for AWS

The queues are used as part of the upgrade process: When AWS replaces an instance, the instance can learn of its impending doom and gracefully exit itself from the swarm and manager quorum.