feat: Request-ID middleware, expanding ring matchmaking, Redis Sentinel/Cluster - #1087
Merged
chinweobtagaz merged 1 commit intoAug 26, 2026
Conversation
…el/Cluster support - Add Request-ID correlation middleware that reads/generates UUID v4 and attaches to tracing spans and response headers (OpenKnight-Foundation#1025) - Add /health/redis endpoint for Redis cluster status and ping latency (OpenKnight-Foundation#1026) - Implement expanding ring matchmaking algorithm with +25 Elo per 5 seconds, capped at +/-300 Elo (OpenKnight-Foundation#1012) - Update Redis pool creation to support Sentinel and Cluster topologies (OpenKnight-Foundation#1026) - AuthProvider already present in layout (OpenKnight-Foundation#803) Closes OpenKnight-Foundation#1025 Closes OpenKnight-Foundation#1012 Closes OpenKnight-Foundation#1026 Closes OpenKnight-Foundation#803
|
@Maryermarh 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! 🚀 |
chinweobtagaz
merged commit Aug 26, 2026
6414cf2
into
OpenKnight-Foundation:main
2 of 3 checks passed
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.
Summary
This PR implements three backend improvements and confirms one already-fixed issue:
1. Request-ID Correlation Tracing Middleware (#1025)
RequestIdMiddlewarethat reads incomingX-Request-IDheader or generates a UUID v4X-Request-IDheader in all HTTP responses2. Redis Expansion-Ring Matchmaking (#1012)
find_rated_matchto use expanding search window: starts at +/-50 Elo, expands by +25 Elo every 5 seconds, caps at +/-300 Elo3. Redis Sentinel/Cluster Support (#1026)
create_redis_poolwith support forredis://,redis+sentinel://, andredis+cluster://URL schemescreate_redis_pool_with_nodesfor explicit multi-node configurationcreate_redis_pool_from_envthat readsREDIS_NODES(comma-separated) andREDIS_CLUSTERenv vars/health/redisendpoint reporting Redis connection status and ping latency4. AuthProvider Already Present (#803)
AuthProvideris already wrapping children infrontend/app/layout.tsxat the root layout levelCloses #1025
Closes #1012
Closes #1026
Closes #803