Working with Amazon SQS APIs - Amazon Simple Queue Service
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).

Working with Amazon SQS APIs

This section provides information about constructing Amazon SQS endpoints, making query API requests using the GET and POST methods, and using batch API actions. For detailed information about Amazon SQS actions—including parameters, errors, examples, and data types, see the Amazon Simple Queue Service API Reference.

To access Amazon SQS using a variety of programming languages, you can also use Amazon SDKs, which contain the following automatic functionality:

  • Cryptographically signing your service requests

  • Retrying requests

  • Handling error responses

For command line tool information, see the Amazon SQS sections in the Amazon CLI Command Reference and the Amazon Tools for PowerShell Cmdlet Reference.

Amazon SQS APIs with Amazon JSON protocol

Amazon SQS uses Amazon JSON protocol as the transport mechanism for all Amazon SQS APIs on the specified Amazon SDK versions. Amazon JSON protocol provides a higher throughput, lower latency, and faster application-to-application communication. Amazon JSON protocol is more efficient in serialization/deserialization of requests and responses when compared to Amazon query protocol. If you still prefer to use the Amazon query protocol with SQS APIs, see What languages are supported for Amazon JSON protocol used in Amazon SQS APIs? for the Amazon SDK versions that support Amazon SQS Amazon query protocol.

Amazon SQS uses Amazon JSON protocol to communicate between Amazon SDK clients (for example, Java, Python, Golang, JavaScript) and the Amazon SQS server. An HTTP request of an Amazon SQS API operation accepts JSON formatted input. The Amazon SQS operation is executed, and the execution response is sent back to the SDK client in JSON format. Compared to Amazon query, Amazon JSON is simpler, faster, and more efficient to transport data between client and server.

  • Amazon JSON protocol acts as a mediator between the Amazon SQS client and server.

  • The server doesn’t understand the programming language in which the Amazon SQS operation is created, but it understands the Amazon JSON protocol.

  • The Amazon JSON protocol uses the serialization (convert object to JSON format) and de-serialization (convert JSON format to object) between Amazon SQS client and server.

For more information about Amazon JSON protocol with Amazon SQS, see Amazon SQS Amazon JSON protocol FAQs.

Amazon JSON protocol is available on the specified Amazon SDK version. To review SDK version and release dates across language variants, see the Amazon SDKs and Tools version support matrix in the Amazon SDKs and Tools Reference Guide