Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions,
see Getting Started with Amazon Web Services in China
(PDF).
Publish Amazon SNS messages to Amazon SQS queues using an Amazon SDK
The following code examples show how to:
Create topic (FIFO or non-FIFO).
Subscribe several queues to the topic with an option to apply a filter.
Publish messages to the topic.
Poll the queues for messages received.
- Java
-
- SDK for Java 2.x
-
Demonstrates messaging with topics and queues using Amazon Simple Notification Service (Amazon SNS) and Amazon Simple Queue Service (Amazon SQS).
For complete source code and instructions that demonstrate messaging with topics and queues in Amazon SNS and Amazon SQS, see the full example on
GitHub.
Services used in this example
- Kotlin
-
- SDK for Kotlin
-
This is prerelease documentation for a feature in preview release. It is subject to change.
Demonstrates messaging with topics and queues using Amazon Simple Notification Service (Amazon SNS) and Amazon Simple Queue Service (Amazon SQS).
For complete source code and instructions that demonstrate messaging with topics and queues in Amazon SNS and Amazon SQS, see the full example on
GitHub.
Services used in this example
For a complete list of Amazon SDK developer guides and code examples, see
Using Amazon SNS with an Amazon SDK.
This topic also includes information about getting started and details about previous SDK versions.