推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
gamexg
V2EX  ›  Python

有现成的 python 服务端、python 客户端 长连接双向远程调用库吗?

  •  
  •   gamexg · Jul 1, 2015 · 3814 views
    This topic created in 4013 days ago, the information mentioned may be changed or developed.

    标题可能不太清楚,主要的应用场景是各个vps上的守护进程接收控制中心的命令并执行,同时还会上报vps状态。

    由于有实时性要求,vps轮询控制中心的方案不能用。

    由于vps没有公网ip,控制中心有命令时直接连接vps方案不可用。

    这样剩下的方案就是 vps 建立到控制中心的长连接来获得命令并执行了。

    现在想问下 python 里面有现成的库吗?单方向的远程调用有很多,但是有现成的双方向的远程调用库吗?

    3 replies    2015-07-10 09:31:22 +08:00
    lenye
        1
    lenye  
       Jul 1, 2015
    twisted
    jackyspy
        2
    jackyspy  
       Jul 2, 2015
    zeromq
    zhizhongzhiwai
        3
    zhizhongzhiwai  
       Jul 10, 2015
    最pythonic的方式rpyc。非常简单。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5533 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 52ms · UTC 06:34 · PVG 14:34 · LAX 23:34 · JFK 02:34
    ♥ Do have faith in what you're doing.