Would Prefect (cloud) be a good choice for a "queue of async logic" type of workload?
It's not a typical scheduled data ETL pipeline scenario but instead it's small parts of logic that are triggered by actions of users of your app.
For example, in our app, when a user purchases a coupon we want to start a flow that performs some logic (some DB and API calls) in a durable fashion.
Specifically, we would use the ECS push work pools. So let's say tens, hundreds of new ECS tasks per minute.
I'm wondering if this is a viable use case of Prefect (performance and cost wise), compared to something more traditional like, let's say, a kafka topic with a consumer that performs this logic asynchronously?
Thanks!
a
alex
09/29/2023, 3:33 PM
Great question @Yaron Levi! I think it’s highly likely that you would run into AWS rate limits when creating ECS tasks at that rate. At that scale, I think you’d want a fleet of instances all serving your flows with
flow.serve
or
serve,
especially if you expect a consistently high load.
upvote 2
c
Chris White
09/29/2023, 4:51 PM
Adding to what Alex said, we are actively exploring "task scheduling" use cases that this could fit into nicely; would you be game to chat either synchronously or asynchronously about your use case and dreams for how Prefect could help?
y
Yaron Levi
09/29/2023, 5:59 PM
@Chris White Yes! I would love that...
c
Chris White
09/29/2023, 7:01 PM
Awesome let's do it! Would you mind emailing me at chris@prefect.io with some availability and we can take it from there?
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.