SlideShare a Scribd company logo
“
Hosting Rails Apps
What is it & Why it's matters

”
Hosting Options

“

Shared

Server

VPS(Virtual

Private Server)

Dedicated

Server

”
Shared Hosting

“
”
Shared Hosting

“
”
Shared Hosting

“

Pros:

- Cheap, cheap,cheap
- You pay for whatever you need
- Maintenance taken care of by your provider
- Do not need special skill set for administrative task

Cons:
- Slow, slow, slow
- Limited number of resources
- Not enough memory can be allocated to you
- No control (sometimes non-root SSH)
- Long term problems with scalability and backup.

”
VPS

“
”
VPS

“

Pros:

- Only pay for what you need
- Enough resources to run Rails effectively
- Easy upgrade/downgrade
- VERY easy to get started
- You control everything
- Affordable (great bang for your buck)

Cons:

”

- You have to build your slice from scratch
- Can be outgrown rapidly if your world-changing app really takes
off
- Not cost effective when you become big You
Differences

“

Resources
Security
Platform

”
When to move from Shared to VPS
hosting

“

- Your website is consuming all your processors.
- Your website is gobbling your CPU and RAM resources.
- You feel the need for complete control.
- You are looking for excellent performance and stability.
- You want to expand the existing performance level.

”
Dedicated Hosting

“
”
Shared and VPS providers

“

Shared Hosting Providers:
- DreamHost, BlueHost, GreenGeeks, HostGator and MyHosting
VPS Providers:
- Linode, DigitalOcean, Amazon EC2

”
Amazon EC2

“

EC2 = Elastic Compute Cloud
Your own distro(Even window)
Full root access
Shared machine with xen
Free Transfer between EC2-EC2 AND EC2 – S3
You pay hourly, not monthly
Plenty of disk storage(EBS and easy integration with S3)
API to control your instances
Scaling can be automated
Many great “base” AMI available

”
What it takes

“

 Hardware acquisition
 Operating System
 Server Software
 Server Side Scripting Environment
 Web server
 Database Management System(Mysql,
 Configure production server
 Tool for testing and deployment
 Monitoring App
 High Availability
 Load Blancing/ Http Routing
 Service Backup Policies
 Team Collaboration
 Rebuild Production

Redis etc)

”
“

Hardware Acquisition

”
“

Operating System

”
“

Server Software

”
“

Server side Scripting Env

”
“

Web Server

”
“

Database Management
System

”
“

Configure production
server

”
“

Tool for testing and
Deployment

”
“

Monitoring App

”
“

High Availability

”
“

Load Blancing/ Http
Routing

”
“

Service Backup Policies

”
“

Team Collaboration

”
“

Rebuild Production

”
“
”
“

PaaS Providers for Rails
- App42 PaaS
- Heroku
- EngineYard
- OpenShift
- Appfog

”
“

Question?
Thanks
By:
Pravin Mishra
Twitter: pravinmishra88

”

More Related Content

Hosting rails apps