Pregunta

I would like to know if it is possible to do a HTTP POST Request fire and forget and don't wait until you get a response. I am not sure if I should using HTTP component or AHC, I guess AHC is more convenient for my scenario.

I am using Apache Camel 2.12.1 and Spring XML. If is possible, how can I achieve it?

Thanks!

¿Fue útil?

Solución

Choosing between the http4 and ahc Camel components is not a matter of asynchronism but of performance under heavy load. Said differently, if your request rate is small or medium, http4 component is enough.

There are several ways of achieving "request fire and forget" whatever the target component is:

In both cases, the request will be executed in separate thread, so the caller won't wait.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top