Many Rails developers think that planning for scale is unnecessary. But there's nothing worse than an application that fails because it can't handle sudden success. Throughout this book, you'll work on an example enterprise project to learn first-hand what's involved in architecting serious web applications.
With this book, you will:Tour an ideal enterprise systems layout: how Rails fits in, and which elements don't rely on RailsLearn to structure a Rails 2.0 application for complex websitesDiscover how plugins can support reusable code and improve application clarityBuild a solid data model -- a fortress -- that protects your data from corruptionBase an ActiveRecord model on a database view, and build support for multiple table inheritanceExplore service-oriented architecture and web services with XML-RPC and RESTSee how caching can be a dependable way to improve performance
Building for scale requires more work up front, but you'll have a flexible website that can be extended easily when your needs change. Enterprise Rails teaches you how to architect scalable Rails applications from the ground up.
"Enterprise Rails is indispensable for anyone planning to build enterprise web services. It's one thing to get your service off the ground with a framework like Rails, but quite another to construct a system that will hold up at enterprise scale. The secret is to make good architectural choices from the beginning. Chak shows you how to make those choices. Ignore his advice at your peril."-- Hal Abelson, Prof. of Computer Science and Engineering, MIT
Author Eric Bidelman, a Senior Developer Programs Engineer on the Google Chrome team, provides several techniques and complete code examples for working with the HTML5 Filesystem API.Learn common operations for working with files and directoriesBecome familiar with HTML5's storage use cases and security considerationsUnderstand the storage options available, including temporary, persistent, and unlimitedWrite text or append data to an existing user fileImport files into your application by accessing a user's hard driveGet techniques for using a file with filesystem, blob, or data URLsUse the synchronous version of the HTML5 Filesystem API within a Web Worker context
—Andrew Hedges, Tapulous