In camel it works in a bit different way, actually easier than in IoC scenarios. As soon as all endpoints in your route are non-blocking, the whole route should be non-blocking to.
Чт, 22 груд. 2016 13:35 користувач linktech <kl...@acm.org> пише: > I am looking for the same REST HTTP functionality in Camel as outline in > this > great article on Spring Integration: > https://dzone.com/articles/non-blocking-rest-services-with-spring. Need to > be able to return the REST response (deferred) to the HTTP stack and > release > the request thread. When the deferred request is notified via callback > that > data in ready the HTTP stack would send response back to client. > > I think it would require the REST support to return a different Response > type (DeferredResponse) based on ListenableFuture that is recognized by > HTTP > implementation or some layer above so that we have true non-blocking. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-Non-blocking-HTTP-based-Microservices-tp5791879p5791886.html > Sent from the Camel - Users mailing list archive at Nabble.com. >