Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / June 2007

Tip: Looking for answers? Try searching our database.

Need help to a good architecure ideas !!!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
calderara - 07 Jun 2007 20:25 GMT
Dear all,

Im ma building an event system application in a kind of service based
application. Events system means collecting machine alarms, archive them in a
database, provide them to a user interface and provide some statistical
calculation frequency.

Based on those requirement I am loosing my mind on the way to organise my
architecture in order to be in a good style an approach.

UI layer:
Frist of all of course there is the UI layer in charge to request different
ype of Services from the service layer

Service Layer:
Provide to users, Archiving Service, Collecting service, statistical
service, publishing service

Data layer:
In charge of storeing and retriving data from database.

Based on those different layer I have difficulties to answer follwing
questions,hoping I will get help from you :

1 - What is the way to communicate between layers ?
2- How those different layers are physically represented as files :
Does each layer = 1 assembly with organised classes ?
Does each layers is a set of assenbly within a same name space identifyuing
the layer they belongs too ?

3 - Does  a service layer is organised in one assembly per service ?
4 - How to provide new services to be used by my aplication without
recompiling

I know it might be hard to answer but if you could guide me how to organised
my classes in order to be in a good architeture I will appreciate

regards
serge
Michael Nemtsev - 11 Jun 2007 07:55 GMT
Hello calderara,

c> 1 - What is the way to communicate between layers ?

Depends on your environment and physical tier locations.
If everything is on the single machine then use IPC ways, like pipes, else
consider using web-services.
I'd recommed to implement services with WCF, which allows you easily to change
the communication protocol.

c> 2- How those different layers are physically represented as files :
c> Does each layer = 1 assembly with organised classes ?

doen't matter

c> Does each layers is a set of assenbly within a same name space
c> identifyuing
c> the layer they belongs too ?

Yep. only don't forget to follow the namespace guidelines

c> 3 - Does  a service layer is organised in one assembly per service ?

so, the question is either to have monolithic or component architecture -
use the single dll if your services aren't gonna be extended by plugins.

c> 4 - How to provide new services to be used by my aplication without
c> recompiling

you need to couple your service interaction tight. Services should be autonomous
and discovered. It means you need to add tight reference to other services.
All services should be references and plugged via config files. And idealy
be discovered smth like via UDDI.

---
WBR,  Michael  Nemtsev [.NET/C# MVP].  
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

c> Dear all,
c>
c> Im ma building an event system application in a kind of service based
c> application. Events system means collecting machine alarms, archive
c> them in a database, provide them to a user interface and provide some
c> statistical calculation frequency.
c>
c> Based on those requirement I am loosing my mind on the way to
c> organise my architecture in order to be in a good style an approach.
c>
c> UI layer:
c> Frist of all of course there is the UI layer in charge to request
c> different
c> ype of Services from the service layer
c> Service Layer:
c> Provide to users, Archiving Service, Collecting service, statistical
c> service, publishing service
c> Data layer:
c> In charge of storeing and retriving data from database.
c> Based on those different layer I have difficulties to answer follwing
c> questions,hoping I will get help from you :
c>
c> 1 - What is the way to communicate between layers ?
c> 2- How those different layers are physically represented as files :
c> Does each layer = 1 assembly with organised classes ?
c> Does each layers is a set of assenbly within a same name space
c> identifyuing
c> the layer they belongs too ?
c> 3 - Does  a service layer is organised in one assembly per service ?
c> 4 - How to provide new services to be used by my aplication without
c> recompiling
c>
c> I know it might be hard to answer but if you could guide me how to
c> organised my classes in order to be in a good architeture I will
c> appreciate
c>
c> regards
c> serge
calderara - 12 Jun 2007 08:25 GMT
thnaks mickael foer your explananation...

Do you have any sample for the last point ?

If I catch it properly it means that my application sgould read avalaible
servcie list from a config file, in a particular format and particular tag
element I guess , and then automatically discover the service ...hmmmm

So this is based on web services then rigth?
I have never use this discovering stuff any good sample ? config file
section and discovering ?

What about if all is local and I need to discover service by TCP ??

thnaks for help
regards
Serge

> Hello calderara,
>
[quoted text clipped - 76 lines]
> c> regards
> c> serge
Michael Nemtsev - 12 Jun 2007 11:54 GMT
Hello calderara,

c> If I catch it properly it means that my application sgould read
c> avalaible servcie list from a config file, in a particular format and
c> particular tag element I guess , and then automatically discover the
c> service ...hmmmm

You need to support only one option.
Discoverting is usefull when you have an enterprise with number of services,
and to avoid mix up with number of services and remembering where are they
and what's description - u implement the discovering.

c> So this is based on web services then rigth?
yep, especially for the discovering

c> I have never use this discovering stuff any good sample ? config file
c> section and discovering ?

read about semantic web and UDDI there
http://www.codeproject.com/books/GuideSemanticWeb5.asp
http://www.codeproject.com/cs/webservices/uddiexplorer.asp

c> What about if all is local and I need to discover service by TCP ??

if it's localy then i support there is nothing to search. because it's next
to u :)

---
WBR,  Michael  Nemtsev [.NET/C# MVP].  
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

c> thnaks mickael foer your explananation...
c>
c> Do you have any sample for the last point ?
c>
c> If I catch it properly it means that my application sgould read
c> avalaible servcie list from a config file, in a particular format and
c> particular tag element I guess , and then automatically discover the
c> service ...hmmmm
c>
c> So this is based on web services then rigth?
c> I have never use this discovering stuff any good sample ? config file
c> section and discovering ?
c> What about if all is local and I need to discover service by TCP ??
c>
c> thnaks for help
c> regards
c> Serge
c> "Michael Nemtsev" wrote:
c>
>> Hello calderara,
>>
[quoted text clipped - 87 lines]
>> c> regards
>> c> serge

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.