Skip to content

This project is just an example of how to use some Akka libraries in practice.

Notifications You must be signed in to change notification settings

stphngrtz/computation-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Computation Service

This project is just an example of how to use some Akka libraries in practice. It is based on the Distributed Worker Template.

  • Akka Java 8 Actors and FSM
  • Akka (Remote) Cluster
  • Akka HTTP
  • MongoDB
  • Guava Graph / Network
  • ANTLR

How it works

First you have to create a Structure, which consists of a graph of Elements. Each Element takes a set of Definitions, which are similar to variables. Then you create a Computation with an expression in reference to a Structure and an Element. Let's have a look at the following example.

Structure

                A1
             v      v
          B1          B3
       v      v          v
    C1          C2         C3

Definitions

A1: x=1
B1: y=10
B2: y=20
C1: z=100
C2: z=200
C3: z=300

Computation

Element: B1
Expression: 25 + z - y
Result: 25 + (100+200) - 10 = 315

As soon as the workers have processed the result, the Computation will be updated.

About

This project is just an example of how to use some Akka libraries in practice.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published