Hi,
Can anyone help in Designing the artitechture with real Experience for the following scenario.
I have the following . . 1)UI Layer ,2)Service Host Layer, 3)Service Layer, 4)Business Layer, 5)DataAcess Layer.
In Business Layer have 1000 clases used for Accounts, HR and sales Activity. Some clases are common for all these 3 also.
what should be the aproch here? Should I go for 1000 services for each class?
Thanks in Advance.
Sunjib
Loading

Roei BarRank #1,271 · 1.4K reputationPosted Oct 14, 2009, 12:30 AM EDT
this is a very nice project, and a very nice question
the way i see it, you should split the architecture into 4 pieces:
1. DAL - which will conect to all services
2. BL - which will be the WCF
3. COMMON - which will hold all the common objects
4. UI - only User Interface
as for how to split it, wheter for 1000 classes or 1000 service,
the question is not quite what it seems, the idea is to have a class per module and not per instance of type, meaning that if you have like HR, than you dont create a service just for HR, you create a service called, UserManager which will provide the User Managment for all User Types.
and another service for the DATA Access of the HR business
the idea i am saying is, you should build an orchestra of Services, 1 master and he will call the other services by the requested operations, aggregate the data and return it to the BL , the data manipulation will be in the BL and sent into UI for display
Sunjib Mohnaty6 reputationPosted Oct 14, 2009, 12:50 AM EDT
Thank you for your response.
I believe you are suggesting to Group the classes(Services) and access them through Interface.
For all these Services there will be a master service which will be used as entry point for all the Users.
Can I have an Example to have Clear understanding.
Thanks in Advance.
SUNJIB MOHANTY
Roei BarRank #1,271 · 1.4K reputationPosted Oct 14, 2009, 2:10 AM EDT
i ment that you should build a master service
this service will provide as a router going to all other services and aggregate the information.
this is called in WCF - ESB
you can have a look at a very nice one called "iserviceoriented"
the UI will talk to the WCF and WCF will talk to all other service
regarding the issue of accessing via Interfaces, i can recommend you to take a look at "unity" this is an injection Library for the client to access the Services BL with interfaces while decoppeling the changes to a single point of changes if needed