3 ms·
What does a "hit" consist of? A static text page? A static text page with a few images? How many of the hits will be from (and/or NEED to be from) database-d
by brk 17y ago
What does a "hit" consist of?
A static text page?
A static text page with a few images?
How many of the hits will be from (and/or NEED to be from) database-driven queries?
How much of a "hit" can be cached?
Are visitors typically repeat (where browser-cached objects could be of benefit) or new (where you'll need to look more at CDN caching)?
- adserverboy 17y agoThanks for the quick reply. A hit is is approximately about 2Kb of data built by making on average 4 memcached calls per request. database access is rare. We have two background cron jobs (per server) that run every 15 minutes. Cron A - checks for dirty entities and invalidates them in memcached. Cron B - extracts traffic logs from memcache and stores them in a remote database. Thanks
- peterhi 17y agoYou might want to look at how your cache keys are created, if they are designed correctly memcached will expire them automatically removing the need for a cron. Of course how much of a saving this will be is another question.