Event Streams is Generally Available (GA)
Check out the Event Streams GA Migration Guide to learn about the differences between the Public Beta and GA functionality of Event Streams.
Event Streams is an API that allows you to tap into a unified stream of every interaction sent or received on Twilio. With Event Streams, you can:
- Stream your data to your existing systems by configuring a modern, persistent streaming technology like Amazon Kinesis or to a webhook (more sink types coming soon).
- Easily consume and leverage data from multiple Twilio products with consistent metadata, well-defined and versioned schemas, and control over which events you want delivered (starting with Messaging, Voice, and TaskRouter events, with all events coming soon).
- Trust that your events will be queued if your system goes down and delivered as soon as it’s back up, with event queuing for up to 4 hours.
Event Streams evolves event delivery at Twilio beyond a single-producer-to-single-consumer model, giving developers flexibility to stream events to multiple sinks.
To build with Event Streams, you’ll use the following API resources:
- Event Types — The various kinds of events that are accessible through the Event Streams APIs.
- Sinks — The destinations to which the events you’ve subscribed to will be delivered.
- Subscriptions — Subscribe to specific Twilio events and versions.
- Schemas — Every Event Type has a Schema which defines how information is organized within events.
The Amazon Kinesis Quickstart and Webhook Quickstart pages can help you get started with the Event Streams API. Helper libraries are also available for popular programming languages to help you quickly integrate Event Streams.
Please be aware of the following aspects / limitations of Event Streams:
- Events will be queued for a maximum of 4 hours.
- Up to 100 Sinks and 100 Subscriptions per account. If you have subaccounts, each subaccount will have a limit of 100 Sinks and Subscriptions.
- Connection overrides as described in Webhooks Connection Overrides are not supported.
- 99.95% uptime.
Event Streams is additive and will not replace existing webhooks. Twilio will continue to support and develop existing webhooks for TwiML use cases and for customers who prefer per-channel integrations.
- The maximum retention period for application logs through Event Streams will be seven days.
- The maximum retention period for error logs will be 23 days at the account level.
Twilio is improving Event Streams' technical stack in order to increase reliability and significantly reduce operating costs. Pricing changes are rolling out in phases with the goal of making Event Streams free to use by the end of 2023.