r/dataengineering • • Oct 22 '26

Discussion Airflow Event Driven scheduling is good and/or scalable?

Hello. We are using now a custom orchestrator but thinking about moving to a established one. We have an event-driven processing setup, where the landing of files in Google Cloud Storage buckets trigger some dataform and/or Python processes.

We deal with about 2 billion events per month. In some cases it's not an instant trigger of the process, because we can configure a buffer and wait to gather a bunch of events together.

At first, the better suited decision would seem Dagster, but it being aqcuired by Prefect really makes me afraid about migrating and then having to remigrate again in not so long time.

So, how good and scalable are event driven schedules in Airflow? We might be using Managed Airflow in Google Cloud, or hosting our own deployment in Kubernetes. I do like Airflow and have used it in a few companys, but just for periodic workflows.

15 Upvotes

8 comments sorted by

5

u/Phoenix_verse Oct 25 '26

airflow is still preferable I think

3

u/I_Blame_DevOps Oct 23 '26

Is your current orchestration working well?
Not sure I’d recommend Airflow in 2026.
Dragster or Prefect if you decide to pick one.

1

u/EarthGoddessDude Oct 23 '26

FWIW we’re still seriously looking at Dagster.

2

u/ResponsibilityIll483 Oct 25 '26

Didn't Prefect aquire Dagster?

1

u/vish4life Oct 23 '26

are you asking if you can use Airflow as an event processing system for handling 2 billion events?

No it is designed for that. Lol.

Airflow is an orchestrator. If you can batch your requests, and say fire a job every 15 mins, then sure it can do it. We handle 2 billion events / day like that. but running a task per event is going to be super expensive.

1

u/Adam-Schroeder 24d ago

I think u/vish4life is on the right track. At 2B events/month, it's not a good idea to have an orchestrator, whether you choose Airflow Dagster or Prefect, creating one run per event, because that's a lot of overhead.

I would say that the buffering you already do is the right pattern. Send GCS notifications to Pub/Sub, group them into batches (every N files or N minutes), and trigger the orchestrator on each batch rather than on each file.

I think Airflow can handle that well. Since Airflow3, there are real event-driven scheduling (Assets + AssetWatcher) with Pub/Sub support, so you don’t need polling sensors.

In regard to your fear of migrating twice, I would say keep your dataform/Python logic separate from orchestrator-specific code if possible. Then, when switching orchestrators later, it will be manageable. You won't have to rewrite everythin.

(Disclosure: I work at Kestra, which also does event-driven triggers on GCS/Pub/Sub just in case you're interested.)