[akka-user] Re: Modeling a simple MMO game entities as actors? Is it OK?

2015-06-18 Thread Amir Karimi
I think It's not enough. There are events which will happen when the user is not logged in. For example an attack on a village (which its owner is inactive) or occupation of that village also generates a message to the owner player actor (which is not resident) as well. So I can't activate them

Re: [akka-user] HTTP/2

2015-06-18 Thread Jonas Bonér
Great community project once HTTP 1.1 support is final and shipped. On Thu, 18 Jun 2015 at 21:51 Roland Kuhn wrote: > Not short-term: first we must support HTTP/1.1, then we can think about > the next steps. > > Regards, > > Roland > > 18 jun 2015 kl. 21:18 skrev Heiko Seeberger : > > Akka team,

Re: [akka-user] Cluster Fragmentation

2015-06-18 Thread Morten Kjetland
We have been using the following approach with success: Each cluster-member writes/updates an alive-record to the database each X-seconds. It also checks how many other alive nodes are found in the database.. (I know this solution does not scale massively) If number of alive nodes in database is d

Re: [akka-user] Average Message transfer time

2015-06-18 Thread Vishnu Sharavan Nag
Thanks Patrik. I'll look into it. On Wednesday, 17 June 2015 17:51:56 UTC+5:30, Patrik Nordwall wrote: > > I would guess that you are filling up the tcp buffer, and then Akka will > back-off and start buffering the messages. Maybe you can see this log > message: > > log.warning("[{}] b

[akka-user] Re: DeadLetters when sending to self

2015-06-18 Thread Frederic
There's more... as context is also null in the Future's callback, anything using context won't work, see below for an updated example using the Akka's scheduler and dispatcher: import akka.actor._ import scala.concurrent._ import scala.concurrent.duration._ case class Done(s: String) case objec

[akka-user] Cluster Fragmentation

2015-06-18 Thread tigerfoot
Hello, Are there any methods or tools that help detect cluster fragmentation? Once fragmentation is detected what's the best practice to correct it? Thanks, Greg -- >> Read the docs: http://akka.io/docs/ >> Check the FAQ: >> http://doc.akka.io/docs/akka/cur

Re: [akka-user] Re: Akka and Mesos: Will it blend?

2015-06-18 Thread tigerfoot
Actually that's not quite right...its not nearly that simple. These "oceans" like Mesos need to auto-assign the ports so while, yes, 2.4 gives dual binding capabilities this is only useful when you know the ports! So how do you do that? That's much more complex. I've got a hello-world remot

[akka-user] DeadLetters when sending to self

2015-06-18 Thread Frederic
Hello, I found a quite specific case involving Actors, Future callbacks and exceptions where self becomes deadLetters. I have the feeling I'm using self the way it is meant to be used, as described here: http://doc.akka.io/docs/akka/2.3.11/general/jmm.html#jmm-shared-state Am I doing somethin

[akka-user] logback turboFilter and akka LoggingReceive incompatible?

2015-06-18 Thread Sam Halliday
Hi all, I'm seeing something very weird. When I enable the logback turboFilter DuplicateMessageFilter: http://logback.qos.ch/manual/filters.html#DuplicateMessageFilter https://github.com/qos-ch/logback/blob/master/logback-classic/src/main/java/ch/qos/logback/classic/turbo/DuplicateMessageF

Re: [akka-user] HTTP/2

2015-06-18 Thread Roland Kuhn
Not short-term: first we must support HTTP/1.1, then we can think about the next steps. Regards, Roland > 18 jun 2015 kl. 21:18 skrev Heiko Seeberger : > > Akka team, > > Are there plans to add support for HTTP/2 to Akka HTTP anytime soon? > > Thanks > Heiko > > -- > > Heiko Seeberger > Ho

Re: [akka-user] HTTP/2

2015-06-18 Thread Konrad Malawski
It's been discussed a bit (most recently during ScalaDays), with Play being the primary interested-party however we have not actively looked into it yet. It would definitely match our streaming http model very-very-nicely! --  Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 18 June 2015 at 2

[akka-user] HTTP/2

2015-06-18 Thread Heiko Seeberger
Akka team, Are there plans to add support for HTTP/2 to Akka HTTP anytime soon? Thanks Heiko -- Heiko Seeberger Home: heikoseeberger.de Twitter: @hseeberger Public key: keybase.io/hseeberger -- >>

Re: [akka-user] Re: Akka and Mesos: Will it blend?

2015-06-18 Thread Viktor Klang
Akka 2.4 solves the docker problem with supporting an external address and one internal. -- Cheers, √ On 18 Jun 2015 19:28, "Jason Martens" wrote: > I have heard from another co-worker that Akka remoting is very difficult > on Mesos using Docker, because of the random ports that it uses to conn

