473,805 Members | 2,034 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1587
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 ServicedCompone nt), 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.co m

"Will" <gr****@willwya tt.com> wrote in message
news:28******** *************** ***@posting.goo gle.com...
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.c om> wrote in message news:<#e******* *******@TK2MSFT NGP10.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 ServicedCompone nt), 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.co m

"Will" <gr****@willwya tt.com> wrote in message
news:28******** *************** ***@posting.goo gle.com...
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
1270
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 details and stock-levels etc, whilst retaining their existing functionality. They also want to retain the Access front-end but want to migrate the DB to SQL Server. AFAIK, they dont have local, dedicated web servers, but use a hosting package of some...
2
304
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 application messages, and in turn notify clients of events that they can then respond to. I'm clear on creating the Windows Service, as well polling the database, however, not sure on the other two. Immediately I thought of Remoting; responding to...
6
381
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 have this project I'm proposing but want to get some opinions on a good architecture. Some of the requirements are as follows: 1. 30+ tables and 25+ lookup tables 2. Small number of records added monthly (<100) 3. Fairly complex, PCU-intensive...
1
947
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 Data Holding parts. I plan to use an XML file on the PPC as a survey template (Questions,
2
1776
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 the data in real time. They have requested that I subscribe to a Web Service that they have published. The only problem is that they often take longer than 30 seconds to process my data before I get a response back from them. This is taking far...
2
2407
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 installing anything on the client (but I hate HTML and markup in general and it's limitations, the request/response model, state management, etc). AFAIK, Smart apps or smart clients or whatever we call them are simply variations of Web applications...
3
1278
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 it's appropriate, I want to hear answers from both sides. Instead of representing inheritance in the data model, in the particular project I'm working on now I've decided to do it in OO to keep it looser; each class gets its own table, because...
5
2281
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 someone explain what I might be doing wrong or what to look out for? What's the differece between IIS and VS web server? The IIS servers seem to have enough memory. public DataTable GetAll() {
0
9716
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10604
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10356
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9179
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5536
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5676
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4316
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3006
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.