简体   繁体   中英

Python actor model: thespian vs pykka

I want to play around with actors in python. Apparently, the two most popular alternatives are thespian and 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 is simple lean and elegant, if you only need Threads/Greenlets its a fine choice

thespian looks a bit more complex but does support multi-proc and clustering so if you need those, it's your match

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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