Akka (toolkit)

Akka
Original author(s) Jonas Bonér
Developer(s) Lightbend
Initial release July 2009 (2009-07)
Stable release
2.5.13[1] / January 11, 2018 (2018-01-11)[2]
Repository Edit this at Wikidata
Written in Scala
Operating system Cross-platform
Platform Java Virtual Machine
License Apache License 2.0
Website akka.io

Akka is a free and open-source toolkit and runtime simplifying the construction of concurrent and distributed applications on the JVM. Akka supports multiple programming models for concurrency, but it emphasizes actor-based concurrency, with inspiration drawn from Erlang.[3]

Language bindings exist for both Java and Scala. Akka is written in Scala and, as of Scala 2.10, Akka's actor implementation is included as part of the Scala standard library.[4]

History

An actor implementation, written by Philipp Haller, was released in July 2006 as part of Scala 2.1.7.[5] By 2008 Scala was attracting attention for use in complex server applications, but concurrency was still typically achieved by creating threads that shared memory and synchronized when necessary using locks. Aware of the difficulties with that approach and inspired by the Erlang programming language's library support for writing highly concurrent, event-driven applications, Jonas Bonér created Akka to bring similar capabilities to Scala and Java. Bonér began working on Akka in early 2009[6] and wrote up his vision for it in June of that year.[7] The first public release was Akka 0.5,[8] announced in January 2010.[9] Akka is now part of the Lightbend Platform together with the Play framework and the Scala programming language.

Distinguishing Features

The key points distinguishing applications based on Akka actors are:

  • Concurrency is message-based and asynchronous: typically no mutable data are shared and no synchronization primitives are used; Akka implements the actor model.
  • The way actors interact is the same whether they are on the same host or separate hosts, communicating directly or through routing facilities, running on a few threads or many threads, etc. Such details may be altered at deployment time through a configuration mechanism, allowing a program to be scaled up (to make use of more powerful servers) and out (to make use of more servers) without modification.
  • Actors are arranged hierarchically with regard to program failures, which are treated as events to be handled by an actor's supervisor (regardless of which actor sent the message triggering the failure). In contrast to Erlang, Akka enforces parental supervision, which means that each actor is created and supervised by its parent actor.

Akka has a modular structure, with a core module providing actors. Other modules are available to add features such as network distribution of actors, cluster support, Command and Event Sourcing, integration with various third-party systems (e.g. Apache Camel, ZeroMQ), and even support for other concurrency models such as Futures and Agents.

Project Structure

Viktor Klang became the technical lead for the Akka project in September 2011. When Viktor became Director of Engineering at Lightbend in December 2012, Roland Kuhn became the technical lead for Akka. The main part of the development is done by a core team employed at Lightbend,[10] supported by an active community.[11] The current emphasis is on extending cluster support.

Relation to other Libraries

Other frameworks and toolkits have emerged to form an ecosystem around Akka:

Akka actors are considered an integral part of the Scala standard library.[21] There are more than 250 public projects registered on GitHub which use Akka.[22]

Publications about Akka

There are several books about Akka:

  • Akka Essentials[23]
  • Akka Code Examples
  • Akka Concurrency[24]
  • Akka in Action[25]
  • Effective Akka[26]
  • Composable Futures with Akka 2.0, Featuring Java, Scala and Akka Code Examples[27]

Akka also features in

  • P. Haller's "Actors in Scala"[28]
  • N. Raychaudhuri's "Scala in Action"[29]
  • D. Wampler's "Functional Programming for Java Developers"[30]
  • A. Alexander's "Scala Cookbook"[31]
  • V. Subramaniam's "Programming Concurrency on the JVM"[32]
  • M. Bernhardt's "Reactive Web Applications"[33]

Besides many web articles describe the commercial use of Akka[34][35] there are also overview articles about it.[36][37]

See also

  • Free software portal

