基於Python的Akka實現

jieforest發表於2012-05-28
[i=s] 本帖最後由 jieforest 於 2012-5-17 09:16 編輯

Pykka aims toprovide easy to use concurrency abstractions for Python by using the actor model.



Pykka provides an actorAPI with two different implementations:



²       ThreadingActor is built on the Python StandardLibrary's threading and Queue modules, and has no dependencies outside Pythonitself. It plays well together with non-actor threads.


²       GeventActor is built on the gevent library. gevent is a coroutine-based Python networking librarythat uses greenlet to provide a high-level synchronous API on top of libeventevent loop. It is generally faster, but doesn't like playing with otherthreads.



Much of the naming inPykka is inspired by the Akka project which implements actors on the JVM. Though, Pykka does notaim to be a Python port of Akka.


Pykka is Open Sourceand available under the Apache License, Version 2.0.


Read more…



http://pykka.readthedocs.org/en/latest/


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/301743/viewspace-731266/,如需轉載,請註明出處,否則將追究法律責任。

相關文章