Jrubykaigi 2010

1,358 views

Published on

We discovered Mirah while looking for a way to remedy JRuby spin-up delays on App Engine. Dubious, a simple framework written in Mirah, but following Rails conventions, that provides unprecidented scalability and efficiency.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,358
On SlideShare
0
From Embeds
0
Number of Embeds
27
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Jrubykaigi 2010

  1. 1. Saturday, August 28, 2010
  2. 2. Extreme Performance with Mirah and Dubious Build apps that can scale rapidly John Woodell July 28, 2010 2 Saturday, August 28, 2010
  3. 3. Spin-up time can make scaling “painful” • The most critical issue to be resolved is spin-up time, App Engine scales by adding new application instances. • Even if initialization could happen without affecting users some apps will need to scale instantly. 3 Saturday, August 28, 2010
  4. 4. Benefits of Mirah on App Engine • Ruby syntax & apparent features + Java type system • Use Java or Ruby when Mirah lacks features you require • The generated Java source can be inspected at any time • Macros and plugins can be written in Ruby or Mirah • New instances always spin-up in about a second 4 Saturday, August 28, 2010
  5. 5. Working with Dubious • Dubious framework uses familiar Rails conventions • Generate JSONs or work with ERb templates • MirahModel syntax is similar to DataMapper • Developers can create apps entirely in Rails, then refactor URLs that need to scale quickly • Some important features are currently missing, but “you” could have fun contributing them 5 Saturday, August 28, 2010
  6. 6. Saturday, August 28, 2010
  7. 7. Mirah apps should look familiar to Rubyists Saturday, August 28, 2010
  8. 8. Mirah apps can use ERb templates Saturday, August 28, 2010
  9. 9. The generated Java source can be inspected Saturday, August 28, 2010
  10. 10. The ERb is transformed into method calls Saturday, August 28, 2010
  11. 11. Your model definition is very concise Saturday, August 28, 2010
  12. 12. Code is generated based on properties you define Saturday, August 28, 2010
  13. 13. All the basic methods you need are generated Saturday, August 28, 2010
  14. 14. Resources • Blog – http://jruby-appengine.blogspot.com • Presentations – http://speakerrate.com/woodie • Examples Apps – http://rails-annex.appspot.com – http://dubious-demo.appspot.com • Mirah Projects – http://github.com/headius/mirah – http://github.com/mirah/dubious 14 Saturday, August 28, 2010
  15. 15. Saturday, August 28, 2010

×