[akka-user] [Akka-HTTP] (Java) Per Request Actors Possibility and Best Practices?

2017-03-27 Thread kraythe
I am currently using playframework for my Http stuff and want to go to Akka-HTTP for the new project. However from my reading and playing with Akka-Http it seems that I have to stuff a ton of logic into the routes and I don't like that. Consider the following from the docs: public class

[akka-user] Re: Streams - Materalize and return certain values

2017-03-27 Thread Sean Callahan
After some more digging, I found that this is exactly what the broadcast hub is used for! So no need to respond. If anyone is interested, I can throw my implementation in here. as well. On Monday, March 27, 2017 at 2:48:10 PM UTC-6, Sean Callahan wrote: > > Hey all. Im starting to figure out

[akka-user] Streams - Materalize and return certain values

2017-03-27 Thread Sean Callahan
Hey all. Im starting to figure out the graph DSL and I got curious about something and I am not sure it is possible. In the graph below, I have a Source.queue setup and it is working out great to add new elements to programmatically later. Now, what I am curious about is if I can somehow offer

[akka-user] Re: ServiceRegistry implementation with Distributed Data

2017-03-27 Thread flatmapds
While I don't think this is a good problem domain for akka (I have my own service for this written in finagle), using DDATA may seem like the easy way to do shit but I don't suggest that either, if you must use akka here's what you should do (you're gonna have to write your own behavior), you

[akka-user] [akka-stream] MergeHub slows consumption when Source with 'delay' is merged to it -- bug?

2017-03-27 Thread Alexey Shuksto
Hello hAkkers, I've got so very weird situation when 'MergeHub.source' with merged in it 'Source.repeat(..).delay(..)' slowly decreases consumption rate of materialized Sinks. Some simple synthetic test follows: import java.time.Instant import akka.actor.ActorSystem import

Re: [akka-user] Can we use activator for Spark projects?

2017-03-27 Thread Konrad Malawski
Just use SBT then ;-) Yeah it's here to stay. -- Konrad `ktoso` Malawski Akka @ Lightbend On 27 March 2017 at 15:41:15, kant kodali (kanth...@gmail.com) wrote: Hi, I don't mean to say that I want to use activator for the UI part. In fact, I barely even

Re: [akka-user] Can we use activator for Spark projects?

2017-03-27 Thread Justin du coeur
Activator is essentially nothing but a shell around sbt -- at the command line, they're identical AFAIK. If you're not using the UI anyway, just switch to sbt, which is the real underlying tool, and which something like 98% of the Scala ecosystem runs on. While folks are working on other tools

Re: [akka-user] Can we use activator for Spark projects?

2017-03-27 Thread kant kodali
Hi, I don't mean to say that I want to use activator for the UI part. In fact, I barely even use activator ui (although its really cool). I am at very least using activator as a production build tool for apps that are written using Play framework. is that ok? I like fact that activator makes the

Re: [akka-user] Can we use activator for Spark projects?

2017-03-27 Thread Konrad Malawski
Activator is just a sample-app tool to try out Scala and tutorials etc. I guess it could maybe work with Spark for a demo but I would not recommend it... Use a real IDE :) -- Konrad `ktoso` Malawski Akka @ Lightbend On 27 March 2017 at 12:46:17, kant

[akka-user] Can we use activator for Spark projects?

2017-03-27 Thread kant kodali
Hi All, Can we use activator for Spark projects along with typesafe config library? Any examples? Thanks! -- >> Read the docs: http://akka.io/docs/ >> Check the FAQ: >> http://doc.akka.io/docs/akka/current/additional/faq.html >> Search the

Re: [akka-user] Re: ServiceRegistry implementation with Distributed Data

2017-03-27 Thread Patrik Nordwall
As for the specific question regarding sending Get: that's also fine! On Sat, Mar 25, 2017 at 9:59 AM, lutzh wrote: > > https://docs.google.com/presentation/d/1w39pan2HrwSriJGr2cuexIPuWLtS7 > BlA7d5N8evNfWE/pub?slide=id.p > > > On Saturday, 25 March 2017 03:11:11

[akka-user] Graceful Termination

2017-03-27 Thread kongunattuarasan
Hello, I am trying to achieve this use case part of my learning exercise of akka. Calculate total number of streets in all the cities of all states. I have a database which contains all states, cities and streets i need. I am trying to achieve this in Java Here is what i have