[akka-user] Akka HTTP client overflow strategy

2016-05-25 Thread Loïc Descotte
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

[akka-user] [Akka-Streams 2.0] Retrieve a source from Source.queue

2016-02-06 Thread Loïc Descotte
Hi, Source.queue seems perfect to push elements dynamically into a source. I am using Akka Streams 2.0 with Play framework (2.5-M2). In Play 2.5, the controller's 'chunked' method can take an Akka Streams Source to stream elements to the browser. In other words Play defines its own Sink and I

[akka-user] Re: [Akka-Streams 2.0] Retrieve a source from Source.queue

2016-02-06 Thread Loïc Descotte
Sorry in fact it's working good, but I'm still wondering if there is a simpler/better way to achieve this, without using a Publisher? Thanks Loïc Le samedi 6 février 2016 10:58:40 UTC+1, Loïc Descotte a écrit : > > Hi, > > Source.queue seems perfect to push elements dynamically i

[akka-user] Re: Delay using Akka Stream Source with PlayFramework 2.5

2016-01-30 Thread Loïc Descotte
Sorry for the useless thread it was a buffering problem on the browser side :) Le samedi 30 janvier 2016 08:51:32 UTC+1, Loïc Descotte a écrit : > > Hi, > > In Play 2.5 Akka Stream is the default stream processing library. > > I don't know if it's a Play or an Akka Stream pr

[akka-user] Delay using Akka Stream Source with PlayFramework 2.5

2016-01-29 Thread Loïc Descotte
Hi, In Play 2.5 Akka Stream is the default stream processing library. I don't know if it's a Play or an Akka Stream problem, I'm trying to stream some messages with an Akka Stream Source from a Play controller : def timeline(keyword: String) = Action { val source =

[akka-user] [akka-streams] Can I have an actorRef from a Source without consuming Element

2015-06-17 Thread Loïc Descotte
Hi, I have an ActorPublisher and I'm building a source from it : val source = Source.actorPublisher[TweetInfo](Props[TweetPublisher]) I need to send new elements into this source dynamically so I want an actor ref. On the last documentation (1.0-RC3), I've seen that I can do it this way :

[akka-user] Re: [akka-streams] Can I have an actorRef from a Source without consuming Element

2015-06-17 Thread Loïc Descotte
The old way is still working, so I can fix my problem like that : val actorRef = system.actorOf(Props[TweetPublisher]) val pub = ActorPublisher[TweetInfo](actorRef) val source = Source(pub) Le mercredi 17 juin 2015 14:24:55 UTC+2, Loïc Descotte a écrit : Hi, I have an ActorPublisher and I'm