JSONata to set the number of retries and timeout for a route

Is it possible to set the number of retries and timeout for an HTTP route using JSONata?

Presently all my app events go to data.qo. Some are live notes, which happen quickly, and are less critical than the non-live events sent at hourly intervals.

The route( that forwards these events to our service has the default retries and timeout and no rate limiting, which works well for the slow events, but causes considerable backlog for the fast events (1 every 3 seconds.)

Separating these events into different outbound queues with separate routes is a possible solution. The routes would be almost identical apart from the retry/timeout settings and the notefile, and would add a certain administrative overhead maintaining these parallel routes to the same endpoint, since we have multiple routes, one for each deployment (production, staging, test, development etc..)

With dynamic route retry/timeout settings in JSONata, it would be possible to do this with one route.

2 Likes

Thanks for the suggestion @devElert - and yes in the meantime using separate routes is the way to go. :+1:

1 Like