Messages are stored in SQS in what is called a queue. A queue is a temporary repository for messages that are awaiting processing. When you create a queue, you need to specify how long you want the messages to be stored (in seconds). The maximum storage time for a message is 14 days.