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 ...

Get JavaSpaces™ Principles, Patterns, and Practice now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.