Nussknacker scenarios can be deployed on Apache Flink.
Following diagrams illustrate architecture of Nussknacker setup with Flink compared to standard Flink application deployment (more details about architecture of Flink itself can be found here):
This architecture assumes that:
- Flink should be deployed in Session Mode
- Scenario runtimes (within one scenario type) are executed on the same Flink cluster
- which means, that all scenario deployments (within one scenario type) use the same resources - unstable behavior of one job can have impact on others
To deploy scenario to Flink cluster Nussknacker prepares JAR file with Model code and serialized scenario representation. This package is then sent via REST API to Flink JobManager which takes the initiative and spawns a job on one or more Flink Taskmanagers.