There is no way to tell a live quiz is in trouble until someone complains
Maintainer thường phản hồi trong vòng 1 ngày
@spikedeeev đang làm issue này rồi.
Từ ngày 22/11/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 21
- Fork
- 7
- Merge trung bình
- 7 giờ 54 phút
- Pull request đã merge (30 ngày)
- 28
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của TheCodeHeist-Coder/Rexial
-
Lint does not block a merge, and the same test step runs twiceCó thể đã có người làm @spikedeeev đã nhận 3 ngày trước. Đang mởBackend first issue bug good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
TheCodeHeist-Coder/Rexial#243 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Backend first issue enhancement help wanted
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 62/100
TheCodeHeist-Coder/Rexial#242 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
fix: validate types for login email and password (500 on non-string or missing body)Có thể làm lại được @spikedeeev đã nhận 8 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
TheCodeHeist-Coder/Rexial#235 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Critical security: a couple of access control problems in the API and ws-server (details to be shared privately)Có thể làm lại được @Anshuu2004 đã nhận 30 ngày trước và không có pull request nào đang mở. Đang mởlevel3 nsoc26
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
TheCodeHeist-Coder/Rexial#215 · 6 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
A host cannot see who won a quiz they already hostedCó thể đã có người làm @spikedeeev đã nhận 9 ngày trước. Đang mởenhancement good first issue help wanted level2 nsoc26 UI & UX
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 58/100
TheCodeHeist-Coder/Rexial#200 · 6 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của TheCodeHeist-Coder/Rexial
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
superlinked/sie#1033 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
remix-run/react-router#15838 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/ci bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
melgarafael/DeskcommCRM#5290 ·
Maintainer thường phản hồi trong vòng 1 ngày