The documentation says that on Http().bindAndHandle()
:
there is no backpressure being applied to the connections Source, i.e. all connections are being accepted at maximum rate, which, depending on the applications, might present a DoS risk!
The same applies for bindAndHandleAsync()
bindAndHandleSync()
.
The documentation also states that even higher level systems such as file IO or TCP, I suppose HTTP being on top of TCP will work by the reactive-streams mechanisms.
Is Http().bind()
the magic function? Does that apply back-pressure?
How do I expose a back-pressured HTTP endpoint with akka-streams?