SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

How Does Event Batching Work in the Segment Braze Cloud Target?

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.

Have more questions? Submit a request
Powered by Zendesk