I have a simple WebSocket application, which is based on Akka HTTP
/Reactive streams
, like this https://github.com/calvinlfer/akka-http-streaming-response-examples/blob/master/src/main/scala/com/experiments/calvin/ws/WebSocketRoutes.scala#L82.
In other words, I have Sink
, Source
(which is produced from Publisher
), and the Flow:
Flow.fromSinkAndSource(incomingMessages, outgoingMessages)
When I produce more, than 30 messages per second to the client, Akka
closes a connection.
I cannot understand, where is a setting, which configure this behaviour. I know about OverflowStrategy, but I don't explicitly configure it.
It seems, that I have OverflowStrategy.fail()
, or my problem looks like it.
outgoingMessages
look like? The one from the code linked clearly has the overflow strategy set to fail... – Frederic A.outgoingMessages
isSource.fromPublisher(publisher).watchTermination() { (_, future: Future[Done]) =>
– Max