What is the difference between Typed and UnTyped Actors in Akka? When to use what?

后端 未结 4 2017
我在风中等你
我在风中等你 2021-02-03 22:53

I have tried to read the Akka documentation to find out the exact difference between Typed and Untyped actors. When to use what? I am not sure what I\'m missing. Can somebody po

4条回答
  •  无人及你
    2021-02-03 23:10

    Akka untyped actors "do not compose" and "are not usefully typed".

    This defeats the very reason we use Scala: it's functional programming power. See http://noelwelsh.com/programming/2013/03/04/why-i-dont-like-akka-actors/ for in depth on this mindset.

    Also, see attempts to improve this in Scala to match the Haskell way.

    http://letitcrash.com/post/40198993865/makkros-first-step-towards-typed-channels http://letitcrash.com/post/45188487245/the-second-step-akka-typed-channels

    Seems to still be experimental in Akka or even dropped - not clear.

    This idea of typed channels makes a lot of sense because similar issues occur when one tries to build type checked data (analytics) pipelines.

    Akka Typed seems to be a great evolution to a safer programming model: https://opencredo.com/akka-typed/

提交回复
热议问题