Is it a good practice to run a flow that never end...
# best-practices
j
Is it a good practice to run a flow that never ends? e.g. a web server
1
g
Anna Geller has a medium article that instead suggests a while (true) executeflow() approach - here https://medium.com/the-prefect-blog/serverless-real-time-data-pipelines-on-aws-with-prefect-ecs-and-github-actions-1737c80da3f5
j
I don't quite see the connection and I'm not an expert on all this. A concise yes/no answer is appreciated.
n
no, I would say that prefect flows are not meant to be used as a service instead, I would suggest that you use Cloud (or Server) as the web server if at all possible, in the sense that you could have deployments that you could trigger via API calls whenever an event in the world necessitates some action if you'd want to share more details on your use-case, I could probably add more color on what that could actually look like
🙏 1