Sinatra gone async with em-fiber_pool and em_mysql2.
Meet em-shorty, a modern URL shortener. This Sinatra app is completely async by using rack-fiber_pool and em_mysql2. If you have been curious about how async Sinatra works, this is a good sample to get you started. It’s even setup with sinatra-activerecord so you have standard migrations and several database connectors to choose from.
There is a full API. It’s easy to create or query urls in XML/JSON/YAML. Lots of things were done to add polish, including localization, less support for stylesheets, Bundler and RVM to make installation a breeze, and of course a thorough test suite. The code is at http://github.com/zquestz/em-shorty. Clipboard support is provided by ZeroClipboard. BTW, the screencast that started this little project deserves some credit.