Welcome Guest, Not a member yet? Register   Sign In
Poll: Add the possibility of using a Service Layer?
You do not have permission to vote in this poll.
Yes
52.94%
9 52.94%
No
23.53%
4 23.53%
Maybe
23.53%
4 23.53%
Total 17 vote(s) 100%
* You voted for this item. [Show Results]

Add the possibility of using a Service Layer
#3

(This post was last modified: 04-13-2015, 03:58 AM by RWCH.)

(04-12-2015, 07:37 PM)cjj Wrote: A service layer can contain the business logic.

You are right. It definitely can ... and to be honest I like to use it for business logic. That is what we also do at my office and I have not found any downsides.

But after reading Martin Fowler's article (http://www.martinfowler.com/bliki/Anemic...Model.html, the part at the end about "Application Layer"), I realized that (at least most of) the business logic should be in your models.  

I think this separation is not as clear as between the other layers, and it is not really wrong... so what keeps us from doing it Wink
Reply


Messages In This Thread
RE: Add the possibility of using a Service Layer - by RWCH - 04-13-2015, 03:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB