Friday, July 6, 2012

Cache Cachet

One of our goals for TheaterMania is to achieve infinite* scalability. I would like to be able to feel deeply confident that we could handle as much load as could possibly be thrown at us, because we have infinite* scalability. Why the asterisk? Because I'm only really looking to scale reads, and only reads of non-personalized data. There are, of course, ways to scale out writes and personalized reads (e.g. for logged-in users) but the nature of the application is that those are much less essential, and besides, it would be an isolated project so let's do first things first.

So then, infinite* scalability: of course, it's about caching. The approach we've decided on is to render complete HTML pages and store them on a CDN. Any personalization can happen via AJAX calls; as long as those calls fail gracefully, the server handling dynamic content can crash, and the core content of the site is still live, being served by the CDN. For a lot of static content, we use Amazon S3 as a sort of cheapo CDN, but it's not really designed to serve massively parallel requests (I'm not sure what would happen if we tried), and it won't request content updates automatically from an origin server. Fortunately, true CDNs abound, and our plan is to leverage one. Next step is to comparison-shop CloudFront, CloudFlare, and ??? (Akamai?). I'm hoping that since our needs are relatively modest -- we don't need ultra-low latency or global edge servers -- we can find one that fits our budget.

Our challenge then will be to make sure we really understand the cache-manipulation API. As Gautam told me, "when you cache complete pages, you have to be sure you have a very reliable cache-busting mechanism." Wise.


  1. So, if the bonus amount was $10 and the playthrough requirement was 10X, you'd need to guess $100 of your personal money before requesting a withdrawal. In principle, slots and desk games can be used for a match. However, usually than not}, the most effective Michigan on-line slots are used. Whatever games are used and no matter 크랩스 value of|the value of} entry, the mechanics of a on line casino match are always the same. The main action that unlocks these promotions is, as you can to|you presumably can} see, a deposit.

  2. There was 카지노 nothing she may do as a passerby scooped a handful of cash out of the primary tray. It’s frequent for these games — just like the video slots at Casino Winner — to have added extras such as quantity of} levels, reels and pay strains in order to to} add to the sense of pleasure. This certainly one of the|is among the|is likely one of the} cause why} video slots are generally extra well-liked among online gamblers. Examples of normal slot games would possibly be} well-liked online include Rainbow Riches Pick ‘n’ Mix, Wild Melon and Fishin’ Frenzy. Although many slots now feature 4 or 5 reels, others have just three in order to to} protect the looks of old machines.