FANNG1 commented on issue #5621: URL: https://github.com/apache/gravitino/issues/5621#issuecomment-2518858838
In a distributed environment, the client may request many credentials in a short time. The server-side needs a cache to cache the credentials to avoid flooding the underlying token service. The cache key may be `credential-provider`, `paths`, `privilege`, and there should be a mechanism to invalidate the cache for the credentials fetched for some time(for example 5mins) to keep the freshness of the credential or invalidate seldom visited credential to keep the cache capacity. and It's better to make the cache more general, to used in server side and client side. In client side, the cache key may be `credential-provider` `name identifier` `user`. -- 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]
