Background Information
After a lot of exploration we decided that PCS will manage its own cache outside of RESTBase unblock the sunset. For the short-term the restbase Cassandra cluster is considered a safe solution in terms of available resources and maintained infrastructure.
This work is required to remove the mobile-html and summary endpoints from RESTBase.
What
We need to model a new table for PCS cache that is consistent with the enforced standards and is approved by Data-Persistence.
How
Schema (see: r968717)
// Storage of various representations of MediaWiki content that must // be pre-generated on page change. CREATE KEYSPACE pregenerated_cache WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1}; // NTS & 3-per DC in production // PCS (née mobileapps) CREATE TABLE pregenerated_cache.media_list ( project text, key text, headers map<text,text>, cached timestamp, value blob, PRIMARY KEY ((project, key)) ) WITH comment = 'Data about media items appearing on a given page'; CREATE TABLE pregenerated_cache.mobile_html ( project text, key text, headers map<text,text>, cached timestamp, value blob, PRIMARY KEY ((project, key)) ) WITH comment = 'Page content optimized for mobile applications'; CREATE TABLE pregenerated_cache.page_summary ( project text, key text, headers map<text,text>, cached timestamp, value blob, PRIMARY KEY ((project, key)) ) WITH comment = 'Page content summary';
Acceptance Criteria
- A new data model is available for PCS to store mobile-html and summary endpoint caches.
