本项目是一款简单易用,性能强劲,设计理念简洁的即时通讯服务,完全自定义协议的聊天(Chat)系统
- QQ群: 496193831
- 官网: http://wwww.limao.io
- 源码: https://github.com/lim-team/LiMaoIM
- 通讯协议: LiMaoIM协议
- 提问: https://github.com/lim-team/LiMaoIM/issues
- 文档: http://www.limao.io/docs
- go语言开发,高性能与易维护兼得。
- 底层100%开源。
- 二进制协议(支持自定义),包大小极小,最小心跳包只有1byte,耗电小,流量小,传输速度快。
- 消息通道和消息内容全程加密,防中间人攻击和串改消息内容。
- 简单易用,性能强劲,MAC笔记本单机测试6w多/秒的消息吞吐量,为了达到这性能和简单易用,完全自主实现消息存储,无如何第三方组件依赖,一条命令即可启动服务
- 采用tcp协议+ack机制保证消息稳定可靠不丢。
- 扩展性强 采用频道设计理念,目前支持群组频道,点对点频道,后续可以根据自己业务自定义频道可实现机器人频道,客服频道等等功能。
- 多端同步,web,pc,app消息实时同步。
- 同时无差别支持tcp,websocket。
- 万人群支持。
- 消息分区永久存储,卸载设备消息不丢。
- 支持读模式的离线拉取
$ ./limaoim (或者 ./limaoim -c configs/config.toml)
Android SDK: Android SDK
iOS SDK: Star到500开源 (请帮我们点点Star,感谢 😄)
JS SDK: Star到1000开源 (请帮我们点点Star,感谢😄)
注意: SDK的使用请查看文档
一键压测
./bench.sh
本人测试结果如下:
达到每秒63420条消息的吞吐量,接近redis的压测数据!
goos: darwin
goarch: amd64
cpu: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
SEND: 2021/06/29 15:05:49 duration: 10.605478656s - 12.096mb/s - 63420.051ops/s - 15.768us/op
$ docker-compose up
案例体验
用此通讯端做的自研的IM产品案例截图