Fix backend infrastructure issues: Redis consolidation, migration mis… - #1009
Merged
ayomideadeniran merged 1 commit intoJul 29, 2026
Merged
Conversation
…match, read-replica routing, and pessimistic locking - Consolidate dual Redis connection managers into single RedisClient singleton - Fix SQLite vs PostgreSQL migration mismatch in migration_lock.toml - Add PostgreSQL read-replica service to docker-compose.yml - Add pessimistic locking to wallet creation endpoints
|
@0xdevmes is attempting to deploy a commit to the Ayomide Adeniran's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@0xdevmes 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! 🚀 |
Contributor
|
Pr under review. |
1 similar comment
Contributor
|
Pr under review. |
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.
Fix Backend Infrastructure Issues
This PR addresses four critical infrastructure issues in the Web3-Student-Lab backend to improve resource management, database consistency, and concurrency safety.
Changes Made
#994 - Consolidate dual Redis connection managers
RedisClient.tsto includepubClientandsubClientproperties with dedicated getter methods (getPubClient(),getSubClient(),getBullMQClient())utils/redis.tsto re-export clients from the centralizedRedisClientsingleton, eliminating duplicate connection instancesutils/redis.tsto use the centralizedredisClientvia getter methods#999 - Fix SQLite vs PostgreSQL migration mismatch
postgresqlprovider instead ofsqlite#988 - Complete read-replica database routing implementation
db-read-replicaservice to docker-compose.yml for local development and testingDB_READ_REPLICA_URLenvironment variable to backend service configuration#991 - Add pessimistic locking for wallet creation endpoints
Serializableisolation level to prevent race conditionsFiles Modified
RedisClient.ts,utils/redis.ts, auth.service.ts, migration_lock.toml, docker-compose.yml, and all Redis client imports across the codebaseTesting Recommendations
Closes #994
Closes #999
Closes #988
Closes #991