Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 477 Bytes

Readme.md

File metadata and controls

30 lines (22 loc) · 477 Bytes

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
[email protected]
License: MIT