1 个不稳定版本
0.0.1 | 2022年10月19日 |
---|
#6 在 #huawei
180KB
4K SLoC
特性
平台 | QPS | MAX_TOKEN | InvalidToken | 正文 |
---|---|---|---|---|
Apns | ||||
Fcm | 500 | |||
小米 | 500 | 1000 | ||
华为 | 6000 | 1000 | 4kb | |
电子邮件 | ||||
企业微信 | 1000 | |||
AgoraRtm |
架构
层
平台: fcm, apns, email, wecom, huawei, xiaomi
库
数据库: mysql, mongo
服务
接口: http, grpc, graphql
---------------------------------------------------------------------
| interface |
| -------------------------
| | grpc | http | graphql |
| -------------------------
|
|---------------------------------------------------------------------
| service | App{ db: MysqlOrMongo, svc: lib::Service}
| ------------------------------
| | register_token| push_message |
| ------------------------------
|----------------------------------------------------------------------
| db | mysql | mongodb |
| ---------------------------------------------------------
| | insert_token | fetch_tokens | fetch_chans | fetch_app |
| ---------------------------------------------------------
|-----------------------------------------------------------------------
| lib | Service: { pushers:Vec<Pusher> }
| --------------------------------------------------
| | register_client | remove_client | push_message |
| --------------------------------------------------
|
|-----------------------------------------------------------------------
| platform |
| ------------------------------------------------------
| | fcm | apns | email | wecom | xiaomi | huawei | rtm |
| ------------------------------------------------------
|
|
------------------------------------------------------------------------
| | | | | | | |
| ---------- | ------------ | --------------- | ----------- | ------ | ----- | --------- |
| http | grpc | graphql |
| service | | init |
| db_service | insert_token | delete_token | insert_chan |
| lib | push_message | register_client |
| fcm | apns | email | xiaomi | huawei | wecom | agora-rtm |
依赖
~14–37MB
~658K SLoC