Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add redis store instead of badgerDB #47

Merged
merged 7 commits into from
Jan 18, 2025
Merged

Add redis store instead of badgerDB #47

merged 7 commits into from
Jan 18, 2025

Conversation

lordvidex
Copy link
Member

  • All game actions are stored in redis
  • During reload, there is no need to dump or load hub data
  • When game is fetched, redis is checked and is able to load full game data so that users can continue when there's downtime.

Closes: #32

@lordvidex
Copy link
Member Author

Note that this pull request contains an hybrid store instead of relying on ONLY redis. This is because redis sorted sets does not provide adequate support for the custom ranking strategy.
Also, redis can have downtimes and this would not affect user's gameplay.

@lordvidex lordvidex requested a review from escalopa January 18, 2025 23:21
@lordvidex lordvidex merged commit 6fc7373 into main Jan 18, 2025
1 check passed
@lordvidex lordvidex deleted the feature/redis-store branch January 18, 2025 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use redis to store game data instead of in-memory.
1 participant