Event batching is a feature of the Tealium Collect module that optimizes the transmission of data between a mobile device and Tealium by sending multiple events in a single HTTP request. Event batching works with a new data collection endpoint that is optimized to eliminate repetitive data layer variables and to accept payloads compressed with gzip.
Batch vs. Queue
Event batching refers to how data is transmitted across the network. The event queue refers to how event data is stored temporarily on the device before it is dispatched. Event batching combines multiple events into a single network request as opposed to each tracked event in its own request. The event queue is used when a device is offline so that tracking calls can be stored until the device regains a connection, at which point the queue is processed. Event batching works with the event queue by processing multiple events at once until the queue is empty.
For example, if a device is offline and the event queue grows to contain 25 events, once the device comes online the queue is processed in batches of 10 events until the queue is empty. In this case, two batched requests with 10 events each and one batch for the remaining 5 events are sent, for a total of 25 tracked events using only 3 network requests.
Currently, the batch size maximum is 10.
Data Layer Optimization
The Tealium mobile libraries contribute a lot of device information to the data layer, such as app name, screen resolution, and OS version. These variables are included in every network request even though their values do not change between events. Event batching optimizes the data layer so that these common variables are only sent once per batch.
The event batch payload is compressed with gzip to minimize the size of the HTTP request. This compression reduces the size of each network request by up to 90%.
The benefits of event batching include:
Reduced size of total transmitted data.
Fewer network requests for the same number of events.
Improved battery performance on the device.
Event batching is not available for Tealium iQ Tag Management.