Question
How does batching work for the Segment Braze Cloud destination? Does Segment wait for a specific number of events before sending to Braze, or does it send batches after a set period? What happens when batching is disabled?
Product
Segment
Environment
Segment Console
Answer
When batching is enabled for the Braze Cloud destination in Segment, events are placed into an internal queue. Segment will send a batch to Braze when either the maximum batch size (such as 75 events) is reached or after a fixed time window (typically 30 seconds), whichever comes first. If the event volume is low and the batch size is not met, Segment will not hold events indefinitely; it will flush and send the current batch after the time threshold.
If batching is disabled, Segment sends each event to Braze immediately as it is processed, bypassing the batching queue. This can reduce latency but may increase the risk of hitting Braze API rate limits during periods of high traffic.
Additional Information
Delays longer than the batching window may occur if a batched payload encounters network timeouts or rate limit errors from Braze. In these cases, Segment uses an exponential backoff retry mechanism, which can add additional delay before events are successfully delivered.