@Fernando Messasโ :
Yes, you can configure Autoloader to consume messages from an SQS queue using EventBridge. Here are the steps you can follow:
- Create an EventBridge rule to filter messages from the SQS queue based on a specific criteria (such as the feed type or account ID).
- Configure the rule to trigger a Lambda function when a message matching the criteria is received.
- Write the Lambda function to read the message from the SQS queue, extract the relevant data (such as the S3 object key), and call the Autoloader API to load the data into your streaming job.
- Configure the Lambda function to delete the message from the SQS queue after processing.
This approach allows you to use EventBridge to filter and route messages to different Lambda functions based on specific criteria, and then use the Autoloader API to load the data into your streaming job.
Keep in mind that you will need to handle any errors that occur during the processing of the messages, such as failed API calls or data validation errors. Additionally, you should monitor the health of your streaming job to ensure that it is processing messages correctly and not falling behind.