This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Hi all, i feel there is not much difference between a facade and proxy pattern, and they can be exchanged for each other in some cases ., can someone provide light on the diffence in these patterns and when is facade more appropriate to using proxy. For eg, in my FBN system, the controller talks to another object( facade or proxy or mediator ???) which talks to the data classes ??? what is this class between the controller & data classes , proxy or facade ??? THanks Rachna
A proxy can filter out bad requests, where as a facade doesn't filter anything, it justs acts as a way to make a complex subsystem easier to access for a client. A proxy is a "Stand-in" it pretends to be the subsystem, taking requests and deciding if it is ok to really send it to the subsystem. So while they are very much like "Fronts" for an underlying system, there really is two seperate purposes. I always look at proxies, and think web server proxies to protect web servers for bad people. Mark