QUERY Batch Request Format

Batch Requests

Batch requests are very similar to regular requests, except that it allows multiple service calls to be sent in one request. Batch requests save on HTTP turnaround time compared to making multiple individual service invocations.

Tip:

For web pages with multiple thumbnail images on the same page, reduce server-side latency by aggregating multiple thumbnail requests into one batch request.

All parameters except the core AWS parameters (AWSAccessKeyId, Timestamp, Signature, Action) are batched according to the following rules.

Sample Batch Request #1

The following example shows a batch QUERY request that returns three thumbnails for the given three URLs and sizes.

Sample Request

http://ast.amazonaws.com/Xino?

                    AWSAccessKeyId=
                    [your AWSAccessKeyId]
                    &Timestamp=
                    [timestamp now, format as described in http://www.w3.org/TR/xmlschema-2/#dateTime]
                    &Signature=
                    [signature calculated from request]
                    &Action=
                    Thumbnail
                    &Thumbnail.1.Url=
                    [website #1]
                    &Thumbnail.2.Url=
                    [website #2]
                    &Thumbnail.3.Url=
                    [website #3]
                    &Thumbnail.1.Size=
                    Large
                    &Thumbnail.2.Size=
                    Small
                    &Thumbnail.3.Size=
                    Large
                

Sample Batch Request #2

The following example shows a batch QUERY request that returns three large thumbnails for the given three URLs.

Sample Request

http://ast.amazonaws.com/Xino?

                    AWSAccessKeyId=
                    [your AWSAccessKeyId]
                    &Timestamp=
                    [timestamp now, format as described in http://www.w3.org/TR/xmlschema-2/#dateTime]
                    &Signature=
                    [signature calculated from request]
                    &Action=
                    Thumbnail
                    &Thumbnail.1.Url=
                    [website #1]
                    &Thumbnail.2.Url=
                    [website #2]
                    &Thumbnail.3.Url=
                    [website #3]
                    &Thumbnail.Shared.Size=
                    Large