Twilio Changelog | May. 14, 2023
Introducing Retries with Exponential Backoff in TaskRouter SDK V1 & Taskrouter SDK for Flex
We have updated the TaskRouter SDK V1 & TaskRouter SDK for Flex with the introduction of retries and the use of truncated exponential backoff in case of network call failures.
What's changed?
TaskRouter V1 SDK: We've introduced retries with exponential backoff for each network call to the event bridge for task, worker, and reservation requests. This improvement aims to provide a more reliable experience for users and reduce the need for manual intervention, such as refreshing the browser tab.
TaskRouter SDK for Flex: We've modified the retry mechanism for updating worker activity to use exponential backoff. This improvement will prevent heavy loads on our servers and provide a more reliable experience for users.
Why have we made this change?
Previously, customers might have implemented their own retry mechanisms without proper waiting or backoff strategies, which could lead to less optimal user experiences. By introducing a robust retry mechanism, we aim to ensure a more seamless experience for users.
How to update to this version?
Taskrouter V1 SDK
Download or reference the CDN version for your project:
CDN permanent link: https://sdk.twilio.com/js/taskrouter/releases/1.23.0/taskrouter.js
Build, test, and deploy the updated SDK.
TaskRouter SDK for Flex ( for self-hosted or hosted flex)
Use Version <0.8.1> or higher in your node project's package.json.
Npmjs.com library permanent link : https://www.npmjs.com/package/twilio-taskrouter/v/0.8.1
Github changelog : https://github.com/twilio/twilio-taskrouter.js/blob/master/CHANGELOG.md
Github release page : https://github.com/twilio/twilio-taskrouter.js/releases/tag/0.8.1 build, test and deploy.
For more information and details, please visit the TaskRouter documentation.