/distribute

Run any code in one or more computers (multiple machines distributed computing).

Primary LanguageRubyMIT LicenseMIT

Distribute

Run any code in one or more computers (multiple machines distributed computing). Best suited for distributed computing map-reduce.

Install

gem install distribute

Usage

# 2 Workers -> distribute to 2 Workers
results = Distribute.map(['a', 'b', 'c'], in_workers: 2) do |one_letter|
  SomeClass.expensive_calculation(one_letter)
end

Authors

Adam429 Lee
adam429.lee@gmail.com
License: MIT