6.5. Summary
In this chapter we've investigated some tried-and-true frameworks for space-based applications that are simple, powerful, and quite general. First, we studied the replicated-worker pattern, which is appropriate for solving computational problems that can be broken down into a number of smaller, independent, nearly identical sub-problems. A master generates tasks and collects results, while workers repeatedly pick up tasks and compute results. The framework is well suited to building parallel applications that speed up solutions to a large class of compute-intensive problems. The second pattern we explored, the command pattern, represents a powerful way of using spaces to pass around object behavior. The pattern allows us to create ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access