30
Hosting Rails Apps What is it & Why it's matters

Hosting rails apps

Embed Size (px)

DESCRIPTION

Why PaaS(Platform as a Server) over IaaS (Infrastructure as a Service) for Ruby on Rails Hosting.

Citation preview

Page 1: Hosting rails apps

”Hosting Rails AppsWhat is it & Why it's matters

Page 2: Hosting rails apps

Hosting Options

Shared Server

VPS(Virtual Private Server)

Dedicated Server

Page 3: Hosting rails apps

Shared Hosting

Page 4: Hosting rails apps

Shared Hosting

Page 5: Hosting rails apps

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.

Page 6: Hosting rails apps

VPS

Page 7: Hosting rails apps

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

Page 8: Hosting rails apps

Differences

Resources

Security

Platform

Page 9: Hosting rails apps

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.

Page 10: Hosting rails apps

Dedicated Hosting

Page 11: Hosting rails apps

Shared and VPS providers

Shared Hosting Providers:

- DreamHost, BlueHost, GreenGeeks, HostGator and MyHosting

VPS Providers:

- Linode, DigitalOcean, Amazon EC2

Page 12: Hosting rails apps

Amazon EC2

EC2 = Elastic Compute CloudYour own distro(Even window)Full root accessShared machine with xenFree Transfer between EC2-EC2 AND EC2 – S3You pay hourly, not monthlyPlenty of disk storage(EBS and easy integration with S3)API to control your instancesScaling can be automatedMany great “base” AMI available

Page 13: Hosting rails apps

What it takes

Hardware acquisitionOperating System Server Software Server Side Scripting EnvironmentWeb server Database Management System(Mysql, Redis etc)Configure production serverTool for testing and deploymentMonitoring AppHigh AvailabilityLoad Blancing/ Http RoutingService Backup Policies Team Collaboration Rebuild Production

Page 14: Hosting rails apps

Hardware Acquisition

Page 15: Hosting rails apps

Operating System

Page 16: Hosting rails apps

Server Software

Page 17: Hosting rails apps

Server side Scripting Env

Page 18: Hosting rails apps

Web Server

Page 19: Hosting rails apps

Database Management System

Page 20: Hosting rails apps

Configure production server

Page 21: Hosting rails apps

Tool for testing and Deployment

Page 22: Hosting rails apps

Monitoring App

Page 23: Hosting rails apps

High Availability

Page 24: Hosting rails apps

Load Blancing/ Http Routing

Page 25: Hosting rails apps

Service Backup Policies

Page 26: Hosting rails apps

Team Collaboration

Page 27: Hosting rails apps

Rebuild Production

Page 28: Hosting rails apps

Page 29: Hosting rails apps

PaaS Providers for Rails

- App42 PaaS- Heroku- EngineYard- OpenShift- Appfog

Page 30: Hosting rails apps

Question?

Thanks

By: Pravin MishraTwitter: pravinmishra88