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


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
12 answers

What are the best use cases for Akka framework

I have heard lots of raving about Akka framework (Java/Scala service platform), but so far have not seen many actual examples of use cases it would be good for. So I would be interested in hearing about things developers have used it…
  • 113,358
  • 34
  • 211
  • 239
4 answers

Akka Kill vs. Stop vs. Poison Pill?

Newbie question of Akka - I'm reading over Akka Essentials, could someone please explain the difference between Akka Stop/Poison Pill vs. Kill ? The book offers just a small explaination "Kill is synchronous vs. Poison pill is asynchronous." But in…
  • 5,379
  • 4
  • 22
  • 26
3 answers

When to use actors instead of messaging solutions such as WebSphere MQ or Tibco Rendezvous?

I've already read the question and answers to What design decisions would favour Scala's Actors instead of JMS?. Usually, we use messaging solutions which have existed for years already: either a JMS implementation such as WebSphere MQ or Apache…
Kai Wähner
  • 1,201
  • 2
  • 10
  • 7
5 answers

How does akka compare to Erlang?

I've been looking at akka recently and it's pretty impressive. It looks like it has most of the killer features of erlang - location transparency, supervision hierarchies, and more. Are there any features erlang has that akka doesn't?
  • 65,519
  • 58
  • 198
  • 260
3 answers

How is Node.js evented system different than the actor pattern of Akka?

I've worked with Node.js for a little while and consider myself pretty good with Java. But I just discovered Akka and was immediately interested in its actor pattern (from what I understand). Now, assuming my JavaScript skills were on par with my…
  • 11,248
  • 22
  • 85
  • 136
3 answers

Akka or Reactor

I am in the process of starting a new project (java-based). I need to build it as a modular, distributed and resilient architecture. Therefore I would like to have the business processes to communicate among themselves, be interoperable, but also…
David Riccitelli
  • 7,491
  • 5
  • 42
  • 56
2 answers

Akka in Scala, exclamation mark and question mark

What is the difference between exclamation mark (!) and question mark (?) when sending messages to Actors? myActor ! Hello(value1) myActor ? Hello(value1)
  • 7,551
  • 13
  • 49
  • 90
3 answers

What's the difference of the Akka's Actor with Scala's Actor model

I found there is also an Akka actor model, so I am wondering what's the difference between the Akka's Actor and Scala's Actor model?
Evans Y.
  • 4,209
  • 6
  • 35
  • 43
3 answers

How are the multiple Actors implementation in Scala different?

With the release of Scala 2.9.0, the Typesafe Stack was also announced, which combines the Scala language with the Akka framework. Now, though Scala has actors in its standard library, Akka uses its own implementation. And, if we look for other…
Daniel C. Sobral
  • 295,120
  • 86
  • 501
  • 681
3 answers

Akka Actor not terminating if an exception is thrown

I am currently trying to get started with Akka and I am facing a weird problem. I've got the following code for my Actor: class AkkaWorkerFT extends Actor { def receive = { case Work(n, c) if n < 0 => throw new Exception("Negative number") …
  • 25,481
  • 10
  • 85
  • 128
5 answers

Akka - How many instances of an actor should you create?

I'm new to the Akka framework and I'm building an HTTP server application on top of Netty + Akka. My idea so far is to create an actor for each type of request. E.g. I would have an actor for a POST to /my-resource and another actor for a GET to…
Brian DiCasa
  • 9,369
  • 18
  • 65
  • 97
1 answer

How can I get the name of an Akka actor from within the actor itself?

So, if I have an actor, I can give it a name. But, can I access that name internally? Example: class Actorz extends Actor with ActorLogging { val actorName = //??What function def receive = { case x => log.debug(actorName+": Received…
Dante Romero
  • 1,234
  • 1
  • 8
  • 9
3 answers

Apache Spark vs Akka

Could you please tell me the difference between Apache Spark and AKKA, I know that both frameworks meant to programme distributed and parallel computations, yet i don't see the link or the difference between them. Moreover, I would like to get the…
4 answers

Difference between case class and case object?

I am learning Scala and Akka and in my recent lookup for a solution, I found something like case class TotalTaxResult(taxAmount:Double) case object TaxCalculationTimeout What is the difference between the two? When should I use one over the…
  • 87,243
  • 191
  • 450
  • 722
2 answers

What are the differences between Scala middleware choices?

Note: Unfortunately this question was closed, but I'm trying to maintain it for if someone else comes along with the same question. I've been looking for a good solution to developing a service in Scala that will sit between mobile devices and…
  • 16,506
  • 19
  • 100
  • 167
2 3
99 100