There is no way to tell a live quiz is in trouble until someone complains
Maintainer antworten meist innerhalb von 1 Tag
@spikedeeev arbeitet bereits daran.
Seit 22.11.2026.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 21
- Forks
- 7
- Ø Merge
- 7 Std. 54 Min.
- Gemergte PRs (30 T.)
- 28
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus TheCodeHeist-Coder/Rexial
-
Lint does not block a merge, and the same test step runs twiceEvtl. vergeben @spikedeeev hat das vor 3 Tagen übernommen. OffenBackend first issue bug good first issue help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
TheCodeHeist-Coder/Rexial#243 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Backend first issue enhancement help wanted
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 62/100
TheCodeHeist-Coder/Rexial#242 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
fix: validate types for login email and password (500 on non-string or missing body)Evtl. wieder frei @spikedeeev hat das vor 8 Tagen übernommen, und es ist kein Pull Request offen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
TheCodeHeist-Coder/Rexial#235 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Critical security: a couple of access control problems in the API and ws-server (details to be shared privately)Evtl. wieder frei @Anshuu2004 hat das vor 30 Tagen übernommen, und es ist kein Pull Request offen. Offenlevel3 nsoc26
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
TheCodeHeist-Coder/Rexial#215 · 6 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
A host cannot see who won a quiz they already hostedEvtl. vergeben @spikedeeev hat das vor 9 Tagen übernommen. Offenenhancement good first issue help wanted level2 nsoc26 UI & UX
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 58/100
TheCodeHeist-Coder/Rexial#200 · 6 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in TheCodeHeist-Coder/Rexial
Ähnliche Issues
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 86/100
superlinked/sie#1033 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
remix-run/react-router#15838 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area/ci bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
melgarafael/DeskcommCRM#5290 ·
Maintainer antworten meist innerhalb von 1 Tag