Is there a possibility to react with perfect flow ...
# prefect-server
m
Is there a possibility to react with perfect flow for sns/sqs event? how to do it?
a
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
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
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