Multitenancy with Rails
- Length: 241 pages
- Edition: 1
- Language: English
- Publication Date: 2015-08-08
- ISBN-10: B013N0SV72
- Sales Rank: #2666989 (See Top 100 Books)
This book will teach you super neat tricks about Rails and PostgreSQL while you build a multi-tenanted Ruby on Rails application.
What’s a multi-tenanted application? Think of applications like GitHub, where each user or organisation can have their own separate area within the application. Or how about Heroku where each user has their own separate app group. Those are multi-tenanted applications.
In this book we’ll be building a multi-tenanted forum application using some seriously good best practices, working with tools and processes like Behaviour-Driven Development, and PostgreSQL schemas. I’ll also cover the normal methodology of scoping using foreign keys in a table. That’s just the first four chapters.
In the 5th and final chapter, the book covers adding subscriptions to an application using the Braintree gateway. A subscription system is typically tough to get right, but with Braintree it’s a breeze. This book will show you how.