akka-workshop2017

Akka Workshop for ESD-Module. Done in 2017 by Max Messerich and Tobias Derksen

View on GitHub

Workshop

Begin

  1. Download prepared workshop task: Akka Task
  2. Open Project with your IDE - perferably NetBeans
  3. Look at TODOs in the comments (On NetBeans Ctrl + 6)
  4. Try to implement the missing functionality
  5. There are some tests but not everything is covered.
  6. Improve the program with one of the ideas below or come up with your own improvement

There are also questions at certain locations. Try to answer them, this will help you to understands the concepts.
See also: Akka Javadocs

Task Overview

Do you remember the restaurant task from the JAVA3 course? (Original assignment description)

One of the most challenging part of this assignment is the synchronization between the restaurant manager, the chef who cooks the meals and the waiter who collects orders and serves meals. There are a lot of different possibilities to solve the problems, some of them works with the some Java features which are available now for a long time (see wait-notify). You can also make use of the advanced Java Executor Framework

For our workshop task we will try to implement the a restaurant using Akka Actors.

Structure

Actors The program consists of four actors:

Messages

Recipes The assignment already consists of a set of recipes. Feel free to add your own ones.

Improvements?

The task offers a lot of opportunities to improve the implementation.

You can also think of your own improvements. Maybe restructuring the whole application. Or pulling out some actors to run somewhere else and connecting them using networks (see Akka Networking).



Prev