RealistikOsu / USSR

Ultimate Score Server for RealistikOsu
GNU General Public License v3.0
18 stars 19 forks source link

Refactor/rewrite majority of USSR #14

Closed tsunyoku closed 2 years ago

tsunyoku commented 2 years ago

While USSR works, and is efficient, it's code quality lacks in some areas and overall needs a rehaul. This PR aims to deliver that with a full rewrite of the service.

This new service is aimed to be a drop-in replacement for the old version, you should be able to git pull, install dependencies and run without any other changes. This is mostly true, however there are some things to note, which will be fixed in our repo's respectively:

The pubsubs ussr:bmap_decache and ussr:lb_refresh are removed. This is due to the new caching system being much more efficient that the only time a beatmap/lb needs changing is if a status is changed. For that reason, I have introduced the ussr:refresh_bmap pubsub. It takes a beatmap md5 and will update it's status on the cache accordingly, and clear what may need to be cleared. If you use our pep.py and RealistikPanel repos, this will not be a problem for you as it will be updated there to reflect this PR. If not, this may be important to you.

Thanks!