Design Pattern : Proxy Versus Facade

Connect with

These two design pattern, i.e. Proxy design pattern and Facade design pattern of GoF looks similar. But intent of both design pattern are different. Let me explain the similarity and differences between them.

Proxy Design Pattern

provides a surrogate or placeholder for an object to control access to it

What is proxy?

It’s an intermediary between a client object and the target object. responsibility wise it, It receives a call from client object and forwards them to the target Object.

Facade Design Pattern

Facade object provides simplified higher level interface to a subsystem

Key Points

[table “” not found /]

References

Please write your comment to improve this post.


Connect with

Leave a Reply

Your email address will not be published. Required fields are marked *