Git Product home page Git Product logo

limaoim's Introduction

狸猫IM(LiMaoIM) 一切很简单

本项目是一款简单易用,性能强劲,设计理念简洁的即时通讯服务,完全自定义协议的聊天(Chat)系统

Docs

特点

  • go语言开发,高性能与易维护兼得。
  • 底层100%开源。
  • 二进制协议(支持自定义),包大小极小,最小心跳包只有1byte,耗电小,流量小,传输速度快。
  • 消息通道和消息内容全程加密,防中间人攻击和串改消息内容。
  • 简单易用,性能强劲,MAC笔记本单机测试6w多/秒的消息吞吐量,为了达到这性能和简单易用,完全自主实现消息存储,无如何第三方组件依赖,一条命令即可启动服务
  • 采用tcp协议+ack机制保证消息稳定可靠不丢。
  • 扩展性强 采用频道设计理念,目前支持群组频道,点对点频道,后续可以根据自己业务自定义频道可实现机器人频道,客服频道等等功能。
  • 多端同步,web,pc,app消息实时同步。
  • 同时无差别支持tcp,websocket。
  • 万人群支持。
  • 消息分区永久存储,卸载设备消息不丢。
  • 支持读模式的离线拉取

快速入门

快速入门

获取limaoim执行文件

运行服务端

$ ./limaoim  (或者 ./limaoim -c configs/config.toml)

客户端SDK

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运行

$ docker-compose up 

案例 (注意:案例不开源)

案例体验

用此通讯端做的自研的IM产品案例截图

收发消息演示 正在输入 消息回执 消息回应 红包消息 转账消息 群管理 朋友圈 单人音视频 多人音视频

limaoim's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.