ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 基于Python的Akka实现

基于Python的Akka实现

原创 Linux操作系统 作者:jieforest 时间:2012-05-28 12:58:05 0 删除 编辑
[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/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-04-23

  • 博文量
    442
  • 访问量
    523537