Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does akka compare to Erlang? [closed]

Tags:

erlang

akka

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?

like image 451
ryeguy Avatar asked Dec 20 '10 15:12

ryeguy


People also ask

Is Akka scalable?

Akka is a very scalable piece of software, not only in the context of performance but also in the size of applications it is useful for.

What is Akka good for?

Akka gives developers a unified way to build scalable and fault-tolerant software that can scale up on multicore systems, and scale out in distributed computing environments, which today often means in the cloud.

Is Akka a good framework?

As a conclusion: The actor model itself is what you should adopt first and Akka is a very reliable framework helping you to implement it with a lot of benefits you will receive along the way.

How does Akka work?

Akka ensures that each instance of an actor runs in its own lightweight thread and that messages are processed one at a time. In this way, each actor's state can be reliably maintained without the developer needing to explicitly worry about synchronization or race conditions.


1 Answers

Disclaimer: I am the PO for Akka

  • Erlang does copy-on-send - Akka uses shared memory (immutable objects) for in-VM sends
  • Erlang does per-process GC - Akka uses JVM GCs
  • Erlang has OTP - Akka integrates with the entire Java ecosystem (Apache Camel, JAX-RS, etc etc)
  • Erlang does the process scheduling for you - Akka allows you to use many different Dispatchers with endless configuration opportunities
  • Erlang does hot code reload - Akka can support it, but it's less flexible because of JVM classloading

Those are the ones from the top of my head.

On the other hand, using Akka means that you can use Scala, Java, Groovy or JRuby to write your applications.

like image 190
Viktor Klang Avatar answered Oct 01 '22 02:10

Viktor Klang