V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
ponyfk
V2EX  ›  Python

关于 IM 类移动 app 服务器端的选择

  •  
  •   ponyfk · 2014-07-19 23:08:51 +08:00 · 4678 次点击
    这是一个创建于 3569 天前的主题,其中的信息可能已经有所发展或是发生改变。
    客户端包括ios和android, 服务器端用python开发的话,采用什么方式好呢?1. tcp长连接,自己写消息协议2.http轮询3.xmpp. 关于xmpp,我找了一下,python下比较好的事pyxmpp2, 但是看服务器实现用的是python自带的socket,并发估计有问题吧. 大家有比较好的方案吗?
    9 条回复    2014-08-09 22:30:50 +08:00
    mhtt
        1
    mhtt  
       2014-07-19 23:31:43 +08:00
    我们app中包含im功能,用的是xmpp
    lidashuang
        2
    lidashuang  
       2014-07-19 23:35:09 +08:00
    erlang
    ponyfk
        3
    ponyfk  
    OP
       2014-07-19 23:37:24 +08:00
    @mhtt 用的是openfire吗?
    qq2511296
        4
    qq2511296  
       2014-07-20 00:30:25 +08:00
    xmpp的话用
    openfire或者ejabberd比较多
    xingzhi
        5
    xingzhi  
       2014-07-20 01:34:54 +08:00
    曾经用XMPP + openfire搭建过移动IM。

    现在让我选择的话, 会更倾向于使用云端服务,这样可以更专注于自己的核心业务,省去运维和开发的功夫。

    例如: https://cn.avoscloud.com/features.html#/slide-2
    ponyfk
        6
    ponyfk  
    OP
       2014-07-20 09:36:20 +08:00
    @xingzhi 云端服务的话, 承载能力,安全性,收费是什么样的呢?
    mhtt
        7
    mhtt  
       2014-07-20 10:37:58 +08:00
    @ponyfk
    erylee
        8
    erylee  
       2014-07-21 12:03:28 +08:00
    XMPP对移动IM是一个大坑,建议采用HTTP+MQTT混合协议。
    hjiang
        9
    hjiang  
       2014-08-09 22:30:50 +08:00
    @ponyfk AVOS Cloud 实时消息服务价格是每天 500 位免费活跃用户,超出后 1 元/千人/天。

    这个项目的工程师在今年的全球架构师大会分享过后端架构,有兴趣可以找一下。可扩展性很好,不会有什么压力。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2695 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 11:32 · PVG 19:32 · LAX 04:32 · JFK 07:32
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.