There is no way to tell a live quiz is in trouble until someone complains
维护者通常 1 天内回复
@spikedeeev 已经在做这个了。
开始于 2026年11月22日。
评估
这个 Issue 还没有评估数据。
描述
Rexial has no metrics and no health signal beyond a container healthcheck. When something goes wrong during a live quiz, the first indication is a person noticing.
That is not hypothetical. A load test at 750 participants silently dropped a third of the answers — the players saw their choice highlighted and scored zero, and the only way anyone found out was running a SQL query afterwards out of curiosity. Nothing logged it, nothing alerted, and nothing would have.
What to add
Start small. A /metrics endpoint on ws-server exposing a handful of counters is more useful than a dashboard nobody finishes:
- WebSocket connections currently open, and sessions in progress
- Answers submitted, and answers actually persisted — the gap between these two is the number that matters
- Flush failures and transaction errors from the answer queue
- Question close latency: how long between the timer ending and the results broadcast
The answer queue in apps/ws-server/src/utils/answerQueue.ts already knows most of this; it just does not report it.
Prometheus text format is the obvious choice — it is a plain text endpoint, needs no infrastructure to start with, and can be scraped later if you want graphs.
Worth thinking about
- Do not put it on the public port. A metrics endpoint that tells anyone how many quizzes are running is an information leak. Either a separate port or an auth check.
- Cardinality. A counter per session id will grow without bound. Aggregate counters, not per-session labels.
http-serverandstreamingwant the same treatment eventually, but one service done properly is better than three done shallowly. Start with ws-server, where the real-time failures are.
Definition of done
- A metrics endpoint exposing at least submitted-vs-persisted answers and flush failures
- Not reachable from the public internet without auth
- Counters are bounded — no per-session labels
- A short note in ARCHITECTURE.md on what is exposed and how to read it
Good backend issue for someone who wants to work on operability rather than features. The interesting part is choosing which numbers would actually have caught the bug above — that is a design question, not a plumbing one.
- 主要语言
- TypeScript
- 星标
- 21
- 派生
- 7
- 平均合并
- 7 小时 54 分钟
- 30 天内合并 PR
- 28
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
TheCodeHeist-Coder/Rexial 的其他 Issue
-
Lint does not block a merge, and the same test step runs twice可能已有人在做 @spikedeeev 于 3 天前认领。 未关闭Backend first issue bug good first issue help wanted
难度 2/5 1-3 小时 新手友好度 82/100
TheCodeHeist-Coder/Rexial#243 · 1 条评论 ·
维护者通常 1 天内回复
-
Backend first issue enhancement help wanted
难度 2/5 半天 新手友好度 62/100
TheCodeHeist-Coder/Rexial#242 · 1 条评论 ·
维护者通常 1 天内回复
-
fix: validate types for login email and password (500 on non-string or missing body)可能重新可做 @spikedeeev 于 8 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
TheCodeHeist-Coder/Rexial#235 · 2 条评论 ·
维护者通常 1 天内回复
-
Critical security: a couple of access control problems in the API and ws-server (details to be shared privately)可能重新可做 @Anshuu2004 于 30 天前认领,目前没有进行中的 PR。 未关闭level3 nsoc26
难度 4/5 3-5 天 新手友好度 35/100
TheCodeHeist-Coder/Rexial#215 · 6 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
A host cannot see who won a quiz they already hosted可能已有人在做 @spikedeeev 于 9 天前认领。 未关闭enhancement good first issue help wanted level2 nsoc26 UI & UX
难度 4/5 3-5 天 新手友好度 58/100
TheCodeHeist-Coder/Rexial#200 · 6 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 TheCodeHeist-Coder/Rexial 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 86/100
superlinked/sie#1033 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
remix-run/react-router#15838 ·
维护者通常 1 天内回复
-
area/ci bug
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
melgarafael/DeskcommCRM#5290 ·
维护者通常 1 天内回复