Posted by Sam on 29 August 2008
When you are dealing with the levels of traffic seen on sites like the Democratic National Convention, it's not enough to dynamically serve every page view. You need to change your approach.
To this end, there is a new feature in the trunk / daily build version of SilverStripe: "static publishing". What happens is that each time you publish a page in the CMS, it will generate static versions of appropriate URLs. You can then configure Apache to send these files directly to the visitors, without hitting Sapphire or the database. And because the cache generation is linked to the publish function, your cached site is kept up to date.
The result: the ability to serve 100s of requests / second from a single server, provided your network bandwidth can hack it!
For more information, see the documentation wiki. This documentation will be expanded in the coming weeks.
-- Sam
Thats really great, I am going to try it soon on my web site
Posted by Nivanka, 04/09/2008 2:36pm (3 months ago)
Awesome, just awesome. Another great feature, great to see SilverStripe being advanced by real projects in the field!
Posted by DesignCity, 02/09/2008 2:04pm (3 months ago)
I tried installing this yesterday, but it borked my site and I spent the rest of the day restoring. no biggie, but I figured before I give it another go I'd ask if this solves the initial lag when using silverstripe on a cluster/grid server like media temple. that 5-10 second delay on the first request is killing me.
Posted by dashiel, 01/09/2008 4:13pm (3 months ago)
AjShort, just something you might find interesting. Large scalability of dynamic content generally scales out in servers rather than gets static-like request speeds. For instance, Facebook's page loads are still over 100ms so they have a large number of servers...
http://www.flickr.com/photos/500hats/398658960/
Posted by Sigurd Magnusson, 29/08/2008 10:10pm (3 months ago)
Ajshort; yes; rsync was used for DemConvention and is briefly described i the documentation linked above.
Hannes; You can be selective about which pages are fully cached and which are dynamic. Thanks for suggesting what you'd like to see so that we can consider what to improve in the future! :)
Posted by Sigurd Magnusson, 29/08/2008 10:02pm (3 months ago)
It's good to see the ability to use static files to serve requests rather than using a full blown questions.
Will the functionality for remote caching (e.g. using rsync) also be supported? I know this would be great for people like me who want to use the admin panel to administrator a site on their low memory VPS etc.
Posted by ajshort, 29/08/2008 9:38pm (3 months ago)
Thats Great!
but if you have som (just a little bit) dynamic Stuff in your Site, like, i dunno, a logged in status/name and you dont wanna load that with ajax you will still have a major Problem :) so i hope a half dynamic Cache is next! Keep on the good work!
Hannes.
Posted by Johannes, 29/08/2008 8:50pm (3 months ago)