Deduplicator behavior in batch and streaming meters
The Deduplicator behaves differently in streaming meters and batch meters.
Streaming meters
In streaming meters:
- The pipeline runs continuously.
- Deduplication state persists over time.
- Time windows and retention settings are meaningful across events.
- A duplicate arriving days later can still be detected.
Use streaming meters when you need replay protection across days or weeks.
Batch meters
In batch meters:
- The job processes a finite set of records.
- Deduplication applies only within the current batch run.
- Deduplication state is cleared when the batch run ends.
Use batch meters when deduplication is required only within the current import or batch file.
Rolling Duration in batch meters
Rolling Duration is supported in batch meters, but the retention settings do not have practical effect after processing completes. During the batch run, records are still compared against other records in the same batch.
Fixed Calendar Window in batch meters
Calendar windows still matter in batch meters. Records can still be partitioned by hour, day, week, or month within the same batch run.
For example, two identical records on Monday are duplicates, while the same record on Tuesday is treated as new again, even within the same batch.
Event Time in batch meters
Event Time with Fixed Calendar Window also works in batch meters. This is useful for historical imports, backfills, replay processing, and multi-day data files.
Event Time determines which calendar window is used for duplicate checking, but it does not imply unlimited historical lookup. In batch mode, deduplication state still ends with the batch run. In persistent mode, retained state is still bounded and not infinite.