https://prefect.io logo
Title
j

John Kang

05/10/2023, 1:11 PM
I was at PyCon last month and met some folks from Temporal (https://temporal.io/) who work on workflows similar to Prefect. I looked at their documentation but could use help deciphering their advantage over Prefect. Does anyone know the pros/cons of Temporal vs. Prefect? I ask because we're using Prefect to automate our data pipelines and even some of our application data refreshes (replacing celery workers). I'm wondering what advantage Temporal would provide over Prefect in this regard.
đź‘€ 3
y

Yaron Levi

05/15/2023, 8:58 AM
Although you can use Temporal for general purpose orchestration and cron jobs, I think it solves a more specific problem. It’s about running a flow which is centered around a specific user, and maintaining state. For example think about a flow called “order a meal”. The flow has multiple steps, and between the steps it sits (and maintains state) and listens to outside events, in order to advance to the next step in the flow. The “order a meal” flow might have steps like payment started, payment finished, food picked, food delivered, user sent review… And you have millions of flows like this, a flow for each user, with robust state management, that knows exactly what is the current state. Prefect doesn’t have the concept of saving state.
🙂 I am not a Temporal expert. Would like to be corrected.
👍 1