Re:Nanoc: a Ruby site compiler that generates static HTML
by newhouseb on Friday December 25, 2009 @07:56PM
(#1015556)
I don't understand why we need to "compile" everything, computers are fast. I made/use Simple Web Schema (http://bennewhouse.com/open_source/simple_website_schema) which generates pages on the fly from an XML document using PHP - sounds nasty but it's quite elegant (imho). It does require PHP (and what cheap hosting doesn't provide PHP?) and response time for a reasonably sized site (mine) is around 7ms single threaded, and scales well because no locking is needed - no compiling needed.
[ Parent
| on HN ]
Re:Nanoc: a Ruby site compiler that generates static HTML
by ZitchDog on Friday December 25, 2009 @08:46PM
(#1015590)
One of the most successful projects I worked on used static HTML generation. It was a company-wide system status site, so it needed to be up no mater what, no matter what type of issues we were experiencing. Using this approach we didn't have to worry about database issues or anything. Just static HTML hosted by a CDN offsite.
Re:Nanoc: a Ruby site compiler that generates static HTML
by newhouseb on Friday December 25, 2009 @09:29PM
(#1015633)
Hmm yeah, my stuff doesn't use a database either (it uses XPath and DOM/XML doc). Is it standard for CDNs to run anything beyond a naked apache instance (like mod_php)?
Re:Nanoc: a Ruby site compiler that generates static HTML
by ZitchDog on Friday December 25, 2009 @09:53PM
(#1015643)
It seems like a giant can of worms to introduce mod_php. Do you allow sessions? Replication? How do you handle caching? These are non-trivial problems at CDN-level loads.
Offering 100% availability is crazy difficult once you add dynamic content into the mix. If you could do it, I bet you could make a million bucks.
Re:Nanoc: a Ruby site compiler that generates static HTML
by kingkilr on Saturday December 26, 2009 @02:09AM
(#1015797)
Availabity with dynamic content is easy (ok not easy, but it's a fairly routine straightforward process). The CAP theorem says you get 2 out of the 3 of consistency, availability, partition tolerance. Just getting availability and partition tolerance by themselves is just a matter of good engineering, nothing revolutionary.