December 2013
Intermediate to advanced
424 pages
9h 7m
English
It is not uncommon to have a portion of route take a long time to process. Rather than tying up a thread that might otherwise be servicing requests from a consumer endpoint, it may be preferable to split out the time consuming step into a separate route, and let that stage of processing be handled by a dedicated pool of threads.
This recipe will show you how to call a route from another, such that the calling route does not block waiting for the response from the called route.
Split out the long running steps into their own shared routes, and assign them with a seda: endpoint with a name that is unique to the Camel context.
The Java code for this recipe is located in the org.camelcookbook.structuringroutes.seda ...
Read now
Unlock full access