In this pattern, the File Arrival trigger and Auto Loader perform separate, independent roles. The File Arrival trigger's only function is to detect that new object(s) have landed in the monitored cloud storage path and start a run of the Lakeflow Job — it does not communicate which specific files arrived. Once the job/notebook executes, Auto Loader (via trigger(availableNow=True)) performs its own file discovery against the source location and consults its checkpoint location to determine exactly which files have not yet been committed, then processes only those new files in one or more micro-batches before stopping. This checkpoint-based state tracking is what gives Auto Loader its exactly-once processing guarantee, independent of how or why the job was triggered. This decoupling is why the pattern is both event-driven (low latency via the trigger) and cost-optimized (the compute only runs when triggered and shuts down after availableNow processing completes), as described in Databricks' documentation on file arrival triggers and Auto Loader production configuration.
Community Discussion