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
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.
A1
v v
B1 B3
v v v
C1 C2 C3
A1: x=1
B1: y=10
B2: y=20
C1: z=100
C2: z=200
C3: z=300
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.