Wednesday, September 24, 2008

Proxy pattern

Strategy lets the algorithm vary independently from clients that use it.
Proxy design pattern is used when we have too heavy object and don’t want to load all whole object in one go to avoid slow performance and to avoid consuming too much memory resource.
when you view google earth, it doesn’t show up complete image of universe. It just loads some part of that image.
Other example could be when you load very heavy document (pdf), it loads first few pages, and when you navigate to other pages, it loads other pages then in memory.

No comments: