Handlers for Business services but not for UserServices?

Jun 8, 2011 at 9:03 AM

I wonder if there a reason why UserServices is not refeactored into handlers? :-) Is it because of short of time or has it another design reason?



Jun 8, 2011 at 4:56 PM
Edited Jun 8, 2011 at 4:57 PM

Hi Robbie,

Excellent question. The answer is a little bit of both actually. We would like to factor all of the services into handlers (in fact the CountryService already is a handler, it is just not named to reflect that fact). However, we decided that the decomposition of the remaining services (Country, User, ChartData) into handlers was a lower priorities than other work. In that way you could consider it a "short of time" decision. The actual decision to make it a lower priority was more of a design choice though. Here's why:

We choose to decompose the BusinessServer class into the handlers because it had too many responsibilities. The remaining services were already more focused, so that did not weigh in on the priority. The only remaining reason is consistency (which is a very important reason in itself). However, we identified other work that we ranked higher (much of it related to consistency as well).

Let us know if you have any more questions,


Jun 9, 2011 at 8:21 AM

Thanks for the clear answer! Really like the new handler pattern makes it more clear then the large bussinessservice class :-) Really like the dicisions that are made into this patterns and practices project! Keep up the good work :-)


Jun 9, 2011 at 4:05 PM

Thanks! Keep the feedback coming.