https://prefect.io logo
#prefect-server
Title
# prefect-server
m

Mariusz Olszewski

02/18/2022, 10:43 AM
Is there a possibility to react with perfect flow for sns/sqs event? how to do it?
a

Anna Geller

02/18/2022, 11:00 AM
A bit of self promotion here 🙂 but this blog post provides several Python examples you could use directly in your Prefect flows: https://betterprogramming.pub/aws-kinesis-vs-sns-vs-sqs-a-comparison-with-python-examples-6fc688bfd244?sk=00958fd28ae84eef3a96396a0b80f08c
👀 1
m

Mariusz Olszewski

02/20/2022, 6:20 AM
thanks for the answer. Let`s say that i ve already created topic and events. How to setup prefect to use those events?
should I transform this event to prefect graphql request? or simplest way without third party tools exists?
a

Anna Geller

02/20/2022, 11:34 AM
You can do exactly as described in the article - poll for the SQS messages, process and then delete them. SNS is even simpler since it's a push based model so you need to just push (send) messages to the relevant subscribers that need to receive the message. So definitely no need to use GraphQL API here
2 Views