5. 1st simple step:Cache stuff Default approach: @cache_page def homepage(request): pass Static content approach: Nginx serves directly from Memcached - No apache, django or python overhead
6. Nginx and memcached + Really fast The social web Pages are different for each user Can't cache much of anything Tutorial and benchmark at: http://bit.ly/BKMb
7.
8. Solution Combination of: - SSI (server side includes) - Javascript - NGINX scripting Inspired by David Cramer (http://bit.ly/WdEbR) IBM devworks (http://bit.ly/6vtKlv)
9. Solution overview - Memcached holds an anonymous page. - Template knows how to make it personal if needed async.push({ "user.authenticated": {}, "entity.loved_by": { "entity_ids": [ 17991, 19164, 18536, 17720, 12044 ] }, "entity.notifications": {} });
10. Handling the loves (SSI & Javascript) Request more data when logged in <!--# if expr="$cookie_uid" --> varasyncData = <!--# include virtual="%s?%s" -->; <!--# endif -->