Giter Club home page Giter Club logo

akka-tutorial's Introduction

Akka tutorial

The two projects akka-tutorial and octopus demonstrate how to use the actor programming framework Akka with Java in a distributed setting. The akka-tutorial project is a very simple grid computing app for determining all prime numbers in a given range of numbers. The octopus project, in contrast, performs a binary tree traversal where each node represents some arbitrary work that needs to be performed. Both projects let you start a master system that can be supported in its tasks by arbitrary many slave systems. For a high-level overview of the apps' architectures, have a look at the tutorial slides and the teaching slides.

Requirements

In order to build and execute the code, you will need Java 8 and Maven. To make sure that your project is set up correctly in an IDE, you can run the tests in the akka-tutorial/src/test/java folder. If you are operating from a command line instead, run mvn test in the folder with pom.xml file.

Execution instructions

Just run the main class de.hpi.akka_tutorial.Main or de.hpi.octopus.OctopusApp, respectively, from within your IDE or from the command line. The app will then print an overview of the different possible parameters. Append parameters of your choice to the run configuration in your IDE or to your command line call, as exemplified below:

  • Parameters to start a master with two local workers: master --workers 2
  • Parameters to start a slave that tries to connect to a remote master: slave --master <master host>:<master port>

mvn package

e.g. java -jar octopus-1.0.jar master -w 2 -h localhost

akka-tutorial's People

Contributors

thorsten-papenbrock avatar juliuscosmoromeo avatar philipphager avatar sekruse avatar 2start avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.