Traffic distribution system implemented in Ruby