Skip to content

Conversation

@google-labs-jules
Copy link

This pull request optimizes the state collection and display feature by refactoring the underlying Redis implementation. It replaces expensive KEYS calls with more efficient data structures, introduces real-time aggregation, and adds caching to improve performance and scalability.

This commit optimizes the statistics collection and display feature by refactoring the way data is stored and retrieved from Redis.

- Replaced expensive `KEYS` calls with more efficient Redis data structures (Hashes, Sets, and Sorted Sets).
- Aggregated statistics are now updated in real-time using atomic `HINCRBY` and `ZINCRBY` operations.
- The stats API endpoint now reads from these aggregated structures, significantly improving performance.
- Removed frontend polling and added API caching to reduce unnecessary requests.
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.

0 participants