Dear all,

I am very new to Akka and I am implementing a simple REST HTTP client using 
Akka. My client should do around 100k GET requests. 

When I implement it in the naïve way 
<https://doc.akka.io/docs/akka-http/current/client-side/request-level.html#future-based-variant>
 
— obviously — I end up in having an akka.stream.BufferOverflowException: 
Exceeded configured max-open-requests value of [32].

To overcome this, I am trying to use the host-level API with a queue 
<https://doc.akka.io/docs/akka-http/current/client-side/host-level.html#using-the-host-level-api-with-a-queue>.
 
The documentation says that *"you need to think about a strategy about what 
to do when requests fail because the queue overflowed (e.g. try again later 
or just fail)"*. In the provided example, all requests that arrive when the 
queue overflows are rejected (i.e., Future.failed(...)). I am wondering 
whether you could support me in implementing a mechanism that retries the 
failed requests after some time.

Thanks in advance,
Roberto

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to