|« PreviousNext »|
|Did this page help you? Yes | No | Tell us about it...|
In the 2009-02-01 API version of Amazon SQS, only one action—
ReceiveMessage—supports batch processing, i.e., processing more than one message with a single call. With the 2011-10-01 API version, Amazon SQS adds batch functionality for sending messages, deleting messages, and changing message visibility timeout values. To send up to ten messages at once, use the
SendMessageBatch action. To delete up to ten messages with one API call, use the
DeleteMessageBatch action. To change the visibility timeout value for up to ten messages, use the
To use the new batch actions, you must use either the Query API or a Software Development Kit (SDK) that supports the new batch actions. Check your specific SDK's documentation to see whether it supports the new Amazon SQS batch actions. The Amazon SQS console does not currently support the batch API actions.
For details and examples of the three batch API actions, go to the Amazon Simple Queue Service API Reference:
You can send a message as large as 262,144 bytes (256 KB) with
SendMessageBatch. However, the total size of all the messages
that you send in a single call to
SendMessageBatch cannot exceed
262,144 bytes (256 KB).