Questions tagged [akka]

Akka is an open-source toolkit and runtime simplifying the construction of concurrent and distributed applications on the JVM. It implements the actor model known from Erlang.

From its website:

We believe that writing correct concurrent, fault-tolerant and scalable applications is too hard. Most of the time it's because we are using the wrong tools and the wrong level of abstraction. Akka is here to change that. Using the Actor Model and Software Transactional Memory, we raise the abstraction level and provide a better platform to build correct concurrent and scalable applications. For fault-tolerance, we adopt the "Let it crash" / "Embrace failure" model, which has been used with great success in the telecom industry to build applications that self-heal, and systems that never stop. Actors also provide the abstraction for transparent distribution and the basis for truly scalable and fault-tolerant applications. Akka is Open Source and available under the Apache 2 License.

Recommended reference sources

Documentation

What does AKKA mean?

It is the name of a beautiful Swedish mountain up in the northern part of Sweden called Laponia. The mountain is also sometimes called ‘The Queen of Laponia’.

Akka is also the name of a goddess in the Sámi (the native Swedish population) mythology. She is the goddess that stands for all the beauty and good in the world. The mountain can be seen as the symbol of this goddess.

Also, the name AKKA is a palindrome of letters A and K as in Actor Kernel.

Akka is also:

  • the name of the goose that Nils travelled across Sweden on in The Wonderful Adventures of Nils by the Swedish writer Selma Lagerlöf.
  • the Finnish word for ‘nasty elderly woman’ and the word for ‘elder sister’ in the Indian languages Tamil, Telugu, Kannada and Marathi.
  • a font
  • a town in Morocco
  • a near-earth asteroid
8162 questions
28
votes
3 answers

Akka TypedActor vs. writing my own static interface to an Actor class

I've been using Akka and Scala for about a month and I'm somewhat bothered by replacing explicit interfaces with messages. Consider the following simple Akka Actor: case class DoMyHomework() class Parent extends Actor { def receive = { case d:…
Pino
  • 281
  • 3
  • 5
27
votes
1 answer

Failed to load class "org.slf4j.impl.StaticLoggerBinder" message error from SLF4J

I am developing a simple server using Akka and Akka-http. I always get following error message in stdout when I run application into IntelliJ: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP)…
Sergio Rodríguez Calvo
  • 1,183
  • 2
  • 16
  • 32
27
votes
1 answer

Why Spark 1.6 does not use Akka?

When I read spark-1.6 source code of the Master class, the receiveAndReply method seems not to be using Akka. [Cf. here.] Why is it not using Akka ? And What did they replace Akka with ?
高源伯
  • 367
  • 4
  • 4
27
votes
2 answers

Is passing around ActorRef to other Actors good or bad ?

I'm trying to figure out if my usage of passing Akka ActorRef around to other actors is not an anti-pattern. I've a few actors in my system. Some are long lived (restClientRouter,publisher) and some die after that they have done the work (geoActor).…
Soumya Simanta
  • 11,523
  • 24
  • 106
  • 161
27
votes
3 answers

How to send a message to an actor's parent in Akka Classic?

What is the method for an actor to send a message to its parent? I'm using Akka 2.2
seinecle
  • 10,118
  • 14
  • 61
  • 120
27
votes
4 answers

Akka SLF4J logback configuration and usage

I have done the following steps to try and configure logging for my akka application: created an application.conf file and placed it in src/main/resources. It looks like: akka { event-handlers = ["akka.event.slf4j.Slf4jEventHandler"]…
Apple Pie
  • 383
  • 1
  • 4
  • 7
27
votes
3 answers

How can I make A future of future into one future object?

Env: Akka 2.1, scala version 2.10.M6, JDK 1.7,u5 Now is my problem: I have: future1 = Futures.future(new Callable>(){...}); future2 = ? extends Object; Future.sequence(future1, future2).onComplete(...) now in first line, I have a…
Vincent Zou
  • 431
  • 1
  • 5
  • 10
27
votes
6 answers

What are the language and product alternatives to Akka?

Right now I'm looking at Play Framework and like it a lot. One of the parts heavy advertised amongst the features offered in Play is Akka. In order to better understand Akka and how to use it properly, can you tell me what are the alternatives in…
Mike Z
  • 1,467
  • 2
  • 14
  • 16
26
votes
4 answers

What is the difference between Typed and UnTyped Actors in Akka? When to use what?

I have tried to read the Akka documentation to find out the exact difference between Typed and Untyped actors. When to use what? I am not sure what I'm missing. Can somebody point me to something relevant or provide an answer to this question here…
Kamesh Rao Yeduvakula
  • 1,215
  • 2
  • 15
  • 27
26
votes
2 answers

What is bulkheading in computer science?

I'm reading up on dispatchers in Akka, and I learnt that its used for bulkheading purposes. What is bulkheading in computer science?
nadia
  • 393
  • 4
  • 7
26
votes
4 answers

Scala + Akka: How to develop a Multi-Machine Highly Available Cluster

We're developing a server system in Scala + Akka for a game that will serve clients in Android, iPhone, and Second Life. There are parts of this server that need to be highly available, running on multiple machines. If one of those servers dies…
Unoti
  • 1,283
  • 11
  • 12
26
votes
2 answers

Akka actors and futures: Understanding by example

I'm trying to learn Akka actors and futures but after reading the docs at http://akka.io and doing http://doc.akka.io/docs/akka/2.0.2/intro/getting-started-first-java.html I'm still having some issues with understanding. I guess calculate the value…
jakob
  • 5,979
  • 7
  • 64
  • 103
25
votes
3 answers

How to add elements to Source dynamically?

I have example code to generate an unbound source and working with it: object Main { def main(args : Array[String]): Unit = { implicit val system = ActorSystem("Sys") import system.dispatcher implicit val materializer =…
krynio
  • 2,442
  • 26
  • 30
25
votes
1 answer

What Happened to Typesafe Console for Akka/Play Monitoring?

All links for information on Typesafe Console (e.g. http://typesafe.com/platform/runtime/console) get redirected to Typesafe Activator, a project tutorial/templating tool (not a monitoring tool). I can't find any information or links on the Typesafe…
metasim
  • 4,793
  • 3
  • 46
  • 70
25
votes
3 answers

How to profile Akka applications?

I have a small Akka application that passes many messages between its actors and each actor does some calculations on the data it receives. What I want is to profile this application in order to see which parts of the code take up most time and so…
Björn Jacobs
  • 4,033
  • 4
  • 28
  • 47