Learning Akka (Paperback)

Jason Goodwin


Key Features

  • Build networked applications that self-heal
  • Scale out your applications to handle more traffic faster
  • An easy-to-follow guide with a number of examples to ensure you get the best start with Akka

Book Description

Software today has to work with more data, more users, more cores, and more servers than ever. Akka is a distributed computing toolkit that enables developers to build correct concurrent and distributed applications using Java and Scala with ease, applications that scale across servers and respond to failure by self-healing. As well as simplifying development, Akka enables multiple concurrency development patterns with particular support and architecture derived from Erlang's concept of actors (lightweight concurrent entities). Akka is written in Scala, which has become the programming language of choice for development on the Akka platform.

Learning Akka aims to be a comprehensive walkthrough of Akka. This book will take you on a journey through all the concepts of Akka that you need in order to get started with concurrent and distributed applications and even build your own.

Beginning with the concept of Actors, the book will take you through concurrency in Akka. Moving on to networked applications, this book will explain the common pitfalls in these difficult problem areas while teaching you how to use Akka to overcome these problems with ease.

The book is an easy to follow example-based guide that will strengthen your basic knowledge of Akka and aid you in applying the same to real-world scenarios.

What you will learn

  • Use Akka to overcome the challenges of concurrent programming
  • Resolve the issues faced in distributed computing with the help of Akka
  • Scale applications to serve a high number of concurrent users
  • Make your system fault-tolerant with self-healing applications
  • Provide a timely response to users with easy concurrency
  • Reduce hardware costs by building more efficient multi-user applications
  • Maximise network efficiency by scaling it

About the Author

Jason Goodwin is a developer who is primarily self-taught. His entrepreneurial spirit led him to study business at school, but he started programming when he was 15 and always had a high level of interest in technology. This interest led his career to take a few major changes away from the business side and back into software development. His journey has led him to working on high-scale distributed systems. He likes to create electronic music in his free time.

He was first introduced to an Akka project at a Scala/Akka shop―mDialog―that built video ad insertion software for major publishers. The company was acquired by Google eventually. He has also been an influential technologist in introducing Akka to a major Canadian telco to help them serve their customers with more resilient and responsive software. He has experience of teaching Akka and functional and concurrent programming concepts to small teams there. He is currently working via Adecco at Google.

Table of Contents

  1. Starting Life as an Actor
  2. Actors and Concurrency
  3. Getting the Message Across
  4. Actor Lifecycle – Handling State and Failure
  5. Scaling Up
  6. Successfully Scaling Out – Clustering
  7. Handling Mailbox Problems
  8. Testing and Design
  9. A Journey's End



  • 構建能自我修復的網絡應用程式

  • 擴展應用程式以處理更多的流量

  • 提供易於遵循的指南,並附有多個示例,確保您在使用Akka時能夠有最佳的開始







  • 使用Akka克服並發編程的挑戰

  • 使用Akka解決分散式計算中的問題

  • 擴展應用程式以服務大量並發使用者

  • 通過自我修復的應用程式使系統具有容錯能力

  • 通過輕鬆並發提供及時響應給使用者

  • 通過構建更高效的多用戶應用程式降低硬體成本

  • 通過擴展網絡提高網絡效率


Jason Goodwin是一位主要自學的開發人員。他的創業精神使他在學校學習了商業,但他在15歲時開始編程,並一直對技術有著高度的興趣。這種興趣使他的職業生涯從商業領域轉向軟體開發。他的經歷使他參與了高規模分散式系統的開發。他在空閒時間喜歡創作電子音樂。



  1. 作為Actor的起點

  2. Actor和並發

  3. 傳遞訊息

  4. Actor生命週期 - 處理狀態和失敗

  5. 擴展

  6. 成功擴展 - 集群

  7. 處理郵箱問題

  8. 測試和設計

  9. 旅程的終點