Handle rate limit #26

Closed
opened 2024-01-22 20:59:38 +01:00 by Maxi · 1 comment
Owner
  • 503 "Service Unavailable" if too many requests
  • Create queue or similar to internally rate limit requests to tracker
    • Use https://api.gametools.network/bf2042/multiple/?raw=false&format_values=false endpoint for batches
    • fill up queue until there is at least X ms nothing (on calc all requests should come all at the same time within a few ms)
    • then batch-process queue

https://api.gametools.network/docs#/


- Fix burst-queue for maybe later use

  • Reintroduce previous score fetching (was just a temporary outage)
  • Make sure errors are shown clearly to user by icons: 404, 503, not public, XXX (single-calc, full-calc)
- 503 "Service Unavailable" ~~if too many requests~~ - [x] ~~Create queue or similar to internally rate limit requests to tracker~~ - ~~Use `https://api.gametools.network/bf2042/multiple/?raw=false&format_values=false` endpoint for batches~~ - ~~fill up queue until there is at least X ms nothing (on calc all requests should come all at the same time within a few ms)~~ - ~~then batch-process queue~~ https://api.gametools.network/docs#/ ---- ~~- Fix burst-queue for maybe later use~~ - [x] Reintroduce previous score fetching (was just a temporary outage) - [x] Make sure errors are shown clearly to user by icons: 404, 503, not public, XXX (single-calc, full-calc)
Maxi added this to the Main page project 2024-01-22 20:59:38 +01:00
Author
Owner

Adjusted duration to timeout in burst-queue -> TODO: Test it

GRPC API is way too unstable, mostly timeout or not available. Use old approach instead.

~~Adjusted duration to timeout in burst-queue -> TODO: Test it~~ GRPC API is way too unstable, mostly timeout or not available. Use old approach instead.
Maxi closed this issue 2024-01-23 18:41:09 +01:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Maxi/InfantrySkillCalculator#26