简体   繁体   English

Python 演员模型:thespian vs pykka

[英]Python actor model: thespian vs pykka

I want to play around with actors in python.我想和 python 中的演员一起玩。 Apparently, the two most popular alternatives are thespian and pykka .显然,这两个最流行的选择是戏剧pykka I'm looking for something actively developed and easy to use.我正在寻找一些积极开发且易于使用的东西。

Which would you recommend and why?你会推荐哪个,为什么?

I'm have used pykka in the past a few times and here is my take:我过去曾使用过 pykka 几次,这是我的看法:

pykka is simple lean and elegant, if you only need Threads/Greenlets its a fine choice pykka简单而优雅,如果您只需要 Threads/Greenlets,它是一个不错的选择

thespian looks a bit more complex but does support multi-proc and clustering so if you need those, it's your match thespian看起来有点复杂,但确实支持多进程和集群,所以如果你需要这些,它就是你的匹配

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM