Hello everyone :wave: I'm curious if anyone trigge...
# ask-community
f
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
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
Amazing, thank you for sharing. I'll check those examples out šŸ™
šŸ™Œ 1