This is the code repository for Akka Cookbook, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.
Akka is an open source toolkit that simplifies the construction of distributed and concurrent applications on the JVM. This book will teach you how to develop reactive applications in Scala using the Akka framework.
This book will show you how to build concurrent, scalable, and reactive applications in Akka. You will see how to create high performance applications, extend applications, build microservices with Lagom, and more.
We will explore Akka's actor model and show you how to incorporate concurrency into your applications. The book puts a special emphasis on performance improvement and how to make an application available for users. We also make a special mention of message routing and construction.
By the end of this book, you will be able to create a high-performing Scala application using the Akka framework.
All of the code is organized into folders. Each folder starts with a number followed by the application name. For example, Chapter 06.
The code will look like the following:
package com.packt.chapter6
sealed trait UserAction
case object Add extends UserAction
case object Remove extends UserAction
case class UserUpdate(userId: String, action: UserAction)
sealed trait Event
case class AddUserEvent(userId: String) extends Event
case class RemoveUserEvent(userId: String) extends Event
Chapter number | Software required (With version) | Free/Proprietary | If proprietary, can code testing be performed using a trial version | If proprietary, then cost of the software | Download links to the software | Hardware specifications | OS required |
---|---|---|---|---|---|---|---|
All | SBT 0.13.13 | Free | No | http://www.scala-sbt.org/ | No hardware specifications. | Windows,Linux,Mac OS |
The steps should be listed in a way that it prepares the system environment to be able to test the codes of the book.
SBT:
Download latest package from http://www.scala-sbt.org/download.html
Install package
Run sbt “sbt sbtVersion” in the command line to test the software was installed correctly.
The Code folder contains the code samples used in this book.
Code bundle for Chapter 1 to 5 is present in the "Hello-akka" folder.
Software_Hardware_list file contains the list of required software and hardware for this book.
Happy coding! :)
Click here if you have any feedback or suggestions.