locked
Layered Architecture Sample - Service Layer RRS feed

  • Question

  • hi sorry if am wrongly posted here.

    I have some confusion in creating wcf serices in Layered Sample. For each business conmponent ca i need to create seperate service or just one servie with all componenet metods?

    Sunday, August 28, 2011 3:55 AM

Answers

  • Hi,

    You business logics will be encasulated in the name of business process using the facade pattern, even though if you having multiple method. It is good idea to have seperate service (WCF service) for each business process. It will be usefull, in case if you need to expose few business service with the partners. No need to expose all the business service to the external vendors.

    More over, In feature if any particual business service usage is increased, this will be bery helpfull to load balance the service seperately.

    Regards

     

    • Proposed as answer by Nehruraj Tuesday, August 30, 2011 11:30 AM
    • Unproposed as answer by Nehruraj Monday, September 12, 2011 8:23 AM
    • Marked as answer by akhilrajau Tuesday, September 20, 2011 7:54 AM
    Monday, August 29, 2011 2:44 AM

All replies

  • Hi,

    You business logics will be encasulated in the name of business process using the facade pattern, even though if you having multiple method. It is good idea to have seperate service (WCF service) for each business process. It will be usefull, in case if you need to expose few business service with the partners. No need to expose all the business service to the external vendors.

    More over, In feature if any particual business service usage is increased, this will be bery helpfull to load balance the service seperately.

    Regards

     

    • Proposed as answer by Nehruraj Tuesday, August 30, 2011 11:30 AM
    • Unproposed as answer by Nehruraj Monday, September 12, 2011 8:23 AM
    • Marked as answer by akhilrajau Tuesday, September 20, 2011 7:54 AM
    Monday, August 29, 2011 2:44 AM
  • thanks friend for giving advanatages for seperating services based on business components
    Monday, August 29, 2011 6:12 AM