3. • Rails is a full stack, web application
framework
• A MVC framework
• DRY - Do not repeat yourself
• Convention over configuration
4. Rails !"#$
Components help you
as well as trouble you
M
V C
5. Someone wants simpler
and faster
How can you know that, if the code is not written by yourself?
• Merb: no code is faster than no code [merge
with rails]
• Sinatra is a simple DSL which has minimum
code
• Some other names: camping,ramaze,waves..
13. • Easy deploy
• A free plan for demo
• Easy scaling
• Use your domain name freely
• Customization for ruby
• GAE is native for python and support java
16. ab -n 100 -c 10 http://msg.dazhe.me/
A simple blog system
Concurrency Level: 10
Time taken for tests: 8.738 seconds
Complete requests: 100
Requests per second: 11.44 [#/sec] (mean)
Time per request: 873.761 [ms] (mean)
Time per request: 87.376 [ms]
18. • Google Map API need a domain name
• loc2ip.dazhe.me
• heroku create your-app-name
• The auto-generated name with mass you
mind in no time
• A credit card is needed for enable the
customized domain function
• not reasonable because it is free
19. • Add gems? rspec --version 1.2.7
radiant --version 0.7.1
• write a .gems file
• Use other DB servers
• 5M space is not big enough
20. • References
• docs.heroku.com
• www.sinatrarb.com
• Lightweight Webservices with Sinatra and
RestClient: http://u.dazhe.me/6