Questions tagged [akka]

Akka is a toolkit and runtime for building highly concurrent, distributed, and fault tolerant event-driven applications on the JVM

Akka gives you very fine grained parallel programming. You split you tasks up into smaller sub tasks and have a lot of actors compute these tasks and communicate the result. Akka works with Java and Scala and runs on JVM. Write your application in the Akka style and you can scale it up and out by configuration, with zero code changes. Akka actors allow you to implement reliable and maintainable failure handling in a distributed application—across multiple cores and cluster node. It would be analogous to 'Storm' and could be alternate to Hadoop

34 questions
76
votes
3 answers

What is the difference between a Future and a Promise?

What is the difference between a Future and a promise? (In Akka and Gpars.) They look the same to me as both block and return the value of the future when get is called and a promise is to get the result of a future.
68
votes
5 answers

When is it NOT good to use actors in akka/erlang?

I've been working with akka for 7-8 months now daily. When I started, I would be working on applications and notice that actors would be used basically anywhere once inside the actor system for communicating between most objects. So I did the same -…
JasonG
  • 1,129
  • 1
  • 10
  • 14
25
votes
1 answer

Is Erlang really an actor model language?

I was reading this article: http://www.doc.ic.ac.uk/~nd/surprise_97/journal/vol2/pjm2/ And it mentions that: ...in the actor model even an integer is represented as an actor... Wikipedia confirms: The Actor model adopts the philosophy that…
Den
  • 4,827
  • 2
  • 32
  • 48
23
votes
1 answer

Does Akka obsolesce JMS/AMQP message brokers?

I spent the last week deep diving into the Akka docs and finally understand what actor systems are, and the problems that they solve. My understanding (and experience with) traditional JMS/AMQP message brokers is that they exist to provide the…
smeeb
  • 4,820
  • 10
  • 30
  • 49
16
votes
1 answer

Why is Akka being marketed as reactive? Is Actor Model reactive?

As far as I understand the Actor Model and the Reactive Programming are separate concepts. Actor Model does not seem to be inherently reactive to me. However the Akka framework which is an Actor Model implementation is being described as…
Den
  • 4,827
  • 2
  • 32
  • 48
12
votes
3 answers

What is a "lifted representation"?

Just ran across this term here: http://www.codemesh.io/codemesh2014/viktor-klang "We'll demonstrate the Flow API—a lifted representation—as well as a pluggable way of transforming the lifted representation into the execution representation—Flow…
Den
  • 4,827
  • 2
  • 32
  • 48
9
votes
2 answers

Why is Akka good for concurrency?

I am new to Akka and actor framework - I am sure I am missing something obvious, please accept my apologies in advance. I keep reading that one of the main points to choose Akka is the way it manages concurrency. It is not clear to me why Akka is…
abx78
  • 415
  • 4
  • 10
7
votes
1 answer

akka and futures, which ExecutionContext should be used

Following this blog by @Tomasz Nurkiewicz we can see that 4 different approaches are available for picking the ExecutionContext, when interacting with akka actors, for scala futures to run on. import ExecutionContext.Implicits.global //or implicit…
Yaneeve
  • 219
  • 1
  • 3
  • 11
6
votes
2 answers

Akka.Net - real scenarios of usage

Now I'm trying to understand Actor model. I know main concepts like everything is an actor etc. I see a lot of words like "it's very good from performance point of view", "no locks because there is no shared resources and messages are immutable".…
mtkachenko
  • 267
  • 3
  • 8
6
votes
1 answer

Entities (DDD) when using CQRS on Akka

When using Akka, CQRS style, is still there a place for Entities? Or does everything now go to Aggregates, implemented as Actors + Value Objects. I notice that most entities are written as mutable objects with side effects - this doesn't seem to…
jvliwanag
  • 269
  • 1
  • 5
6
votes
1 answer

When should I use ZeroMQ and when should I use Akka?

My understanding of Akka is that it allows you to define groups of mini-threads ("Actors") and then have them communicate with each other (and do work) using events. My understanding of ZeroMQ is that its a TCP socket library that allows threads to…
herpylderp
  • 2,017
  • 3
  • 21
  • 27
5
votes
1 answer

Is the actor model suited for an application dealing with elapsed time?

I need to create a distributed application with timers / periodically checking two timestamps for elapsed time. Is it possible to achieve following behaviour with the actor model: Spawn Child actor Send Message to Child actor to start the routine…
5
votes
1 answer

How can I scale spring application context?

I'm currently working on a project that need to be dynamically scaled on demand according to the need. My question is about scaling spring context. My web application has a classical multi module core (service, persistence, domain), which use use by…
Zenithar
  • 195
  • 1
  • 10
4
votes
1 answer

Architecture for Real Time data processing

I'm looking at building out the architecture for the following, and wanted to see what others think about it. Assume that the system is running some non-trivial algorithm (so it's not simply a sum of something etc.) on the data collected on each…
kozyr
  • 141
  • 2
4
votes
1 answer

How do I design concurrent scalable system with guaranteed ordering? How about Akka?

I have designed a simple PoC system that processes a feed of prices that tick. It consumes a stream of "Ticker, Price" objects off JMS and updates a map, so that the map simply contains the latest price for each ticker. So far so good. Now for the…
Matt
  • 141
  • 2
1
2 3