Documentation
¶
Overview ¶
Package main demonstrates dureq group aggregation — collecting individual items into groups that are automatically flushed and processed as a single aggregated job.
Scenario: Event analytics pipeline
- Multiple producers emit individual page-view events for different users
- Events are grouped by user ID
- After a grace period (no new events) or when the group reaches max size, all events for that user are aggregated into a single batch payload
- A handler processes the aggregated batch of events at once
This reduces per-event overhead and enables efficient bulk inserts.
Click to show internal directories.
Click to hide internal directories.