Difference between facade and service layer

I have always tried to answer this question, and somehow even after reading a lot about it, the question is still a debate in my mind. Anyhow, writing what is clear to me :

Facade layer, as the name suggests, is something beautiful which is trying to hide something ugly behind it. In spring or any other framework which uses this layer, facade serves as an interface, which is hiding some complex implementation.

Service layer on the other hand can be said as that “complex implementation” which facade layer is hiding. It connects with DAO layer and does all sort of complex stuff. It is also used to provide functionality like security etc which makes it all the more complicated.

So far so clear. Will edit if i get more.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s