load_sqs
Loads bytes from Amazon SQS queues.
Description
Amazon Simple Queue Service (Amazon SQS) is a fully managed message
queuing service to decouple and scale microservices, distributed systems, and
serverless applications. The load_sqs
operator reads bytes from messages of an
SQS queue.
The load_sqs
operator uses long polling, which helps reduce your cost of using SQS
by reducing the number of empty responses when there are no messages available
to return in reply to a message request. Use the poll_time
option to adjust
the timeout.
queue: str
The name of the queue to use.
poll_time = duration (optional)
The long polling timeout per request.
The value must be between 1 and 20 seconds.
Defaults to 3s
.
Examples
Read JSON messages from the SQS queue tenzir
:
Read JSON messages with a 20-second long poll timeout: