up vote
down votefavorite 
<http://stackoverflow.com/questions/43022174/how-to-avoid-saturation-in-akka-http-latency-spikes#>

I have a akka-http (Scala) API server that serves data to a NodeJS server. 
In moments after startup, everything works fine, everything is fast. 
Latency is low. But suddenly, latency increases fastly. The API no longer 
responds, and the website becomes unusable.

[image: enter image description here] <https://i.stack.imgur.com/uoy6o.png>

The strange thing is that the traffic and the requests count remain stable. 
Latency spikes seem decorrelated from them.

I guess this saturation is achieved with the blocking of all the threads in 
akka thread pool. Unfortunately, my Akka dispatcher is blocking, because 
I'm doing a lot of SQL queries (in MySQL) and because I'm not using a 
reactive library. I'm using Slick 2, which is, contrary to Slick 3, 
blocking-only.

So, my question is, how to avoid this sort of bottling ? How to keep a 
latency proportional with the traffic ? Is there a way to evict the 
requests that cause the saturation in order to prevent them to compromise 
everything ?

Thank you !

-- 
>>>>>>>>>>      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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to