473,395 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

n-Tier Application Architecture question

Hi all. I'm beginning to think about how to write a new app at work.
I'd like to design the app with scalability concerns addressed.
We run SQL server for the data tier.
I'd like to create some kind of middle tier that would hold the
business logic for the app.
I'd like to be able to design seperate presentation layers that would
talk to the middle tier. I know my app is going to have people
accesing it over our intranet using Internet Explorer, and I'll have
people using it via a winforms application.
Until now, the only developement I've done is where the UI tier and
the buisness logic tier are in the same project and application. How,
using Visual Studio, do I create the two seperate layers and have them
talk to each other? Does the middle layer need to be a web service
project?
Any help or references is appreciated.
Nov 15 '05 #1
2 1565
Will,

The web layer doesn't need to be a web-service project, and to be
honest, I don't think that it should be unless you are doing a number of
stateless calls. If you require to maintain state between calls, then I
think that you should look at remoting instead or perhaps a proxy through
COM+.

You will need to have separate projects, obviously. I think that the
best way to do this would be to generate your classes on the business layer
using COM+ (deriving from ServicedComponent), which also would provide
transactioning and other services to you.

Additionally, you should create interfaces that the serviced components
(or remoted, if you go that way) implement, and then have those interfaces
installed on the client machines (either the web server or the windows forms
client machines), which would access the serviced components. You don't
need to pass the implmentation around to all of the clients and you can just
work through proxies. I recommend this because for the number of people
using this shared functionality, if you design the interfaces right, you can
reduce your distribution woes by not having to change the interfaces, but
the implmentation in only a few places (however many app servers are hosting
the business objects).

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Will" <gr****@willwyatt.com> wrote in message
news:28**************************@posting.google.c om...
Hi all. I'm beginning to think about how to write a new app at work.
I'd like to design the app with scalability concerns addressed.
We run SQL server for the data tier.
I'd like to create some kind of middle tier that would hold the
business logic for the app.
I'd like to be able to design seperate presentation layers that would
talk to the middle tier. I know my app is going to have people
accesing it over our intranet using Internet Explorer, and I'll have
people using it via a winforms application.
Until now, the only developement I've done is where the UI tier and
the buisness logic tier are in the same project and application. How,
using Visual Studio, do I create the two seperate layers and have them
talk to each other? Does the middle layer need to be a web service
project?
Any help or references is appreciated.

Nov 15 '05 #2
Thanks, Nicholas. I've heard people talk about remoting, but I've
never understood that this is one of the "things" you use it for. I've
got direction now. Thanks for the help.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:<#e**************@TK2MSFTNGP10.phx.gbl>...
Will,

The web layer doesn't need to be a web-service project, and to be
honest, I don't think that it should be unless you are doing a number of
stateless calls. If you require to maintain state between calls, then I
think that you should look at remoting instead or perhaps a proxy through
COM+.

You will need to have separate projects, obviously. I think that the
best way to do this would be to generate your classes on the business layer
using COM+ (deriving from ServicedComponent), which also would provide
transactioning and other services to you.

Additionally, you should create interfaces that the serviced components
(or remoted, if you go that way) implement, and then have those interfaces
installed on the client machines (either the web server or the windows forms
client machines), which would access the serviced components. You don't
need to pass the implmentation around to all of the clients and you can just
work through proxies. I recommend this because for the number of people
using this shared functionality, if you design the interfaces right, you can
reduce your distribution woes by not having to change the interfaces, but
the implmentation in only a few places (however many app servers are hosting
the business objects).

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Will" <gr****@willwyatt.com> wrote in message
news:28**************************@posting.google.c om...
Hi all. I'm beginning to think about how to write a new app at work.
I'd like to design the app with scalability concerns addressed.
We run SQL server for the data tier.
I'd like to create some kind of middle tier that would hold the
business logic for the app.
I'd like to be able to design seperate presentation layers that would
talk to the middle tier. I know my app is going to have people
accesing it over our intranet using Internet Explorer, and I'll have
people using it via a winforms application.
Until now, the only developement I've done is where the UI tier and
the buisness logic tier are in the same project and application. How,
using Visual Studio, do I create the two seperate layers and have them
talk to each other? Does the middle layer need to be a web service
project?
Any help or references is appreciated.

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: CJM | last post by:
I have a potential client who has a Access-based DB which they use for recording orders, customer details etc... They want to provide some of this information online, eg. customer account...
2
by: Joshua Belden | last post by:
Small architecture question I'm hoping someone can answer? I want to create a Windows Service Component that will periodically poll a database for data changes, respond to several client...
6
by: Tim | last post by:
Hello everyone. I visit this board pretty regularly but have never posted. My question is an application architecture question... so hopefully it's okay to post in the dotnet general forum. I...
1
by: Daren Hawes | last post by:
Hi, I have a architecture question. How would one structure an application along with a Pocket PC 2003 component that work together to collect survey data. My query is around the Sync and...
2
by: John A | last post by:
I have a Web Service that I am reponsible for that we use for data integration purposes. Recently I have been tasked with sending some of this data to a third party. Because they need to receive...
2
by: Jeff | last post by:
Please note this is NOT a rant or complaint! And yes, I'm over-simplifying, but intentionally. Here goes... With ASP.NET Web applications I like that I can access data from anywhere without...
3
by: PJ6 | last post by:
First up, I know I'll get some good answers here, but in general, are there any newsgroups devoted to overall application architecture? Second, sorry for cross-posting but in this case I think...
5
by: J055 | last post by:
Hi The following code works on my develeopment machine using the VS web server. When I run the application on 2 other Windows 2003/IIS 6 servers no caching seems to take place at all. Can...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.