When to use Actors vs Futures?

There certainly is no shortage of opinion on the topic of what should and shouldn’t be an actor. Like these two posts: http://noelwelsh.com/programming/2013/03/04/why-i-dont-like-akka-actors/ http://www.chrisstucchio.com/blog/2013/actors_vs_futures.html I don’t think you’re going to find an absolute answer to this question other then that it’s situational and it’s really up to your preferences and your problem. What I can … Read more

How can I have an Akka actor executed every 5 min?

You don’t really need an actor to do this in Akka 1.3.1 you can schedule a function to be called every 5 minutes like this: Scheduler.schedule(() => println(“Do something”), 0L, 5L, TimeUnit.MINUTES) However, if you do want it to be an actor for other reasons you would call it like this case class Message() val … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)