Skip to content

Commit

Permalink
添加批量推送文档
Browse files Browse the repository at this point in the history
  • Loading branch information
Finb committed Dec 13, 2024
1 parent 98e2017 commit 7b14291
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- **服务端**
- [部署服务](/deploy)
- [直接推送](/apns)
- [批量送送](/batch)
- [编译代码](/build)
- [推送证书](/cert)
- [隐私安全](/privacy)
21 changes: 21 additions & 0 deletions docs/batch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

### 个人用户
暂不支持单个请求推送到多台设备,可通过分别发送的方式实现多设备推送。

### 中间服务
如果你的服务需要大批量且及时地向用户发送推送,建议自建服务端。可以提供 Url Scheme 方便用户一键更改服务器。

Url Scheme 示例:
```
bark://addServer?address=https%3A%2F%2Fapi.day.app
```
bark-server 对配置要求很低,以下是美西 VPS 各配置下的 QPS 测试结果 :
| Cores | Ram | Speed |
| ----- | ----------- |----------- |
| 1 | 3.75 gb |4,023 p/sec |
| 4 | 16 gb |21,413 p/sec |
| 16 | 64 gb |64,516 p/sec |
| 64 | 256 gb |105,263 p/sec |

如果服务的 QPS 不高于 200,可继续使用公共服务(https://api.day.app)。
若 QPS 超过 200,未来在公共服务器负载过高时,可能会引入流量限制(目前尚未限制)。

0 comments on commit 7b14291

Please sign in to comment.