TPL数据流和Akka.net有什么区别? [英] What is the difference between TPL dataflow and Akka.net?

查看:108
本文介绍了TPL数据流和Akka.net有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾经使用过TPL数据流.真的很喜欢.我从Java/scala朋友那里多次听到过Akka一词,因此我尝试阅读它,并发现akka也具有.net端口.伟大的.当我继续阅读什么是akka时,我惊讶地发现它听起来完全像TPL数据流.

I have worked with TPL dataflow. Really liked it. I had heard the term Akka many times from my java/scala friends so I tried to read about it and found out that akka has a .net port too. Great. When I continued reading about what akka is, I was surprised to see that it sounds exactly like TPL dataflow.

因此,我的问题是,TPL数据流和Akka.net有什么区别?

So coming to my question, what is the difference between TPL dataflow and Akka.net ?

何时选择什么?

推荐答案

Akka是基于参与者的模型,TPL Dataflow也是如此.由于后者被描述为,该数据流模型通过为粗粒度数据流和流水线任务提供进程内消息传递来促进基于参与者的编程." 我认为应该重点关注进行中,因为Akka允许您创建远程参与者,它们不一定位于同一过程中.

Akka is an actor based model, and so is TPL Dataflow. As the latter is described as "This dataflow model promotes actor-based programming by providing in-process message passing for coarse-grained dataflow and pipelining tasks." I think there should be an emphasis on in-process, as Akka allows you to create remote actors, which don't necessarily reside inside the same process.

这篇关于TPL数据流和Akka.net有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