Description
A primary reason for creating a single REST endpoint for retrieving attribution information is that we know this API will be hit hard, and REST endpoints are cacheable. We believe that returning cached responses for all callers will reduce the overall infrastructure impact of introducing this endpoint and recommending attribution signals to key partners and community tools.
Conditions of acceptance
- Determine how much caching support works out of the box for MediaWiki cache control
- Investigate/implement cache purging, particularly for "out of the box" REST caching within MediaWiki
- Make a recommendation for implementing a memcache vs longer-lived REST cache
- Determine if/how the cache can continue being hit, even if the caller is logged in (which normally circumvents the cache for most API requests)
- Audit data refresh rates and current performance consideration to understand how long data should be cached