Eventlet or gevent or Stackless + Twisted, Pylons, Django and SQL Alchemy

前端 未结 4 1117
误落风尘
误落风尘 2020-12-22 23:54

We\'re using Twisted extensively for apps requiring a great deal of asynchronous io. There are some cases where stuff is cpu bound instead and for that we spawn a pool of p

相关标签:
4条回答
  • 2020-12-23 00:21

    Gevent isn't pure Python, and it strictly depends on CPython. From web frameworks you mentioned Eventlet (OpenStack) and Tornado (FriendsFeed, Quora) has the biggest deploy.

    0 讨论(0)
  • 2020-12-23 00:37

    Answering part of your question - if you look at http://speed.pypy.org you'll see that using twisted on top of PyPy may give you some speedups. This depends of course on your workload, but it's probably worth checking out.

    Cheers,
    fijal

    0 讨论(0)
  • 2020-12-23 00:44

    I've built a little real time web app on top of eventlet and repoze.bfg (I gave up on django quite a while ago). I've found eventlet and monkey patching to be just as easy as Ted says.

    0 讨论(0)
  • 2020-12-23 00:46

    You might want to check out:

    • Comparing gevent to eventlet
    • Reports from users who moved from twisted or eventlet to gevent

    Eventlet and gevent are not really comparable to Stackless, because Stackless ships with a standard library that is not aware of tasklets. There are implementations of socket for Stackless but there isn't anything as comprehensive as gevent.monkey. CCP does not use bare bones Stackless, it has something called Stackless I/O which AFAIK is windows-only and was never open sourced (?).

    Both eventlet and gevent could be made to run on Stackless rather than on greenlet. At some point we even tried to do this as a GSoC project but did not find a student.

    0 讨论(0)
提交回复
热议问题