[akka-user] Re: Apache Camel vs Apache Camel + Akka

2015-06-18 Thread Juan José Vázquez Delgado
Hi, We've been dealing with that kind of questions for the last months and eventually ended up thinking that it's better to stick to Akka. It's true that Camel gives you a plethora of connectors and integration patterns right out of the box, but that benefits come with some costs. For example,

[akka-user] Re: Akka and Mesos: Will it blend?

2015-06-18 Thread Jason Martens
I have heard from another co-worker that Akka remoting is very difficult on Mesos using Docker, because of the random ports that it uses to connect. Docker expects you to specify which ports are going to be used by your container, and if you don't know ahead of time it can be difficult to suppo

Re: [akka-user] Akka Http Multi-part form data

2015-06-18 Thread Chad Retz
I also made an example of this in a recent Akka HTTP showcase I toyed with. Client-side Scala.JS to upload is here and server-side Akka HTTP is h

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

2015-06-18 Thread Chad Retz
Yeah, I was thinking about using a FlexiMerge/FlexiRoute approach on top of the bidi flow to switch from placebo to normal flow. I will update if/when I have a working result. On Monday, June 15, 2015 at 3:46:03 PM UTC-5, rkuhn wrote: > > Given how hard it was to get TLS implemented in the first

[akka-user] Re: CORS Support Akka-http

2015-06-18 Thread yar . ilich
Hi, I didn't find a counterpart of mapRequestContext in akka-http, so I just allow all the methods I have in my route. Here is my shot at CORS in akka-http: import akka.http.scaladsl.model.HttpMethods._ import akka.http.scaladsl.model.HttpResponse import akka.http.scaladsl.model.headers._ impor

Re: [akka-user] How to control excessive logging from LocalActorRefprovider

2015-06-18 Thread Patrik Nordwall
The specific case for persistence replay is fixed, but it would anyway be nice if we used logger names that can filtered. Issue, yes please. /Patrik tors 18 jun 2015 kl. 17:44 skrev Grant Gavares : > For us, the issue was ultimately a symptom of the problem referenced here: > https://groups.googl

Re: [akka-user] How to control excessive logging from LocalActorRefprovider

2015-06-18 Thread Grant Gavares
For us, the issue was ultimately a symptom of the problem referenced here: https://groups.google.com/forum/#!topic/akka-user/4lBUX7N7W6k Our cluster was in a broken state and persistent actors were unable to recover. Patrik, if I read correctly this issue is resolved in 2.4? If so, would still li

[akka-user] Re: Modeling a simple MMO game entities as actors? Is it OK?

2015-06-18 Thread Guido Medina
You can set context time out for actors, if they don't receive a message within some time passivate them, activate them at login, that way you don't have to lazy load when the player is active but at login which will basically happen asynchronously. Now, Akka experts should tell us if setting c

Re: [akka-user] How to control excessive logging from LocalActorRefprovider

2015-06-18 Thread Patrik Nordwall
On Thu, Jun 18, 2015 at 11:46 AM, Brice Figureau wrote: > Hi, > > I'm also seeing this log message logged on a very unloaded cluster, on > akka 2.3.11. > > On Wed, 2015-06-17 at 13:31 +0200, Patrik Nordwall wrote: > > I'm interested in where all those resolve calls come from, because it > > could

Re: [akka-user] How to control excessive logging from LocalActorRefprovider

2015-06-18 Thread Brice Figureau
Hi, I'm also seeing this log message logged on a very unloaded cluster, on akka 2.3.11. On Wed, 2015-06-17 at 13:31 +0200, Patrik Nordwall wrote: > I'm interested in where all those resolve calls come from, because it > could be a performance issue. It could be deserialization of ActorRef. It's

Re: [akka-user] TCP Actors: Sometimes client request is spitted in two pars

2015-06-18 Thread Roland Kuhn
TCP is fundamentally a stream protocol, if you need to transmit messages that are larger than one byte you will definitely have to implement a framing protocol on top—that is not best practice but strictly required. The fact that you get multiple bytes at once in your Actors is due to the O/S ke

[akka-user] Modeling a simple MMO game entities as actors? Is it OK?

2015-06-18 Thread Amir Karimi
Hi, I'm working on a simple MMO game as a side project which is like Travian. I've decided to use Akka as the game back-end, so I would like to share my design with you. Your suggestions and feedbacks are very appreciated. Each of the following entities are

[akka-user] Re: TCP Actors: Sometimes client request is spitted in two pars

2015-06-18 Thread Dmitrii Galagaev
Yes, I know that it's one of best practice when implementing tcp sockets protocol. But I am using TCP Actors from Akka framework and there is no any stream. I know that could fixing it by concatenation ByteString from different TCP.Received message. But for me it looks like hack. Because it loo