hosting rails apps
DESCRIPTION
Why PaaS(Platform as a Server) over IaaS (Infrastructure as a Service) for Ruby on Rails Hosting.TRANSCRIPT
“
”Hosting Rails AppsWhat 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 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
“
”
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
“
”
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 MishraTwitter: pravinmishra88