sqsReceiver("us-east-1", session, data) and bind it
to streams_sqs. Seal a regional AWS session with sqs:ReceiveMessage,
sqs:DeleteMessage, and sqs:SendMessage on one queue. Bind the mount and
receiver to the same label.
Initialize streams.sqs with
{ queue: "https://sqs.us-east-1.amazonaws.com/111122223333/orders" }.
The queue URL is fixed after initialization. Use a fresh mount if the queue
is replaced, including replacement under the same URL.
The app receives at most one message per request, with a ten-second wait
and 120-second visibility window. It retains at most 16 KiB of UTF-8 body
as a File, keyed by the queue’s MessageId. The wire answer is bounded to
36 KiB. Landing the event also submits DeleteMessage for the exact
delivery receipt, which can dispatch only after that transaction commits.
If the message returns, its current receipt can settle the same retained
event. Oversized or invalid deliveries remain unacknowledged. The queue
owns delivery position, visibility and redrive. Empty reads and remote
deletion leave retained Files intact.
Call publish({ command, message }) on a standard queue. Supply group
for a FIFO queue. FIFO sends use the command as the provider deduplication ID.
Both queue kinds get at most one send per task. The same
command and message recover the same retained disposition.
publishStatus({ command }) reports the provider’s message ID on acceptance.
An ambiguous send stays unknown.
For provider delivery terminology, see the
ReceiveMessage API
and DeleteMessage API.