Re: [akka-user] TLS Negotiation Mid-Stream

2015-07-12 Thread Chad Retz
I just got back to this project and after some finagling, I was able to support TLS negotiation mid-stream[0]. Basically what I did was have a stateful stage on inbound and outbound[1] that I then mapped to something based on whether it needed to be secure or not. Then I used a broadcast/merge

[akka-user] Asynchronous file reading

2015-07-12 Thread Nicolau Werneck
What is the most current implementation of Akka based asynchronous file I/O out there? It seems akka-stream 1.0-RC3 still only has synchronous reading, and drexin's akka-io-file github repo is more than one year old. Is there no highly-experimental official async file IO library out there?++

[akka-user] Re: Reactive Streams, Work Pulling Actors and Slick 3.0

2015-07-12 Thread Peter Wolf
Nevermind :-) I found the information I need about 40 minutes into Dr. Kuhn's talk > http://www.typesafe.com/resources/video/introducing-reactive-streams > Sorry to post an unnecessary question P -- >> Read the docs: http://akka.io/docs/ >> Check the FAQ:

Re: [akka-user] Re: Oscillating CPU load with large akka based data processing job

2015-07-12 Thread Viktor Klang
Hi Nicolau, Your description is not weird at all—ForkJoinPool's Worker threads will scan for work when they have none of their own, which they do for about 2 seconds, and if they can't find work they'll decommission themselves. Note that the default configuration for Akka needs to be tuned for th

[akka-user] akka-http/spray REST API documentation?

2015-07-12 Thread Adam
Looks like there's something for spray: http://github.com/gettyimages/spray-swagger I imagine there's nothing for Akka HTTP, seeing as it's not even officially released yet. -- >> Read the docs: http://akka.io/docs/ >> Check the FAQ: >> http://doc.akka.io/doc

[akka-user] Reactive Streams, Work Pulling Actors and Slick 3.0

2015-07-12 Thread Peter Wolf
Hello, I hope this is the correct group for this question... I have an existing pipe-line process written in Actor using the "Work Pulling" pattern. http://www.michaelpollmeier.com/akka-work-pulling-pattern/ The first stage of my pipeline is a database query written in Slick. The result is ve

[akka-user] Re: Oscillating CPU load with large akka based data processing job

2015-07-12 Thread Nicolau Werneck
That message was pretty crazy, so I wanted to give some follow-up. I made some changes to my system, and now I was able to reach 100% CPU utilization most of the time. I am creating this map-reduce framework while at the same time using Spark to solve the same problem, and I believe I got a 40%

[akka-user] Re: How to start an akka-http server with a Route

2015-07-12 Thread Ernesto Menéndez
Do you have the ActorMaterializer as an implicit value? implicit val materializer = ActorMaterializer() On Sunday, July 12, 2015 at 7:58:49 AM UTC-6, Sam Halliday wrote: > > There seems to be some magical implicit conversion going on here, if I add > > def flow: Flow[HttpRequest, HttpRespons

[akka-user] Re: akka-http-testkit route produces "internal service error" but live route works (?!?)

2015-07-12 Thread Johannes Rudolph
Hi Austin, On Saturday, July 11, 2015 at 11:22:44 AM UTC+2, Austin Guest wrote: > > (1) The test for the "hello" route fails because the actual response is an > internal server error. (Despite the fact that this isn't true running the > live code!) And I get the following error messages: > That

[akka-user] Re: How to start an akka-http server with a Route

2015-07-12 Thread Sam Halliday
There seems to be some magical implicit conversion going on here, if I add def flow: Flow[HttpRequest, HttpResponse, Unit] = route to my service trait, I can get the Flow. Unfortunately I have absolutely no idea where this implicit is coming from because the akka-http routing DSL basically k

Re: [akka-user] Can I avoid a class cast when using outlets in FlowShape?

2015-07-12 Thread Viktor Klang
On Sun, Jul 12, 2015 at 1:18 PM, Magnus Andersson < magnus.anders...@mollyware.se> wrote: > Hi > > I have to do a class cast to ge able to get a typed outlet from a flow > that I used in a FlowGraph. > >1. I'm wondering if I'm using the API wrong below, can I get the >outlet in a different

[akka-user] How to start an akka-http server with a Route

2015-07-12 Thread Sam Halliday
Hi all, I'm trying to migrate from Spray to Akka-HTTP and I'm failing to be able to compile this most basic of examples: http://doc.akka.io/docs/akka-stream-and-http-experimental/1.0-RC4/scala/http/routing-dsl/index.html The API for bindAndHandle must have changed because I have a `Route` bu

Re: [akka-user] scaladoc artefact in sbt updateClassifiers

2015-07-12 Thread Akka Team
Tracked as ticket: https://github.com/akka/akka/issues/17970 On Sat, Jul 11, 2015 at 11:51 PM, Konrad Malawski < konrad.malaw...@typesafe.com> wrote: > Hi Sam, > Yes, interesting catch - we do not publish scaladocs as a jar. > I guess we did not bump into this previously since many Scala devs > (

[akka-user] Can I avoid a class cast when using outlets in FlowShape?

2015-07-12 Thread Magnus Andersson
Hi I have to do a class cast to ge able to get a typed outlet from a flow that I used in a FlowGraph. 1. I'm wondering if I'm using the API wrong below, can I get the outlet in a different way? 2. Other suggestions for improvement apart from the single line is welcome, perhaps my