Hello everyone š
I'm curious if anyone triggers prefect flows programmatically based on receiving messages. I'm particularly interested in AWS SQS / SNS events.
Are there any good design patterns there or convenient integrations?
b
Bianca Hoch
01/29/2025, 9:46 PM
Hi Fabien! Hopefully this helps with scoping out your work, but here are two examples for you to leverage:
⢠Train a machine learning model
⢠AWS datalake example
Both examples make use of AWS EventBridge and Prefect webhooks to emit events to your Prefect workspace. In turn the events can be used to trigger automations that kick off downstream flows. I imagine something similar could be done with AWS SNS. In short, the order of operations looks like this for the examples I shared:
S3 file created ā”ļø EventBridge Rule ā”ļø Prefect Webhook ā”ļø Automation ā”ļø Kick off Flow run
š„ 1
f
Fabien Punin
01/29/2025, 9:50 PM
Amazing, thank you for sharing. I'll check those examples out š
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.