Run any code in one or more computers (multiple machines distributed computing). Best suited for distributed computing map-reduce.
gem install distribute
# 2 Workers -> distribute to 2 Workers
results = Distribute.map(['a', 'b', 'c'], in_workers: 2) do |one_letter|
SomeClass.expensive_calculation(one_letter)
end
Adam429 Lee
[email protected]
License: MIT