Caching layer for discardable credentials #2547
Labels
core
Server, BaseService, GitHub auth, Shared helpers
operations
Hosting, monitoring, and reliability for the production badge servers
performance-improvement
Related to performance or throughput of the badge servers
API credentials for the Matrix badge work by creating a guest user. It would be better for performance reasons of the badge and the server not to create a guest user for each request, but to create one once and use it for all requests.
In #2527 (comment) I described an adaptation of the GitHub
FsTokenPersistence
/RedisTokenPersistence
storage layer to support Matrix.The other places caching has arisen are for Gitlab #1838 which is similar to GitHub, and #1545 which is about caching of intermediate API responses. As I think about the Matrix use case some more, it seems possible that it's better to think of these as intermediate responses, since unlike GitHub and Gitlab API keys, they are discardable.
See also this discussion: #1848 (comment)
Dependencies: #1848 #1806
The text was updated successfully, but these errors were encountered: