Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Migrate to JRuby

Ian Yang
November 06, 2013

Migrate to JRuby

My Talk on Ruby Conf China 2013, experience about how we migrate Ruby on Rails project to JRuby in Groupon Payments.

Ian Yang

November 06, 2013
Tweet

More Decks by Ian Yang

Other Decks in Technology

Transcript

  1. Warbler Trinidad TorqueBox Archive File ✔ ✔ ✔ Capistrano ✔

    ✔ Scheduler ✔ ✔ Background Jobs ✔ ✔ Clustering ✔
  2. Warbler Trinidad TorqueBox Archive File ✔ ✔ ✔ Capistrano ✔

    ✔ Scheduler ✔ ✔ Background Jobs ✔ ✔ Clustering ✔
  3. class Cvv def self.redis @@redis end def self.redis=(r) @@redis =

    r end end ! # config/initializers/cvv.rb Cvv.redis = Redis.new(...) ✔
  4. # gem 'atomic'! class Airlock! @@enabled = Atomic.new(false)! def self.enabled!

    @@enabled.value! end! def self.enabled=(e)! @@enabled.update { e }! end! end ✔