All Projects → nicholaskh → pushd

nicholaskh / pushd

Licence: GPL-3.0 license
An open source distributed pubsub/IM server

Programming Languages

go
31211 projects - #10 most used programming language
java
68154 projects - #9 most used programming language
javascript
184084 projects - #8 most used programming language
shell
77523 projects
HTML
75241 projects

Labels

Projects that are alternatives of or similar to pushd

firetower
firetower 基于golang构建的websocket开发框架 | 推送 | IM | 游戏
Stars: ✭ 40 (+33.33%)
Mutual labels:  im, push
Mobileimsdk
一个原创移动端IM通信层框架,轻量级、高度提炼,历经8年、久经考验。可能是市面上唯一同时支持UDP+TCP+WebSocket三种协议的同类开源框架,支持iOS、Android、Java、H5,服务端基于Netty。
Stars: ✭ 3,864 (+12780%)
Mutual labels:  im, push
bootpush
📶即时消息推送服务(即时通讯),基于Netty- Instant Messaging push service based on Netty
Stars: ✭ 146 (+386.67%)
Mutual labels:  im, push
Light Push
轻量级推送服务和实时在线监控平台,同时用于开发即时通信系统,基于node的socket.io,支持web、android、ios客户端,支持移动端离线推送,可进行分布式部署
Stars: ✭ 128 (+326.67%)
Mutual labels:  im, push
Mpush
MPush开源实时消息推送系统
Stars: ✭ 3,455 (+11416.67%)
Mutual labels:  im, push
Fpush
📶即时消息推送服务(即时通讯),基于Netty+protobuf-- Instant Messaging push service based on Netty+protobuf
Stars: ✭ 134 (+346.67%)
Mutual labels:  im, push
wchat
【Beta -Demo】📤WEB即时聊天工具(类微信WEB),不能使用QQ微信?叫上好友一起试试这个😄。基于WebSocket协议的网页版(PC)在线聊天工具。
Stars: ✭ 20 (-33.33%)
Mutual labels:  im
applink
A simple router based on scheme for Android
Stars: ✭ 21 (-30%)
Mutual labels:  push
LQIMInputView
一个聊天输入框的工具栏,类似微信聊天工具栏,可自定义,集成方便
Stars: ✭ 28 (-6.67%)
Mutual labels:  im
Open-IM-SDK-Flutter
即时通讯IM Flutter
Stars: ✭ 285 (+850%)
Mutual labels:  im
NoWordsChat
No Words Chat,Just For Fun! Use MVVM,DataBinding,Fresco......
Stars: ✭ 46 (+53.33%)
Mutual labels:  im
homebridge-http-rgb-push
Homebridge plugin to control a web/http-based RGB device.
Stars: ✭ 16 (-46.67%)
Mutual labels:  push
fim
flutter写的IM移动客户端
Stars: ✭ 55 (+83.33%)
Mutual labels:  im
PushNotifications
Push Notification using Embarcadero Rad Studio Tokyo 10.2.3 on Android and Apple Devices written in C++ and Delphi
Stars: ✭ 12 (-60%)
Mutual labels:  push
ejabberd mod gcm
Google Cloud Messaging API for Ejabberd (PUSH Messages)
Stars: ✭ 27 (-10%)
Mutual labels:  push
Phantom
幻影IM消息平台
Stars: ✭ 26 (-13.33%)
Mutual labels:  im
fcmpush
Firebase Cloud Messaging API wrapper for Ruby, suppot HTTP v1 API including access_token auto refresh feature.
Stars: ✭ 44 (+46.67%)
Mutual labels:  push
hms-push-serverdemo-java
Java sample code encapsulates APIs of the HUAWEI Push Kit server. It provides many sample programs for your reference or usage.
Stars: ✭ 39 (+30%)
Mutual labels:  push
umeng analytics push
Umeng Analytics&Push Flutter Plugins
Stars: ✭ 28 (-6.67%)
Mutual labels:  push
browser-push
Complete workout and guidelines to add web push notifications support for your webapp without third-party notification provider
Stars: ✭ 67 (+123.33%)
Mutual labels:  push

pushd

An open source distributed pubsub/IM server

                  _         _ 
  _ __  _   _ ___| |__   __| |
 | '_ \| | | / __| '_ \ / _` |
 | |_) | |_| \__ \ | | | (_| |
 | .__/ \__,_|___/_| |_|\__,_|
 |_|                                       

Build Status

Install

  • Nothing to do, just use bin/pushd.linux or bin/pushd.mac

HowToUse

  • Should open port 2222(optional) and 2223 in firewall, we use that as the tcp server and s2s gateway

  • Stand alone

    • Delete 'etc_servers' section or leave it empty
    • Run Server: bin/pushd.(linux|mac)
    • Run Client(eg. telnet): telnet localhost 2222
      • sub channel1
    • Run another Client: telnet localhost 2222
      • pub channel1 hello

    Then Client 1 will receive the message "hello"

  • Distributed env config

    • Set the 'etc_servers' section to the zk server addr
    • For the config of every peer, set the 'tcp_listen_addr' to the corresponding address

    Then the cluster will serve as one server

Architecture

Pushd Architecture

Commands

  • gettoken [[username]]
    • get the login token for username
  • auth [[username]] [[token]]
    • auth the token of the username
  • sub [[channel]
    • subscribe one channels
  • pub [[channel]] [[msg]]
    • publish msg to one channel
  • unsub [[channel]]
    • unsubscribe one channel
  • his [[channel]] [[timestamp]]
    • fetch the history of the channel from timestamp

Terms

  • Serv
  • Engine
  • s2s

Highlights

  • Support upto 100W connections/server

  • Self manageable cluster

  • Use a distributed Client-Server architecture

    example.net <--------------> im.example.com
         ^                                ^
         |                                |
         v                                v
       romeo                            juliet
    
  • Highly usage of mem to improve latancy & throughput

  • Full realtime internal stats export via http

  • Smart metrics with low overhead

  • Http system status report

  • Use Mongodb as the message storage database

Contribs

TODO

  • golang uses /proc/sys/net/core/somaxconn as listener backlog
    • increase it if you need over 128(default) simultaneous outstanding connections
  • hot reload config
  • bloom filter for overmuch channels
  • separate multiple applications
  • for token stored in mongodb, add ttl index on expire column
    • db.token.ensureIndex( { "expire": 1 }, { expireAfterSeconds: 600 } )
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].