Not generate elements 
I don't think its possible for incoming connections if I am correct? 
You kind of can... 

If your connection accepting flow is very slow, we won't accept the connections 
inside Akka IO.

However the Kernel (i.e. Linux) will finish the TCP handshake in any case and 
it has also a backlog setting,

so the Kernel has a backlog of connections it will accept before handed over to 
the JVM in any case.

In general there's a setting `backlog` on Akka HTTP, that's propagated to Akka 
TCP, that's propagated to Akka IO, that's propagated to JDK's 
ServerSocketChannel, that propagates to the kernel...

It's a long story as you see, and in the JDK and kernel it's implementation 
dependent how it will deal with this in any case: 
http://docs.oracle.com/javase/7/docs/api/java/nio/channels/ServerSocketChannel.html#bind



Try buffering the elements in a bounded manner 
What happens when the buffering overflows?
Well, if you buffer unbounded you'll blow up with out of memory errors.

That's why Akka Streams always use bounded buffers :-)



Drop elements 
Does this mean it will drop the incoming connection and the user will get a 
504? 
Dropping is a very bad idea. Instead you should .cancel() the connection.

If you just drop the idle timeout will reap the connection after some time of 
inactivity.



Tear down the stream 
Does this mean the front-end node that is accepting incoming connections has 
basically crashed and would need to be restarted? 
Yeah, that'd close the server.



In general though accepting the connections will not be that slow that you'll 
need to worry about this :-)

-- 

Konrad

Akka @ Typesafe

-- 
>>>>>>>>>>      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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to