I have been working on a number of projects in differnet client co for the last few years and I have noticed the same pattern being implemented incorrectly in my opinion.
I would like to bring this up for discussion as I have to admit that this is just my perspective and I may not be necessarily correct.
Why is business logic in a service layer always hosted in a WCF/web service? This business logic is always specific to the application domain so will not have any other consumers.
Surely hosting this service in another process and serializing everything to xml before squirting it across the wire is inefficient yet everyone seems to do it.
Unless this business service is very generic and will likely tohave other consumers I would always keep it in process. When I mention this though it tends to raise eyebrows.
Does anyone have any views?
I would like to bring this up for discussion as I have to admit that this is just my perspective and I may not be necessarily correct.
Why is business logic in a service layer always hosted in a WCF/web service? This business logic is always specific to the application domain so will not have any other consumers.
Surely hosting this service in another process and serializing everything to xml before squirting it across the wire is inefficient yet everyone seems to do it.
Unless this business service is very generic and will likely tohave other consumers I would always keep it in process. When I mention this though it tends to raise eyebrows.
Does anyone have any views?
Comment