Re:How to build a news app that never goes down and costs yo...
by pjungwir on Monday February 25, 2013 @04:28PM
(#5281936)
You can also integrate with a third-party shopping cart then load a small iframe to show "2 Items in the Cart." Not my favorite way to build a site, but it is very inexpensive to build, and for small vendors the site becomes entirely static. Even if you build it in Rails, you can use page-level caching so after the first hit it's served as a static html file.
Re:How to build a news app that never goes down and costs yo...
by jasonwatkinspdx on Monday February 25, 2013 @05:24PM
(#5282285)
Page level caching is one of the most underused features of rails. Most applications show anonymous users identical content, and can tolerate that content being cached briefly. Setting this up gives you slashdot protection as well as access to a last chance degraded mode if there's a chain of catastrophic failures further into the app stack.
Re:How to build a news app that never goes down and costs yo...
by ericcholis on Monday February 25, 2013 @08:44PM
(#5283309)
Exactly, this is the general idea of what I do in the ecommerce app I mentioned.
Re:How to build a news app that never goes down and costs yo...
by ericcholis on Monday February 25, 2013 @04:38PM
(#5282012)
I guess I should have been more specific about my strategy for "generated" content in an ecommerce environment. The traditional ecommerce elements that should be real-time are; such as carts, pricing, availability, etc. Everything else is generated on update via our [custom] inventory management software.
The closest analogy I can give is Varnish's Edge Side Includes. It's not exactly the same, but it's very similar.
Also, I would assume that javascript becomes a requirement for the functioning of the site; I always considered ecommerce to be the one part of the web were you wanted to be able to operate without javascript, so as not to turn anyone away.
I found this blog post that says that in 2010, 2% in the US had JS disabled:
http://developer.yahoo.com/blogs/ydn/posts/2010/10/how-many-...