References

  1. "Try Akka Akka". Retrieved 2018-06-08.
  2. Akka Team. "Akka 2.5.9 Released and 2.4.x End-Of-Life". Retrieved 2018-01-11.
  3. Akka Team. "Scala Actors Introduction". Retrieved 17 September 2018.
  4. Jovanovic, Vojin. "The Scala Actors Migration Guide". Retrieved 13 March 2013.
  5. "Scala Version History - Older versions". scala-lang.org. 2009-02-16. Archived from the original on 2013-01-04.
  6. Jonas Bonér (2009-02-16). "init project setup". github.com.
  7. Bonér, Jonas. "Akka Actor Kernel". scala-language@googlegroups.com. Archived from the original on 2016-03-04. Retrieved 2017-07-13.
  8. Jonas Bonér (2009-07-12). "v0.5". github.com.
  9. Jonas Bonér (2010-01-04). "Introducing Akka - Simpler Scalability, Fault-Tolerance, Concurrency & Remoting through Actors". jonasboner.com.
  10. "Akka team". akka.io. Retrieved 6 June 2013.
  11. "Akka contributors list". github.com. Retrieved 6 June 2013.
  12. Doenitz, Mathias. "Spray toolkit". spray.io. Retrieved 6 June 2013.
  13. "Play framework documentation: Integrating with Akka". playframework.com. Retrieved 6 June 2013.
  14. "Spark project sources". github.com. Retrieved 6 June 2013.
  15. "Socko Web Server". sockoweb.org. Retrieved 6 June 2013.
  16. "eventsourced library". eligosource. Retrieved 6 June 2013.
  17. "Gatling stress test tool". github.com. Retrieved 6 June 2013.
  18. "Scalatra documentation: Akka". scalatra.org. Retrieved 6 June 2013.
  19. "Vaadin in Akka". Vaadin.com. Retrieved 26 April 2014.
  20. "Apache Flink - Akka for the win !". flink.apache.org. Retrieved 2 December 2015.
  21. Fulton, Scott M. "The Middleware Connection: Scala, Akka, and Heroku". readwrite.com. Retrieved 6 June 2013.
  22. Tasharofi, Samira. "Akka actor project corpus at GitHub". cs.illinois.edu.
  23. Gupta, Munish K. (2012). Akka Essentials. Packt Publishing. p. 334. ISBN 1849518289.
  24. Wyatt, Derek (2013). Akka Concurrency. Artima. p. 521. ISBN 0981531660.
  25. Roestenburg, Raymond (2013). Akka in Action. Manning Publications. p. 475. ISBN 1617291013.
  26. Allen, Jamie (2013). Effective Akka. O'Reilly Media. p. 74. ISBN 1449360076.
  27. Slinn, Michael (2012). Composable Futures with Akka 2.0. Micronautics Research. p. 178. ISBN 0984278923.
  28. Haller, Philipp (2012). Actors in Scala. Artima. p. 169. ISBN 0981531652.
  29. Raychaudhuri, Nilanjan (2013). Scala in Action. Manning Publications. p. 416. ISBN 1935182757.
  30. Wampler, Dean (2011). Functional Programming for Java Developers. O'Reilly Media. p. 90. ISBN 1449311032.
  31. Alexander, Alvin (2013). Scala Cookbook. O'Reilly Media. p. 722. ISBN 1449339611.
  32. Subramaniam, Venkat (2011). Programming Concurrency on the JVM: Mastering Synchronization, STM, and Actors. Pragmatic Bookshelf. p. 280. ISBN 193435676X.
  33. Bernhardt, Manuel (2016). Reactive Web Applications: Covers Play, Akka and Reactive Streams. Manning Publications. p. 328. ISBN 9781633430099.
  34. Darrow, Barb. "Juniper networks signs on with Scala". gigaom.com. Retrieved 8 June 2013.
  35. Ross, David. "Scaling the Klout API with Scala, Akka and Play". Retrieved 8 June 2013.
  36. Haines, Stephen. "Open source Java projects: Akka". javaworld.com. Retrieved 8 June 2013.
  37. "Java Magazin 6.13". jaxenter.de. Archived from the original on 13 August 2013. Retrieved 8 June 2013.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.