Skip to content

Commit

Permalink
add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
igrigorik committed Jun 19, 2010
1 parent 4bb699d commit f9c16a6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ gem 'em-synchrony', :git => 'git://github.com/igrigorik/em-synchrony.git',
gem 'em-http-request',:git => 'git://github.com/igrigorik/em-http-request.git', :require => 'em-http'
gem 'addressable', :require => 'addressable/uri'


# require 'em-synchrony/em-http'


# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

Expand Down
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Async Rails 3 stack demo

Simple async demo stack with Rails 3 + EventMachine and Fibers.

* Hit localhost:3000/widgets to do a 1s async mysql query
* Hit localhost:3000/widgets/http to make an HTTP call back to /widgets - recursive! :-)

Requirements:

* Ruby 1.9.x
* Async app server (thin)
* Rails 3

Environment setup:

* rvm install 1.9.2-preview3
* rvm use 1.9.2-preview3%rails3
* gem install rails3 --pre

Starting up Rails:

* bundle install
* thin -D start

Test:

ab -c 5 -n 10 http://127.0.0.1:3000/widgets/http

Concurrency Level: 5
Time taken for tests: 2.740 seconds
Complete requests: 10

0 comments on commit f9c16a6

Please sign in to comment.