推荐学习书目
› 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
1989922yan
V2EX  ›  Python

分布式编程 和 直接调用接口,这本质上有什么区别吗?

  •  1
     
  •   1989922yan · May 28, 2014 · 4669 views
    This topic created in 4504 days ago, the information mentioned may be changed or developed.
    我翻看《python cookbook》 - 分布式编程,章节。

    如果直接 使用 requests调用接口 与 分布式编程 xml-rpc,
    除了 分布式编程 更python的编码感觉,
    还有什么更大的区别吗?

    好像不是特别明显
    3 replies  •  2014-05-29 11:05:40 +08:00
    mengzhuo
        1
    mengzhuo  
       May 29, 2014   ❤️ 1
    RPC/Restful和语言都无关,两者面对和解决的问题都不一样,
    RPC更倾向于命令
    Restful更倾向于资源
    没有可比性。
    更Pythonic只是你的错觉
    lw9956164
        2
    lw9956164  
       May 29, 2014   ❤️ 1
    应用场景不一样,
    requests倾向于资源
    xml-rpc倾向于服务
    1989922yan
        3
    1989922yan  
    OP
       May 29, 2014
    @mengzhuo
    @lw9956164

    我再去多查查资料看看,
    这样的解释已经很到位了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2752 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 351ms · UTC 02:15 · PVG 10:15 · LAX 19:15 · JFK 22:15
    ♥ Do have faith in what you're doing.