If the application server fails to receive messages from the queue, SQS can keep the messages within the queue for up to 14 days. When the consumer becomes available again, it continues the handling and management of messages as per usual.