Commit 2b4c8b8
committed
Document the websocket heartbeat interval and the Redis response stream lifetime
WEBSOCKET_HEARTBEAT_INTERVAL sets how often a connected browser reports that it is still there. The value is served to the browser, so changing it takes effect without a rebuild, and it also decides how long the server holds a presence entry before assuming the client has gone. Raising it cuts the number of small websocket messages a large deployment handles, at the cost of a disconnected user showing as active for longer.
REDIS_RESPONSE_STREAM_TTL gives each stored response an expiry, so the store no longer grows with every reply. The default keeps an hour, which covers a browser reconnecting and resuming a reply, and zero restores the previous behaviour of keeping entries indefinitely.1 parent dbc37f8 commit 2b4c8b8
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7979 | 7979 | | |
7980 | 7980 | | |
7981 | 7981 | | |
| 7982 | + | |
| 7983 | + | |
| 7984 | + | |
| 7985 | + | |
| 7986 | + | |
| 7987 | + | |
| 7988 | + | |
7982 | 7989 | | |
7983 | 7990 | | |
7984 | 7991 | | |
| |||
8219 | 8226 | | |
8220 | 8227 | | |
8221 | 8228 | | |
| 8229 | + | |
| 8230 | + | |
| 8231 | + | |
| 8232 | + | |
| 8233 | + | |
| 8234 | + | |
8222 | 8235 | | |
8223 | 8236 | | |
8224 | 8237 | | |
| |||
0 commit comments