BBlack added a comment.

  Looking at an internal version of the flavor=dump outputs of an entity, 
related observations:
  
  Test request from the inside: `curl -v 
'https://www.wikidata.org/wiki/Special:EntityData/Q15223487.ttl?flavor=dump' 
--resolve www.wikidata.org:443:10.2.2.1`
  
  - There is LM data, for this QID it currently says:  `last-modified: Fri, 08 
Mar 2019 06:24:59 GMT`
  - This could be used with standard HTTP conditional requests for 
`If-Modified-Since`.  This would still cause a ping through to the applayer, 
but would not transfer the body if no change.
  - Or alternatively, use the same data that's informing the LM/IMS conditional 
stuff to set metadata in the dump output as well, so that your queries can use 
this as a datestamp that's shared among more clients (this is basically the 
`use event date` idea from the summary), so that it doesn't even need an LM/IMS 
roundtrip and can be a true cache hit.
  - The CC header is: `cache-control: public, s-maxage=3600, max-age=3600`
  - 1H seems short in general.  We prefer 1d+ for the actual CC times 
advertised by major cacheable production endpoints so that everything doesn't 
go stale too quickly during minor maintenance work on a cache or a site.  Is 
there a reason (often it's set low because other issues around purging and this 
kind of update traffic not being well-engineered yet?).
  - However, assuming the 1H is staying for now, can't updaters just be ok with 
up to 1H of stale data and not cache bust at all?  There's no such thing as 
async+realtime; there's always a staleness, it's just a question of how much is 
tolerable for the use-case.

TASK DETAIL
  https://phabricator.wikimedia.org/T217897

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: BBlack
Cc: BBlack, Aklapper, Gehel, alaa_wmde, Legado_Shulgin, Nandana, thifranc, 
AndyTan, Davinaclare77, Qtn1293, Lahi, Gq86, Lucas_Werkmeister_WMDE, 
GoranSMilovanovic, Th3d3v1ls, Hfbn0, QZanden, EBjune, merbst, LawExplorer, 
Zppix, _jensen, rosalieper, Jonas, Xmlizer, Wong128hk, jkroll, Smalyshev, 
Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, faidon, Mbch331, Jay8g, 
fgiunchedi
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to