My understanding from the documentation is that using Http.singleRequest 
will fail requests when in a backpressure situation, while using a MergeHub 
with the flow will in fact backpressure. Is that a correct understanding?

Jeff

On Thursday, July 13, 2017 at 4:46:39 AM UTC-7, johannes...@lightbend.com 
wrote:
>
> On Wednesday, July 12, 2017 at 9:08:52 PM UTC+2, Jeff wrote:
>>
>> As for the issue of complexity, it's actually not as complex as it 
>> sounds. I'm using Http().superPool() to make api requests and I wanted to 
>> avoid having to create a separate stream for every single iteration of api 
>> request when the only thing that changed was the Unmarshaller. Instead of 
>> materializing multiple streams where the only thing that changed was the 
>> Sink, I just created one stream where the Sink.foreach(...) take the 
>> Unmarshaller function and resolves the Promise. 
>>
>
> You could just use Http.singleRequest in that case because it implements 
> almost the same kind of logic and also uses the same pool as superPool.
>
> Johannes
>

-- 
>>>>>>>>>>      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