crepererum commented on issue #649: URL: https://github.com/apache/arrow-rs-object-store/issues/649#issuecomment-5356462155
> Another potentially better API could be an API that explicitly allows updating hte token "on demand" and then the calling application could drive the refresh at whatever interval / trigger mechanism they wanted. I worry that adding a background task might be a bit too magical (aka its behavior might not do what all users wanted and people would then need to make more proposed changes for policy knobs, etc) In contrast: I feel that if you have to explicitly worry about the refresh yourself, it will become quite a clunky API. Esp. consider cases where a refresh might occur "during" an API call, e.g. when you have a very long stream of results (which is modeled as a sequence of paged HTTP calls). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
