https://prefect.io logo
#random
Title
r

Rehan Razzaque Rajput

01/21/2022, 5:01 PM
Hi, We're thinking about using prefect for writing our "Flows". For very large workloads, we're looking for a distributed solution and we're so happy that prefect has such a smooth integration with dask. :) However, we also have workloads that are extremely light and require sub-second latency. We performed some benchmarks internally and realized that compared to bare-metal python, prefect has an overhead of about 50ms - which is okay for us. But, we were thinking that as prefect grows, is there a possibility that perhaps this overhead would grow too big (in seconds)? Ultimately, this is more of a question regarding the prefect philosophy. Is prefect going to concentrate only on large workloads that require throughput while sacrificing the latency for small workloads? Or, is it going to keep a balance between both worlds? Thanks!
k

Kevin Kho

01/21/2022, 5:08 PM
Hi @Rehan Razzaque Rajput, current Prefect core is stabilized so that overhead should be relatively fixed. We’re always looking to decrease overhead and will continue to explore doing so with Orion (Prefect 2.0). There will always be some overhead because of the observability added, but with Orion, streaming workloads are also being considered
🙌 1
r

Rehan Razzaque Rajput

01/21/2022, 5:10 PM
Exactly! I was extremely happy to see Orion! When I get more time, I'll try to play around with it too! Thank you so much for your quick answer, and kudos to all of you for creating such a great product!
🙏 3
As a follow-up, could you elaborate more on what you mean by "observability" here? is it possible for us to disable it and still use prefect-core? Note that we're not using Prefect Cloud OR Prefect Server.
k

Kevin Kho

01/21/2022, 5:27 PM
So a task hits the API to update state. Each task has at least 3 state transitions (Scheduled, Submitted, Running, Success). So that is where the overhead comes from. In Orion though, not everything needs to be a task, meaning that you can have regular Python mixed with tasks when you want. You can choose to attach this observability whenever needed
❤️ 2
That can’t be done in current Prefect
❤️ 1
But tasks can be as big or small as needed so you can just dump everything in a big big task if you only need scheduling but not state tracking
5 Views