Hello Team, I have a question.. Can we use Push ba...
# ask-community
p
Hello Team, I have a question.. Can we use Push based mechanism for flows to run on workers instead workers poll for work? I see we have Push work pools which allows you do that but that will also manage the infrastructure. Since the time taken to have the infrastructure will be more, i want those flows to be executed quickly. Please let me know if there is any workround. Right now I am using Agents, which polls for work every second. Thanks
b
Hi Pradeep, if you're looking for a way to deploy work quickly, I'd recommend checking out the serve method. There's also a guide you can reference here which walks through the process of serving a flow, packaging the flow into a Docker image, and running it in a K8s cluster (doesn't have to be k8s this is just what the example uses). This is an alternative approach to using workers/work pools. Serving flows and using workers/work pools are both valid options to deploy work. Ultimately, it depends on your use case, and what makes the most sense for it. Here's some documentation which compares the two options, if you'd like to make an informed decision.
p
@Bianca Hoch Thanks for replying. So I am new the prerfect and reading the documents a lot. And you guyz are working a lot. So the question was around the push based thing. The current documentation tells that it will spin the infrrastructure as well?
Work pools related..
b
The current documentation tells that it will spin the infrrastructure as well?
Yes, my understanding is that push work pools will spin up the infrastructure that is necessary to run your flows, and bypass the need to use a worker.
You'd need to provide the pool with credentials to submit the flow runs to your desired infra