Skip to content

Rate-limit the size of faup1090 (fatsv) updates - #328

Draft
mutability wants to merge 1 commit into
devfrom
faup-rate-limit
Draft

mutability wants to merge 1 commit into
devfrom
faup-rate-limit

Conversation

@mutability

Copy link
Copy Markdown

Try to generate no more than ~ 10kB/s of fatsv output. If we exceed that when generating output, stop generating more and remember where we were in the aircraft list, then resume from that point on the next update.

Any aircraft that get delayed like this will just have their reporting times pushed out a bit, the actual data generated should still be fine (and up to date at the point of generation)

This should help with high-traffic sites, especially on restart where suddenly every visible aircraft wants to generate a report at the same time.


PR checklist

  • I certify that this PR meets the requirements of the DCO
  • This PR has a base branch of dev (not master)
  • This PR does not contain generative AI output

Try to generate no more than ~ 10kB/s of fatsv output. If we exceed that
when generating output, stop generating more and remember where we were
in the aircraft list, then resume from that point on the next update.

Any aircraft that get delayed like this will just have their reporting
times pushed out a bit, the actual data generated should still be fine
(and up to date at the point of generation)

This should help with high-traffic sites, especially on restart where
suddenly every visible aircraft wants to generate a report at the same
time.
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.

1 participant