What is difference between Http().singleRequest()
and Http().superPool()
? Is there any specific scenario when one is preferred over other.
We have specific scenario where we have Akka Http
based rest service, the purpose of the service is to validate incoming request against five external services before posting to another API.
Two of five external services are rest based and other three are soap based (same web service but three different operations). Currently each of the client code uses Http().singleRequest()
and because of the volume we see max-open-request
error very frequently, in order to mitigate we are running multiple instances.
I am wondering would using Http().superPool()
be better option here? Keep in mind after the validation we are calling another API to post the request.
Regards,
Syed Farhan Ali