Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a page to see our current Twitter API consumption state #22

Closed
keithamoss opened this issue Dec 18, 2018 · 1 comment
Closed

Add a page to see our current Twitter API consumption state #22

keithamoss opened this issue Dec 18, 2018 · 1 comment

Comments

@keithamoss
Copy link
Owner

keithamoss commented Dec 18, 2018

This is required if we can't get an increased rate limit per #21. Refer to #6.

Just a visual at this stage. Call the API directly.

Actually, given the rate limit endpoint itself is rate limited we might want to cache it locally too. Then we can make use of it in stuff like threading where we want to start backing off or changing behaviour based on our API usage. Think about what our fallback position is for "we've been rate limited in this 15 minute period and the queue of tweets to process is building up" (e.g. In that "mode" we can assign sub-tweets to people as individual tweets that have no thread relationship).

Actually, we should be refreshing and logging our rate limits pretty frequently so we can do post-election analysis of how close we came. This would be paired with logging from the functions that use the API to give us a clear picture of how we're using the API and help inform future enhancements/changes in application behaviour.

Future enhancements:

  • Logging this data at frequent intervals to see how close we ride to the edge.
  • Using this data to queue up and execute replies/favourites/retweets rather than executing them directly. This would let us, for example, prioritise certain actions (e.g. replies) over others if we're close to the rate limit.
@keithamoss keithamoss added this to the Beta Release milestone Dec 18, 2018
@keithamoss keithamoss modified the milestones: Beta Release, Prod Release 0.2 Jan 19, 2019
@keithamoss
Copy link
Owner Author

Done now

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

No branches or pull requests

1 participant