Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 1.34 KB

chan_sqs.md

File metadata and controls

46 lines (29 loc) · 1.34 KB

sqs

In this implementation, message and subscription topics are ignored.

Options

For now, the target queue URL is provided when the channel is created. Eventually perhaps the queue URL could be the message/subscription topic.

  1. Endpoint (string) is optional AWS service endpoint, which can be provided to point to a non-standard endpoint (like a local implementation).

  2. QueueURL (string) is the target SQS queue URL.

  3. DelaySeconds (int64) is the publishing delay in seconds.

    Defaults to zero.

  4. VisibilityTimeout (int64) is the default timeout for a message reappearing after a receive operation and before a delete operation. Defaults to 10 seconds.

  5. MaxMessages (int) is the maximum number of message to request.

    Defaults to 1.

  6. DoNotDelete (bool) turns off automatic message deletion upon receipt.

  7. BufferSize (int) is the size of the underlying channel buffer. Defaults to DefaultChanBufferSize.

  8. MsgDelaySeconds (bool) enables extraction of property DelaySeconds from published message's payload, which should be a JSON of an map.

    This hack means that a test cannot specify DelaySeconds for a payload that is not a JSON representation of a map. ToDo: Reconsider.

  9. WaitTimeSeconds (int64) is the SQS receive wait time.

    Defaults to one second.