I am making an application that periodically may require changing the keywords in the POST statuses/filter request and this involves making a reconnection
The frequency of change is variable. Usually a weekly, but in some case this can be daily or, in extreme cases, one time every few hours.
The API penalizes reconnections and I want to make requests in accordance with the policy of use of the API.
The documentation says:
Clients which break a connection and then reconnect frequently (to change query parameters, for example) run the risk of being rate limited.
Is my frequency of reconnection within a reasonable time?
Is there any good practice that I should fulfill? (eg: omit the header “Connection: keep-alive” in the last request)
Thanks!