There is no way to tell a live quiz is in trouble until someone complains
Mantenedores costumam responder em até 1 dia
@spikedeeev já está trabalhando nisso.
Desde 22/11/2026.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
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.
- Linguagem predominante
- TypeScript
- Estrelas
- 21
- Forks
- 7
- Merge médio
- 7h 54min
- PRs com merge (30d)
- 28
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de TheCodeHeist-Coder/Rexial
-
Lint does not block a merge, and the same test step runs twiceTalvez já em andamento @spikedeeev assumiu há 3 dias. AbertaBackend first issue bug good first issue help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
TheCodeHeist-Coder/Rexial#243 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Backend first issue enhancement help wanted
Dificuldade 2/5 Meio dia Facilidade para iniciantes 62/100
TheCodeHeist-Coder/Rexial#242 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
fix: validate types for login email and password (500 on non-string or missing body)Talvez livre de novo @spikedeeev assumiu há 8 dias e não há nenhum pull request aberto. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
TheCodeHeist-Coder/Rexial#235 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Critical security: a couple of access control problems in the API and ws-server (details to be shared privately)Talvez livre de novo @Anshuu2004 assumiu há 30 dias e não há nenhum pull request aberto. Abertalevel3 nsoc26
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
TheCodeHeist-Coder/Rexial#215 · 6 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
A host cannot see who won a quiz they already hostedTalvez já em andamento @spikedeeev assumiu há 9 dias. Abertaenhancement good first issue help wanted level2 nsoc26 UI & UX
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 58/100
TheCodeHeist-Coder/Rexial#200 · 6 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de TheCodeHeist-Coder/Rexial
Issues semelhantes
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 86/100
superlinked/sie#1033 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
remix-run/react-router#15838 ·
Mantenedores costumam responder em até 1 dia
-
area/ci bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
melgarafael/DeskcommCRM#5290 ·
Mantenedores costumam responder em até 1 dia