02Chapter 2: Amazon SQS queues: what they are and how to create oneThis chapter assumes you know the basics of AWS accounts, regions, and IAM, can read JSON, and can read short Python scripts. The examples use Python with boto3, the AWS SDK for Python. You will learn what an SQS queue is, which settings matter at creation time, and how to create a main queue with a5 min read
03Chapter 3: Sending, receiving, and deleting messagesThis chapter assumes you can create an SQS queue (the previous chapter covered that), have boto3 configured with credentials and a region, and can read basic Python and JSON. Here you will follow one message through its life: send, receive, delete. You will also see the mistakes that cause lost or r4 min read
04Chapter 4: Visibility timeout: how SQS hides messages while you workThis chapter assumes you can send and receive SQS messages with boto3, know what a queue's receipt handle is, and have read the previous chapter on the send, receive, and delete lifecycle. It covers what the visibility timeout does, how to set and change it, and the errors that come from setting it 6 min read
05Chapter 5: Long polling to cut empty responses and costThis chapter assumes you can send and receive SQS messages with boto3, and that you know a received message stays hidden until it is deleted or its visibility timeout expires. Here you will see how a ReceiveMessage call can wait for messages, and why that is usually the right default.4 min read
06Chapter 6: Delay queues, message timers, and retention periodThis chapter covers two settings that control when a message becomes available and one that controls how long it survives. You should already know how to send, receive, and delete messages, and how the visibility timeout works. Here you will learn to postpone delivery, to choose between a queue-wide4 min read
07Chapter 7: Standard and FIFO queues comparedThis chapter assumes you can create a queue and send, receive and delete messages, and that you know what a visibility timeout is. The examples use Python with boto3.4 min read
09Chapter 9: FIFO message groups and deduplication IDsThis chapter assumes you know how to create an SQS queue, send and receive messages, and how the visibility timeout works. It also assumes you have read the comparison of standard and FIFO queues. Examples use Python with boto3.5 min read
10Chapter 10: Dead-letter queues and redrive policiesThis chapter assumes you know the SQS message lifecycle (send, receive, delete), how the visibility timeout works, and that standard queues deliver at least once. The examples use Python with boto3.4 min read
11Chapter 11: Amazon SNS topics and publishing messagesThis chapter assumes you can call AWS APIs with boto3 and have credentials configured. You should also know what an SQS queue is from the earlier chapters. By the end you will be able to create a topic, publish single and batched messages with attributes, and diagnose the most common publishing erro3 min read
12Chapter 12: Subscribing endpoints: SQS, Lambda, HTTP/S, email, and moreAn SNS topic does nothing by itself. It delivers messages to its subscriptions, and each subscription pairs a protocol with an endpoint. This chapter covers the protocols, how each one is confirmed and authorized, and the errors that most often leave a subscription silent.4 min read
13Chapter 13: Letting SNS write to SQS: queue access policiesThis chapter assumes you can create an SQS queue and an SNS topic with boto3 and read an IAM policy document. Fan-out, which a later chapter covers, depends on the permission described here.3 min read
14Chapter 14: The fan-out pattern: one event, many queuesThis chapter assumes you can create an SQS queue and an SNS topic, and that you know visibility timeouts and dead-letter queues from earlier chapters. You also need an IAM identity that can call SNS and SQS in one account and region.4 min read
15Chapter 15: Filtering messages per subscriberThis chapter covers how SNS subscription filter policies decide which subscribers get which messages. It assumes you can create a topic, subscribe an SQS queue, and publish with boto3, as in the fan-out chapter. You should also know that an SQS queue needs an access policy before SNS can write to it3 min read
16Chapter 16: Raw message delivery and the SNS message envelopeThis chapter assumes you can publish to an SNS topic and subscribe an SQS queue to it, as covered in the fan-out chapters. You should also be comfortable reading JSON in Python. Here you will see what SNS puts in the queue by default, what changes when you turn on raw message delivery, and how to sw3 min read
17Chapter 17: SNS delivery retries and subscription dead-letter queuesThis chapter assumes you can create SNS topics and subscriptions, you know how an SQS queue access policy works, and you have read the earlier chapters on SQS dead-letter queues and fan-out. The examples use Python with boto3.3 min read
19Chapter 19: Encrypting queues and topicsThis chapter assumes you can create SQS queues and SNS topics and subscribe a queue to a topic, as covered in the earlier chapters. You should also know what an IAM policy and a KMS key are. The examples use Python with boto3.4 min read
20Chapter 20: Monitoring queue depth, message age, and dead-letter queuesThis chapter assumes you can create SQS queues, send and receive messages, and have configured a dead-letter queue (DLQ) with a redrive policy. You should also know the basics of CloudWatch (metrics, namespaces, dimensions, alarms) and have boto3 installed with credentials that can call CloudWatch a5 min read
21Chapter 21: Choosing between SQS, SNS, and combinationsThis chapter assumes you have read the earlier chapters. You should know how an SQS queue stores messages, how the visibility timeout and dead-letter queues work, how an SNS topic publishes to subscribers, and how an SNS-to-SQS fan-out is wired together. Here you use that knowledge to decide which s7 min read