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

Concurrency and Distributed Systems in JRuby

Concurrency and Distributed Systems in JRuby

Presentation given av JRubyConf EU/Eurucamp 2012

Theo Hultberg

August 17, 2012

More Decks by Theo Hultberg

Other Decks in Programming


  1. AUGUST 2011 actors are cool, but not really worth it

    when all the arrows in your flow chart point in the same direction
  2. CASSANDRA very verbose drivers ColumnFamilyUpdater<String, String> updater = template.createUpdater("a key");

    updater.setString("domain", "www.datastax.com"); updater.setLong("time", System.currentTimeMillis()); try { template.update(updater); } catch (HectorException e) { // hurgh }
  3. EURYDICE JRuby nails it new_data = {:domain => 'www.datastax.com', :time

    => Time.now.to_i} column_family.update('a key', new_data)
  4. DON’T DO THIS AT HOME KIDS! the key to building

    concurrent and distributed systems is to separate what you want to do from the concurrent- and distributed-ness, and let someone else take care of that YOUR CODE