千万级消息系统构建实践
Why How Future
Why
Why Erlang?
并发性
容错性
分布式
并发性
轻量级进程
Share nothing, copy everything
Soft real time
容错性
linked processes
generic behaviors
supervisor behaviors
分布式
位置透明
基于tcp/ip
How
基于xmpp的ejabberd
xmpp优点与缺点
优点:
去中⼼化
开放协议
第三⽅⽀持
缺点:
数据量⼤
⼆进制数据的⽀持
ejabberd vs openfire
When it comes to sheer performance,
ejabberd is second to none!
Xeon E5-2650(2), 8G
100万同时在线
cpu 18%
memory 6G
Tsung
改进:
presence: ⽀持redis
离线消息:⽀持mongodb
连接池: poolboy
http 接⼝
mod_muc
Demo
Future
⼆进制协议
管理平台
开源计划
Q A
原创力文档

文档评论(0)