Skip to content

Commit 627bd4c

Browse files
committed
Mention content type for SQS
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 6e40681 commit 627bd4c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/openfaas-pro/sqs-events.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,16 @@ On the blog: [How to integrate OpenFaaS functions with managed AWS services](htt
3131

3232
`queueURL` - the URL for your SQS queue - you can specify a comma-separated list of queues to consume from or a single URL of a queue. When you specify multiple queues, the connector will consume from each of them and invoke functions in parallel. The access key and secret key must be the same for all queues given in `queueURL`.
3333

34-
`visibilityTimeout` - Maximum time to keep message hidden from other processors whilst executing function
34+
`visibilityTimeout` - Maximum time to keep message hidden from other processors whilst executing function.
3535

3636
`waitTime` - Time to wait between polling SQS queue for messages.
3737

38-
`maxMessages` - Maximum messages to fetch at once - between 1-10
38+
`maxMessages` - Maximum messages to fetch at once - between 1-10. This limit is part of the AWS SQS service.
3939

4040
`asyncInvocation` - when set to true, every message will be dequeued and transferred to the built-in queueing system in OpenFaaS. The queue system in OpenFaaS is ideal for long-running functions, or functions that need to be retried if a non-200 status code is returned. This means the SQS connector can move onto the next message without holding up the processing of pending messages.
4141

42+
`contentType` - By default, the content type header sent to functions by the connector is `text/plain`. If you need to change this, you can set it to something like such as `application/json` or `application/octet-stream`.
43+
4244
Each time a function is invoked by the connector it will receive the message from the queue as the HTTP body.
4345

4446
It'll also receive two HTTP headers:

0 commit comments

Comments
 (0)