[akka-user] akka typed actor, slow "ask" with time exponentially increasing by the number of messages

2017-08-24 Thread 'Kostas kougios' via Akka User List
Hi, I got this fairly simple actor: private def actor(state: Option[R], calc: () => Future[R]): Actor.Immutable[Message] = Actor.immutable[Message] { (_, msg) => msg match { case Get(replyTo) => state match { case Some(f) => replyTo ! f Actor.

[akka-user] Re: akka typed actor, slow "ask" with time exponentially increasing by the number of messages

2017-08-25 Thread 'Kostas kougios' via Akka User List
Did a quick test commenting out the blocking .awaitFor(). So there was no blocking call. But still it is too slow. -- >> Read the docs: http://akka.io/docs/ >> Check the FAQ: >> http://doc.akka.io/docs/akka/current/additional/faq.html >> Search the

[akka-user] akka.typed, is it possible a message is lost when it is send just after the creation of an actor?

2017-08-31 Thread 'Kostas kougios' via Akka User List
I am using the ask pattern to system ? (ref => Get(key, ref)) where private val system = ActorSystem( Actor.supervise(guardian(Map.empty)).onFailure[Throwable](SupervisorStrategy.resume), "EvaluateOnceFlushable" ) Within the guardian actor, I create a children actor and forward the msg:

[akka-user] ActorSystem and system.dispatcher, can those be used globally?

2017-12-13 Thread 'Kostas kougios' via Akka User List
Hi, We use Guice and we got an AkkaModule that creates an ActorSystem and a Materializer that can later on be injected to other classes. I wonder if there is a problem with that. My assumption is that if uses of the actor system, materializer and dispatcer (used as ExecutionContext for Future's

[akka-user] akka (actor typed actors) cluster, 2 nodes in same jvm, they don't join the cluster

2018-03-11 Thread 'Kostas kougios' via Akka User List
I've created an akka cluster with this config on node 1 (flattened): akka.cluster.roles : [ "distmem-server" ] akka.logging-filter : "akka.event.slf4j.Slf4jLoggingFilter" akka.remote.netty.tcp.hostname : "distmem.lan"* <--- this exists in my hosts file and points to localhost, but tried 127.0

[akka-user] akka networking for thousands of small messages

2016-12-02 Thread &#x27;Kostas kougios&#x27; via Akka User List
Hi, anyone knows if say I got 2 actors which send very quickly thousands of small messages between them. Will akka do any groupping of the messages and send them in batches in order to reduce network traffic? Thanks -- >> Read the docs: http://akka.io/docs/ >> Check t