feat(server): implement Redis based queue with ZSET and metadata storage#105
Open
dharapandya85 wants to merge 3 commits intoArenax-gaming:mainfrom
Open
feat(server): implement Redis based queue with ZSET and metadata storage#105dharapandya85 wants to merge 3 commits intoArenax-gaming:mainfrom
dharapandya85 wants to merge 3 commits intoArenax-gaming:mainfrom
Conversation
|
@dharapandya85 is attempting to deploy a commit to the paul joseph's projects Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
|
Resolve conflicts, please |
bd7b58f to
43ac9c9
Compare
Contributor
|
Please, let the frontend and server ci pass, at least. They are easy to fix |
anonfedora
approved these changes
Feb 27, 2026
a90cdbe to
a6ce6e0
Compare
|
@dharapandya85 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes: #86
server/src/controllers/match.controller.tschecks for match state active or not
created rating constant with
calculatingRatingfunctionreturns rating as JSON
server/src/routes/match.routes.tscalls
MatchControllerfetches POST request from matches with id and report constraints
this reports results
server/src/services/elo.service.tscreated a class
EloService,calculateRatingparameter with calculation ofnewRatingsserver/src/workers/matchmaking.worker.tslogic for stale players removal
if
waitTimegreater thanstale_timeout, removes stale playertryMatchcreates a match if opponent existsserver/src/workers/reaper.worker.tscreates class
ReaperWorkerwithcheckExpiredMatchesto check for expired matchesupdates match in
prismawith FORFEIT stateserver/src/services/match.service.tsjoinQueueadds player to matchmaking queueleaveQueueremoves player from the queuecreateMatchreturns ids of player, with status pendingserver/prisma/schema.prismaadded matches, eloHistory in User model
created model match with id, players id, state, player reports, eloHistory, createdAt, updatedAt
created model elohistory with id, matchId, userid, match, user fields, oldRating, newRating, delta, createdAt,
enum MatchState with PENDING, ACTIVE, SETTLED, FORFEIT
server/src/app.tscalls
MatchMakingWorkerandReaperWorkerto start