Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
A Hands-On Guide to Akka with Scala
Rating: 4.4 out of 5(39 ratings)
878 students

A Hands-On Guide to Akka with Scala

Learn Akka with simple hands-on examples
Created byScott Cosentino
Last updated 9/2023
English
English [Auto],

What you'll learn

  • Akka with Scala
  • How to setup actors and actor systems
  • Futures
  • Creating Child Actors
  • OneForAll Fault Tolerance
  • AllForOne Fault Tolerance
  • Message Routing
  • Scheduling

Course content

4 sections17 lectures1h 44m total length
  • Using sbt with Akka8:27

    Set up sbt for an akka project, install sbt, and configure build.sbt with name, version, scala version 2.11.7, and akka dependencies; organize code under a skeleton source folder.

  • Creating an actor system5:36

    Create an actor system in a Scala Akka project to host multiple actors that handle distinct tasks, such as a storefront purchase flow and a credit processor. Set up a main entry point, name the system, and print its value to verify, using sbt run to display the hello world output across regional actor spaces.

  • Sending messages to actors8:41

    Define an Akka actor with a running total, handle integer messages to update the sum, and print results; gracefully report errors for non-integers.

  • Returning from actors with futures8:11

    Return values from actors using futures and the ask pattern in Akka with Scala; utilize await with a 10-second timeout to isolate call time from use in a multithreaded environment.

  • Changing actor states7:45

    Explore how Akka actors change state with become, moving from initial to authorized and not authorized states in a login/logout flow, illustrating simple state machine behavior.

  • Stopping actors6:10

    Learn to stop actors in Akka with Scala using stop objects and poison pill, implement a shutdown actor, and observe termination and post shutdown messaging, with poison pill usually preferred.

Requirements

  • A basic understanding of Scala

Description

Welcome to A Hands-On Guide to Akka with Scala. In this course, you will learn the fundamental concepts of Akka through hands-on examples. The goal of this course is to demonstrate the basic ideas of Akka in a way that is easy to follow along with. By the end of this course, you will have experience working with:

  1. Actors

  2. Futures

  3. Routing

  4. Schedules

This course is a great introduction to the basics of Akka and distributed computing. If you are looking to get a great foundation for Akka, you've come to the right place!

Who this course is for:

  • Scala programmers interested in Akka
  • Programmers interested in distributed computing