Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scala pipelines - DSL for building a DAG workflow

Im curious about the current libraries for Scala & Akka which would allow me to elegantly build a workflow pipeline.

In my case a workflow is just a DAG of operations so actors/Akka feels like a good fit.

My question is what's the best approach? There are Libs like reactive streams which allow really elegant composition of a pipeline but they seem very record focused.

My use case is a flow of operations passing messages between them. Future composition is nice but syntax becomes unwieldy after a while. Maybe there is something better with scalaz and shapeless.

What are the approaches and tools to building a DSL for pipelines of computation steps using message passing?

like image 775
NightWolf Avatar asked May 07 '26 07:05

NightWolf


1 Answers

While still in early development (pre 1.0 as of writing), you should have a look at akka-streams, which are exactly that - a way to describe a computation graph and then run it asynchronously.

like image 198
Konrad 'ktoso' Malawski Avatar answered May 09 '26 01:05

Konrad 'ktoso' Malawski



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!