Amazon SQS
Convoy supports ingesting events from SQS queues. This is currently only supported in outgoing projects.
Connecting to your SQS queue
To ingest events using Amazon SQS, follow the steps outlined below:
Create an IAM User for authenticating with the SQS Queue and attach the AmazonSQSFullAccess policy to the user
Under the security credentials tab for the IAM user, generate a new Access Key
Take note of the Access Key and Secret Key generated
Create a SQS Queue and specify the ARN of the IAM user under the access policy
Going back to Convoy
Supply your Access Key
, Secret Key
, Queue Name
and Default Region
.
Ingestion Options
There are two ways to ingest events into Convoy from your SQS queue:
- Format the payload using the structure below as a guide and write it to your queue.
reference payload
If
x-convoy-message-type
set to broadcast, the event will be sent to all endpoints in the project, ignoring both theendpoint_id
andowner_id
values.
For a full list of reference payloads, see our guide on ingesting events
- Send your arbitrarily formatted event payloads to your queue and use Convoy’s transform functions to mutate them at the point of ingestion.
transform function
Things to note
- Messages are read of the topic one-by-one by each worker reading off the queue.
- Acknowledgements are done per message.
- Ingestion is rate-limited (50 per second), and this can be configured by setting the
CONVOY_INGEST_RATE
environment variable.
Was this page helpful?