Book description
What does it take to develop an enterprise application with Rails? Enterprise Rails introduces several time-tested software engineering principles to prepare you for the challenge of building a high-performance, scalable website with global reach. You'll learn how to design a solid architecture that ties the many parts of an enterprise website together, including the database, your servers and clients, and other services as well.
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 Rails
- Learn to structure a Rails 2.0 application for complex websites
- Discover how plugins can support reusable code and improve application clarity
- Build a solid data model -- a fortress -- that protects your data from corruption
- Base an ActiveRecord model on a database view, and build support for multiple table inheritance
- Explore service-oriented architecture and web services with XML-RPC and REST
- See 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
Publisher resources
Table of contents
-
Enterprise Rails
- SPECIAL OFFER: Upgrade this ebook with OâReilly
- Preface
- 1. The Big Picture
- 2. Organizing with Plugins
- 3. Organizing with Modules
- 4. Database As a Fortress
- 5. Building a Solid Data Model
- 6. Refactoring to Third Normal Form
- 7. Domain Data
- 8. Composite Keys and Domain Key/Normal Form
- 9. Guaranteeing Complex Relationships with Triggers
- 10. Multiple Table Inheritance
- 11. View-Backed Models
- 12. Materialized Views
- 13. SOA Primer
- 14. SOA Considerations
- 15. An XML-RPC Service
- 16. Refactoring to Services
- 17. REST Primer
- 18. A RESTful Web Service
- 19. Caching End to End
- Index
- About the Author
- Colophon
- SPECIAL OFFER: Upgrade this ebook with OâReilly
Product information
- Title: Enterprise Rails
- Author(s):
- Release date: October 2008
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596554088
You might also like
book
Rails Crash Course
In Rails Crash Course, author Anthony Lewis shows you how to harness Rails to build web …
book
Ruby on Rails: Up and Running
Ruby on Rails is the super-productive new way to develop full-featuredweb applications. With Ruby on Rails, …
book
Ajax on Rails
Learn to build dynamic, interactive web applications using the two most important approaches to web development …
book
Crafting Rails 4 Applications, 2nd Edition
Get ready to see Rails as you've never seen it before. Learn how to extend the …