I need to execute a lot of http requests on a specific domain with different query paramerters and I am planning to use outbound-gateway of spring integration with configuration similar to below snippet:
<int-http:outbound-gateway id="httpOutboundGateway" request-channel="requestChannel"
url="http://www.google.com" http-method="GET" reply-channel="responseChannel"
expected-response-type="java.lang.String" charset="UTF-8" reply-timeout="5000"
message-converters="" >
</int-http:outbound-gateway>
I want to execute the requests in request-channel parallelly using some thread pool. I have the following questions in this context:
- Will configuring the request-channel as ExecutorChannel automatically executes requests in parallel.
- If the answer to question 1 is yes, is it http:outbound-gateway thread safe.
- If the answer to question 1 is no, how to configure to execute http requests in parallel