You can quickly get started with SQS by using the AWS SDKs, samples, and how-tos. From Java and Ruby to .NET and Python, you can use SQS in your applications in a few lines of code. Organized by the language of your choice, below, you'll find samples, snippets, and other resources to help you get started with message queuing, including how to create messages, issue requests, send/receive messages, and more.

» What's New

» For Developers

» Blogs

» Tutorials

» Videos

» Whitepapers

» Other Resources

Get Started with AWS for Free

Create a Free Account
Or Sign In to the SQS Console

The Amazon SQS Free Tier provides you with 1 million requests per month at no charge.

View AWS Free Tier Details »

Building an Immersive VR Streaming Solution on AWS

This blog walks through the design and implementation of a full end-to-end immersive streaming solution architecture. A camera captures content, and with the help of a contribution encoder, publishes a live stream in equirectangular format. When the live event is finished, the VOD asset is published to S3. An S3 event is then published to SQS. The encoding fleet processes the read messages from the SQS queue, processes the VOD clips, and stores them in the S3 bucket.

Read the blog

The Developer Guide introduces you to message queuing with Amazon SQS and provides tips and links to advanced product features and resources.

HTML | PDF | Kindle

1. First, install the AWS SDK for Java.

3. (Optional) If you want Java Message Service (JMS) 1.1 compatibility, install the Amazon SQS Java Messaging Library.

4. (Optional) If you want to use message payloads larger than 256KB, install the Amazon SQS Extended Client Library for Java.

2. Next, get SQS Java samples on GitHub (also included in the Java SDK).

Get SQS Java Samples From GitHub

1. First, install the AWS SDK for Ruby.

2. Next, get SQS Ruby samples on GitHub.

Get SQS Ruby Samples From GitHub

1. First, install the AWS SDK for Python.

2. Next, use the Boto (Python) tutorial.

Read the SQS Python Tutorial

1. First, install the AWS SDK for .NET.

2. Next, get the .NET integration tests on GitHub.

Get SQS .NET Integration Tests from GitHub

1. First, install the AWS SDK for PHP.

2. Next, see the PHP recipes for using SQS.

See SQS PHP Recipes

1. First, install the AWS SDK for JavaScript/Node.

2. Next, see JavaScript/Node recipes and snippets for SQS.

See JavaScript/Node Snippets and Recipes

In this tutorial, you will learn how to set up asynchronous messaging with Amazon Simple Queue Service (Amazon SQS). Amazon SQS is the AWS service that allows application components to communicate in the cloud. You will use the Amazon SQS console to create and configure a message queue, send a message, receive and delete that message, and then delete the queue.

Try the Tutorial

In this tutorial, you will implement a fanout messaging scenario using Amazon Simple Notification Service (SNS) and Amazon Simple Queue Service (SQS). In this scenario, messages are "pushed" to multiple subscribers, which eliminates the need to periodically check or poll for updates and enables parallel asynchronous processing of the message by the subscribers.

Try the Tutorial

Learn how you can use Amazon SQS and Amazon SNS fully managed messaging to decouple your application architecture, enable asynchronous communication between different services, and eliminate the pain associated with operating dedicated messaging software and infrastructure.

Sparkpost is a trusted email service provider, delivering 25% of the world's non-spam email. They faced unique challenges in designing a scalable system that could handle large volumes of outbound mail for their customers, with MTA IP addresses the primary constraint. In this video, George Schlossnagle, Sparkpost CTO explains how they broke down a monolith to create a loosely coupled architecture on AWS using ELB, EC2 and SQS.

How can enterprises deploy more quickly and reliably? Ajilon has created a pipleline that can get code, patches and even rebaselined OSs into production in just minutes - whenever they want!

Ajilon: Automating continuous delivery in the enterprise

CoreLogic: Spotting scalable architectures for batch workloads

Qantas: Building a highly-available, multi-AZ CIFS Cluster on AWS

Ocado: Creating a self-service portal to help developers build secure, loosely coupled microservices

On this episode of "This is My Architecture", Lee from Zapproved demonstrates how they use Step Functions, Lambda, and SQS to automate data processing.

Zapproved: Automating data processing with Step Functions, Lambda, and SQS

On this episode of "This is My Architecture", GoPro demonstrates how they power their cloud media platform with ECS, SQS, Terraform, Elastic Transcoder, and lifecycle hooks.

GoPro: Editing media on the “go” with ECS, SQS, Elastic Transcoder, and Auto Scaling lifecycle hooks

BBC present their iPlayer solution that uses Amazon S3, taking as input content from the broadcast chain, adds broadcast time series data and publishes formatted content files for access by end users.

BBC: How iPlayer uses Amazon S3 multi-part copy and SQS to power their broadcast pipeline

Amazon Simple Queue Service (SQS) fully managed message queues make it easy to decouple and scale microservices, distributed systems, and serverless applications.

Introducing Amazon Simple Queue Service (SQS) FIFO Queues

Introducing Amazon Simple Queue Service (SQS) Server-side Encryption

This paper briefly outlines how companies can use AWS to create HIPAA (Health Insurance Portability and Accountability Act)-compliant applications. It focuses on the HIPAA Privacy and Security Rules for protecting Protected Health Information (PHI), how to use AWS to encrypt data in transit and at rest, and how AWS features can be used to meet HIPAA requirements for auditing, back-ups, and disaster recovery.

Read the Whitepaper

All systems that have to scale to meet increasing load while continuing to provide reliable and predictable performance must satisfy some unique requirements. Amazon SQS has many features specifically designed to enable you to build scalable, reliable and high-performing EC2 applications. This paper provides a brief overview of the capabilities of SQS and illustrates how it can used to build scalable EC2 applications with a simple but fairly common scenario.

Read the Whitepaper
Read SQS Articles and Tutorials