Using ActiveRecord with EventMachine
So what does it all mean? Well, here’s a Sinatra application that uses plain old ActiveRecord and is completely asynchronous! Try ab -n 100 -c 20 http://localhost:9292/test to hit the app with 20 concurrent connections; it will process them all in parallel, without any painful threading issues (autoloading, misbehaving extensions, etc). Awesome!
via mikeperham.com
Posted on Wednesday, Mar 31, 2010
0 Comments
Leave a Comment