01Chapter 1: Why asynchronous messaging: decoupling producers and consumersThis chapter assumes you know basic AWS concepts (accounts, regions, IAM users and roles), can read JSON, and can follow short Python examples that use boto3. You also need a general idea of what a distributed application is. You do not need any SQS or SNS experience.2 min read
03Chapter 3: Sending, receiving, and deleting messagesThis chapter assumes you have an AWS account with credentials configured, know basic JSON, and can read Python with boto3. You should also know that an SQS queue stores messages until a consumer processes them.2 min read
05Chapter 5: Long polling to cut empty responses and costThis chapter assumes you can send and receive SQS messages with boto3 and understand the visibility timeout from the previous chapter. You also need basic AWS IAM knowledge.2 min read
06Chapter 6: Delay queues, message timers, and retention periodThis chapter assumes you can create an SQS queue and send, receive, and delete messages with boto3. It also assumes you know what a visibility timeout is. Here you will control two things: when a message first becomes visible, and how long SQS keeps it.2 min read
07Chapter 7: Standard and FIFO queues comparedThis chapter assumes you can create an SQS queue and send, receive, and delete messages, as covered in the earlier chapters. It compares the two queue types and gives criteria for choosing one.2 min read
08Chapter 8: Duplicates and out-of-order delivery: writing idempotent consumersThis chapter assumes you can send, receive, and delete SQS messages with boto3, and that you know what a visibility timeout is. It covers why a standard queue can deliver a message more than once, how to write a consumer that tolerates this, and how FIFO queues reduce the problem.2 min read
09Chapter 9: Dead-letter queues and redrive policiesThis chapter assumes you know how to send, receive, and delete SQS messages, and how the visibility timeout hides a message while a consumer works on it. It also assumes you can read basic boto3 code.2 min read
10Chapter 10: Amazon SNS topics and publishing messagesThis chapter assumes you know basic AWS concepts (accounts, regions, IAM), can read JSON, and can follow Python with boto3. It also assumes you have met SQS queues from the earlier chapters.2 min read
11Chapter 11: Subscribing endpoints: SQS, Lambda, HTTP/S, email, and moreThis chapter assumes you can publish to an SNS topic and have boto3 configured with permissions for SNS, SQS, and Lambda. A subscription ties one endpoint to a topic. Each message published to the topic is then delivered to every confirmed subscription whose filter policy matches it.2 min read
12Chapter 12: Letting SNS write to SQS: queue access policiesThis chapter assumes you can create an SQS queue and an SNS topic with boto3, and that you can read an IAM policy in JSON. You will learn why a new subscription delivers nothing until the queue allows it, and how to write a policy that trusts only one topic.2 min read
13Chapter 13: The fan-out pattern: one event, many queuesThis chapter assumes you can create SQS queues and SNS topics, know what a visibility timeout and a dead-letter queue are, and have seen the queue access policy for SNS. The examples use Python with boto3.2 min read
14Chapter 14: Filtering messages per subscriberThis chapter assumes you can create an SNS topic, subscribe an SQS queue to it, and publish with boto3. If not, review the fan-out chapter first. Here you will make each subscriber receive only the messages it cares about.2 min read
15Chapter 15: Raw message delivery and the SNS message envelopeThis chapter assumes you can create an SNS topic and subscribe an SQS queue to it, and that you know the fan-out pattern from the previous chapters. You should also be comfortable reading JSON in Python.2 min read
16Chapter 16: SNS delivery retries and subscription dead-letter queuesThis chapter assumes you can already create an SNS topic, subscribe an SQS queue to it, and read the SQS redrive policy from the earlier chapters. It covers what SNS does when delivery fails, and how Lambda reports which messages in a batch failed.2 min read
17Chapter 17: Encrypting queues and topicsThis chapter assumes you can create SQS queues and SNS topics with boto3, read IAM and KMS policy JSON, and know what a CloudWatch alarm is.2 min read
18Chapter 18: Choosing between SQS, SNS, and combinationsThis chapter assumes you know how SQS queues hold messages until a consumer deletes them. It also assumes you know how SNS topics push a published message to every subscriber, and that you have read the earlier chapters on fan-out, filter policies, and dead-letter queues. Here you turn that knowledg3 min read