IsThisStockGood icon indicating copy to clipboard operation
IsThisStockGood copied to clipboard

Add a cache layer

Open mrhappyasthma opened this issue 4 years ago • 2 comments

I need to determine a good TTL, but a cache layer might be nice for speed and to avoid external URL fetch costs.

Data updates, at most, once a quarter. So caching for week or maybe months at a time is probably pretty safe without losing much accuracy.

mrhappyasthma avatar May 16 '21 09:05 mrhappyasthma

The URL fetch quota on App Engine is more permissive than the new python3 datastore limits. So this may be infeasible while trying to ensure that I stay below the free budget thresholds using App Engine.

mrhappyasthma avatar Jun 08 '21 07:06 mrhappyasthma

App Engine now longer has free budgets for this... But maybe it's still worth the investment to limit queries out to our data fetcher (i.e. MSNMoney).

Things like the Stock IDs or even general stock data could probably be cached for a while.

mrhappyasthma avatar Mar 25 '24 04:03 mrhappyasthma