throttleplanned
throttle(options: { requestsPerSecond: number } | { requestsPerMinute: number }): RouteBuilder<Current>
Rate limit the next operation to prevent overwhelming downstream systems.
craft()
.id('rate-limited-api')
.from(source)
.throttle({ requestsPerSecond: 10 })
.process(apiCall) // API calls will be throttled to 10/second
.to(destination)