Wouldn't a circuit breaker allow you to drop new queries early if the service takes too long to answer so that they don't accumulate?
http://doc.akka.io/docs/akka/2.4.6/common/circuitbreaker.html Sam Le mer. 25 mai 2016 à 11:08, Loïc Descotte <[email protected]> a écrit : > HI, > > I would like to use Akka Http client to call a webservice in a non > blocking way. > The app that will use this client must never block and should never crash, > even if the webservice that it will call becomes very slow (for example if > the traffic is too high). > When the client registers a callback, I guess it's memorized somewhere, so > what is happening if a lot of queries and callbacks are kept in memory > because the webservice takes too much time to respond? > I guess it can cause some memory issues, so is it possible to cancel and > drop some queries when this happens? > > Thanks :) > > -- > >>>>>>>>>> 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. > -- >>>>>>>>>> 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.
