kuebelchris / COTDLiveQualifying

The Unlicense
1 stars 3 forks source link

Use map-monitor API over nadeo, and various improvements #15

Closed XertroV closed 9 months ago

XertroV commented 1 year ago

Note: there is a bug atm where sometimes the /players route includes duplicates. Not sure why but FYI.

This PR does a few things:

Okay, so why should you change the API endpoint?

Basically plugins are causing Nadeo enough load to be a problem, notably COTD HUD and COTD Stats have been asked to reduce their load (in that order). This is somewhat natural considering COTD HUD made an order of magnitude more requests than COTD Stats.

COTD Stats is transitioning to my endpoint atm. I've just improve it's performance too.

It seems reasonable that, since COTD Stats has been asked to reduce load, COTD Live Qualifying might be asked to soon, too. Using the map-monitor API will immediately help with reducing load.

The APIs this PR calls are new, and it's hard for me to test them since main COTD is at 3am for me. So I suggest you test this yourself before merging. Hopefully it works okay.