6.6. Exercises

Exercise 6.1 Find a compute-intensive computation that is appropriate for the replicated-worker pattern (such as ray tracing or computational physics) and implement it.
Exercise 6.2 Rewrite the Mandelbrot application so that it makes use of the command pattern.
Exercise 6.3 Our marketplace example could be “reversed” so that sellers make requests (they have a specific item to sell, and are requesting a minimum price for it), and interested buyers come along and make bids. How hard would it be to reverse the marketplace in this way?
Exercise 6.4 One limitation of the marketplace example is that it supports only a single bid from a given seller per bid request (since there is no way to distinguish between two bids for the same request when accepting a bid). As a result, a seller can't give two options of cars for sale that are close to what a buyer wants. How could you augment the code to overcome this limitation?
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset