473,394 Members | 1,865 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,394 software developers and data experts.

2 Tier and N-Tier

Hi

I am looking for some suggestions here. We are creating a distributed app
(3-tier) using VB.NET and ASP.NET Web Services. The architecture follows
that of a 3-Tier architecture. Now, one of our clients do not want the
3-tier model. They want the application to be just a client-server model. I
am in the process of advising the clients to get on board with our 3-tier
architecture.

My question is, if I have to make the app a client-server model for this
client, what is the best approach. I am trying to avoid having two different
solutions - one based on n-tier and another on client-server model.

All suggestions will be highly appreciated.

Thanks

Raju...
Jul 22 '05 #1
10 1605
Raju,

I suggest that you consider a logical/physical N-tier design that can
be run on three machines, or simply on one machine. I assume that your
client doesn't want to have two separate machines and that they don't
care that there are two dll's running on the same machine. This type of
flexibility is one of the goals of N-tier design. If, at a later time,
the single app server is getting overloaded, then moving the back end
dll to another box should be painless.

-- Sancerre

Jul 22 '05 #2
"Sancerre" <sa******@gmail.com> wrote in news:1121176132.918157.85210
@g47g2000cwa.googlegroups.com:
I suggest that you consider a logical/physical N-tier design that can
be run on three machines, or simply on one machine. I assume that your
client doesn't want to have two separate machines and that they don't
care that there are two dll's running on the same machine. This type of
flexibility is one of the goals of N-tier design. If, at a later time,
the single app server is getting overloaded, then moving the back end
dll to another box should be painless.


I agree with Sancerre. I just posted these in another thread but they apply here too and may in fact
help your customer understand:

http://www.codeproject.com/gen/desig...inessLogic.asp

and

http://www.codeproject.com/useritems/TierPressure.asp
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Make your ASP.NET applications run faster
http://www.atozed.com/IntraWeb/
Jul 22 '05 #3

I also agree with Sancerre. In fact, client-server is really a 1 Tier
architecture. You should make your application flexible enough to be able to
be distributed in N-tiers.

Good luck!

--
Juan Romero
-----------------------------------------
The successful person has the habit of doing the things failures don't like
to do.
E.M. Gray
"Sancerre" wrote:
Raju,

I suggest that you consider a logical/physical N-tier design that can
be run on three machines, or simply on one machine. I assume that your
client doesn't want to have two separate machines and that they don't
care that there are two dll's running on the same machine. This type of
flexibility is one of the goals of N-tier design. If, at a later time,
the single app server is getting overloaded, then moving the back end
dll to another box should be painless.

-- Sancerre

Jul 22 '05 #4
"=?Utf-8?B?TWFkZXN0cm8=?=" <me_no_like_spam_juanDOTromero@bowneDOTcom>
wrote in news:C7**********************************@microsof t.com:
In fact, client-server is really a 1 Tier


Not reaally. Client server is squarely 2 tier. A 1 tier application is a desktop application using and
embdded ISAM database etc like Paradox, DBase, flatfiles, or Access.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Blogs: http://www.hower.org/kudzu/blogs
Jul 22 '05 #5

You are correct. I meant 2 Tier. Typo.

Thank you!

--
Juan Romero
-----------------------------------------
The successful person has the habit of doing the things failures don't like
to do.
E.M. Gray
"Chad Z. Hower aka Kudzu" wrote:
"=?Utf-8?B?TWFkZXN0cm8=?=" <me_no_like_spam_juanDOTromero@bowneDOTcom>
wrote in news:C7**********************************@microsof t.com:
In fact, client-server is really a 1 Tier


Not reaally. Client server is squarely 2 tier. A 1 tier application is a desktop application using and
embdded ISAM database etc like Paradox, DBase, flatfiles, or Access.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Blogs: http://www.hower.org/kudzu/blogs

Jul 22 '05 #6
Okay Guys,

I guess, may be I described my issue wrong. Here is the issue.

We are in the process of building from scratch a distributed n-tier
application. Our phase one coding is over. We have currently 3-tiers which
can be extended to more. But for now 3 tiers. The client is Windows Forms,
the middle tier is ASP.NET web services, then we have the BL and DataLayers
with data storage. The phase one coding is over and is currently under test
phase.

One of our singapore clients now has requested us that they do not want the
N-Tier based solution. They just want a Client-Server solution in .NET. This
just threw me off.

This is my question. Is there any way I can make the current 3-tier model to
2-tier. The only way I could think was to take out the web services part.
But then, it would mean a whole lot of code changes on the client since all
requests are being forwarded thru the web services.

I am still in the process of persuading the clients not to opt for it. But
like the old saying, they are the ones who pay the money.

Thank You,

"Madestro" <me_no_like_spam_juanDOTromero@bowneDOTcom> wrote in message
news:4B**********************************@microsof t.com...

You are correct. I meant 2 Tier. Typo.

Thank you!

--
Juan Romero
-----------------------------------------
The successful person has the habit of doing the things failures don't like to do.
E.M. Gray
"Chad Z. Hower aka Kudzu" wrote:
"=?Utf-8?B?TWFkZXN0cm8=?=" <me_no_like_spam_juanDOTromero@bowneDOTcom>
wrote in news:C7**********************************@microsof t.com:
In fact, client-server is really a 1 Tier


Not reaally. Client server is squarely 2 tier. A 1 tier application is a desktop application using and embdded ISAM database etc like Paradox, DBase, flatfiles, or Access.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Blogs: http://www.hower.org/kudzu/blogs

Jul 22 '05 #7
"Raju Joseph" <vz******@msn.com> wrote in
news:uq**************@TK2MSFTNGP15.phx.gbl:
One of our singapore clients now has requested us that they do not
want the N-Tier based solution. They just want a Client-Server
solution in .NET. This just threw me off.


Why does this client want a 2 tier? Do they even know why? This would be the first step - find out
why they think they want a two tier system.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Blogs: http://www.hower.org/kudzu/blogs
Jul 22 '05 #8
Hi Raju,

You cant simply convert 3 Tier to 2 Tier , though there is nothing to stop
you hosting the Web services on the SQl server making it 2 physical Tiers
and 3 Logical Tiers.

2 Tier apps need a completely different design as you need to tune and
optomise the SQL , 3 Tier server can use Caching , shared collections etc so
dont need to tune SQL to the hilt. 2 Tiers often need Triggers or SQL
polling which 3 Tiers often can do without.

2 Tiers tend to become more problamateic when you have hundreds of users.
For a small number of users 3 Tiers are not worth the extra cost and
difficulty.

Regards ,

Ben
"Raju Joseph" <vz******@msn.com> wrote in message
news:uq**************@TK2MSFTNGP15.phx.gbl...
Okay Guys,

I guess, may be I described my issue wrong. Here is the issue.

We are in the process of building from scratch a distributed n-tier
application. Our phase one coding is over. We have currently 3-tiers which
can be extended to more. But for now 3 tiers. The client is Windows Forms,
the middle tier is ASP.NET web services, then we have the BL and
DataLayers
with data storage. The phase one coding is over and is currently under
test
phase.

One of our singapore clients now has requested us that they do not want
the
N-Tier based solution. They just want a Client-Server solution in .NET.
This
just threw me off.

This is my question. Is there any way I can make the current 3-tier model
to
2-tier. The only way I could think was to take out the web services part.
But then, it would mean a whole lot of code changes on the client since
all
requests are being forwarded thru the web services.

I am still in the process of persuading the clients not to opt for it. But
like the old saying, they are the ones who pay the money.

Thank You,

"Madestro" <me_no_like_spam_juanDOTromero@bowneDOTcom> wrote in message
news:4B**********************************@microsof t.com...

You are correct. I meant 2 Tier. Typo.

Thank you!

--
Juan Romero
-----------------------------------------
The successful person has the habit of doing the things failures don't

like
to do.
E.M. Gray
"Chad Z. Hower aka Kudzu" wrote:
> "=?Utf-8?B?TWFkZXN0cm8=?=" <me_no_like_spam_juanDOTromero@bowneDOTcom>
> wrote in news:C7**********************************@microsof t.com:
> > In fact, client-server is really a 1 Tier
>
> Not reaally. Client server is squarely 2 tier. A 1 tier application is
> a desktop application using and > embdded ISAM database etc like Paradox, DBase, flatfiles, or Access.
>
>
> --
> Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
> "Programming is an art form that fights back"
>
> Blogs: http://www.hower.org/kudzu/blogs
>


Jul 22 '05 #9
Hi:

Do you know why your customer wants to move away from a 3 TIER model?

"Ben Kloosterman" <be*************@ayrdata.com> wrote in message
news:uB**************@TK2MSFTNGP12.phx.gbl...
Hi Raju,

You cant simply convert 3 Tier to 2 Tier , though there is nothing to stop
you hosting the Web services on the SQl server making it 2 physical Tiers
and 3 Logical Tiers.

2 Tier apps need a completely different design as you need to tune and
optomise the SQL , 3 Tier server can use Caching , shared collections etc
so dont need to tune SQL to the hilt. 2 Tiers often need Triggers or SQL
polling which 3 Tiers often can do without.

2 Tiers tend to become more problamateic when you have hundreds of users.
For a small number of users 3 Tiers are not worth the extra cost and
difficulty.

Regards ,

Ben
"Raju Joseph" <vz******@msn.com> wrote in message
news:uq**************@TK2MSFTNGP15.phx.gbl...
Okay Guys,

I guess, may be I described my issue wrong. Here is the issue.

We are in the process of building from scratch a distributed n-tier
application. Our phase one coding is over. We have currently 3-tiers
which
can be extended to more. But for now 3 tiers. The client is Windows
Forms,
the middle tier is ASP.NET web services, then we have the BL and
DataLayers
with data storage. The phase one coding is over and is currently under
test
phase.

One of our singapore clients now has requested us that they do not want
the
N-Tier based solution. They just want a Client-Server solution in .NET.
This
just threw me off.

This is my question. Is there any way I can make the current 3-tier model
to
2-tier. The only way I could think was to take out the web services part.
But then, it would mean a whole lot of code changes on the client since
all
requests are being forwarded thru the web services.

I am still in the process of persuading the clients not to opt for it.
But
like the old saying, they are the ones who pay the money.

Thank You,

"Madestro" <me_no_like_spam_juanDOTromero@bowneDOTcom> wrote in message
news:4B**********************************@microsof t.com...

You are correct. I meant 2 Tier. Typo.

Thank you!

--
Juan Romero
-----------------------------------------
The successful person has the habit of doing the things failures don't

like
to do.
E.M. Gray
"Chad Z. Hower aka Kudzu" wrote:

> "=?Utf-8?B?TWFkZXN0cm8=?=" <me_no_like_spam_juanDOTromero@bowneDOTcom>
> wrote in news:C7**********************************@microsof t.com:
> > In fact, client-server is really a 1 Tier
>
> Not reaally. Client server is squarely 2 tier. A 1 tier application is
> a

desktop application using and
> embdded ISAM database etc like Paradox, DBase, flatfiles, or Access.
>
>
> --
> Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
> "Programming is an art form that fights back"
>
> Blogs: http://www.hower.org/kudzu/blogs
>



Jul 22 '05 #10
What exactly do your clients consider a "server"? The physical box? If so,
you're ok... just host the WS and SQL on the same box.

Otherwise... you could always kick the BLL/DAL components over to the client
side without much hassle, if you tiers are designed right.

Generally I would suggest you talk to the client a bit more... reall
understand what they mean or want (they might be talking about stuff they
don't really understand), and maybe try and talk them out of their own
stupidity... present the benefits of updating the BLL without affecting the
clients, etc.

Regards,

Ziga Jakhel

"Raju Joseph" <vz******@msn.com> wrote in message
news:uq**************@TK2MSFTNGP15.phx.gbl...
Okay Guys,

I guess, may be I described my issue wrong. Here is the issue.

We are in the process of building from scratch a distributed n-tier
application. Our phase one coding is over. We have currently 3-tiers which
can be extended to more. But for now 3 tiers. The client is Windows Forms,
the middle tier is ASP.NET web services, then we have the BL and
DataLayers
with data storage. The phase one coding is over and is currently under
test
phase.

One of our singapore clients now has requested us that they do not want
the
N-Tier based solution. They just want a Client-Server solution in .NET.
This
just threw me off.

This is my question. Is there any way I can make the current 3-tier model
to
2-tier. The only way I could think was to take out the web services part.
But then, it would mean a whole lot of code changes on the client since
all
requests are being forwarded thru the web services.

I am still in the process of persuading the clients not to opt for it. But
like the old saying, they are the ones who pay the money.

Thank You,

"Madestro" <me_no_like_spam_juanDOTromero@bowneDOTcom> wrote in message
news:4B**********************************@microsof t.com...

You are correct. I meant 2 Tier. Typo.

Thank you!

--
Juan Romero
-----------------------------------------
The successful person has the habit of doing the things failures don't

like
to do.
E.M. Gray
"Chad Z. Hower aka Kudzu" wrote:
> "=?Utf-8?B?TWFkZXN0cm8=?=" <me_no_like_spam_juanDOTromero@bowneDOTcom>
> wrote in news:C7**********************************@microsof t.com:
> > In fact, client-server is really a 1 Tier
>
> Not reaally. Client server is squarely 2 tier. A 1 tier application is
> a desktop application using and > embdded ISAM database etc like Paradox, DBase, flatfiles, or Access.
>
>
> --
> Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
> "Programming is an art form that fights back"
>
> Blogs: http://www.hower.org/kudzu/blogs
>


Jul 22 '05 #11

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

Similar topics

2
by: Frazer | last post by:
hi I would like to know what n tier applications are (i thought i already knew that). I had developed an applicaton that had a DAL layer, BLL layer, database and user interface layer. what...
0
by: tstephan | last post by:
In the past we have used the classic nTier design with COM+, SQL Server and MFC. We are currently working on a new project with an opportunity to use .NET, ADO.NET, etc. One of the areas where I...
25
by: Stuart Hilditch | last post by:
Hi all, I am hoping that someone with some experience developing nTier apps can give me some advice here. I am writing an nTier web app that began with a Data Access Layer (DAL), Business...
1
by: Mike Lerch | last post by:
Pretty much, TSIA, but I'll expand a bit: I'm still trying to get my head around the n-tier approach to web design. It seems to me that when you use DataBinder.Eval in the ASPX that your tiers...
5
by: Ryan Ternier | last post by:
I know how this should be done in regards to nTier, but it seems a bit inneficient, and was wondering if there's a solution that I havn't thought of yet. (I'm switching this loop to For Each Row...
1
by: Dnx | last post by:
hi i'm a very beginner of visual studio .net 2003 and aspx/vb.net i have to create a project with an architecture ntier i understand the concept but in practical, i don't know where to begin... ...
2
by: WStoreyII | last post by:
I have been reading up on the N-Tier application Design Model. I understand the concept of and the purpose of breaking up the application in to seperate modules (or tiers) for reusabillity and...
1
by: richilli | last post by:
Hello I am getting a little lost in the N-Tier business. Let me explain what I have so far. I am using the Data Access Application Block to execute my SQL stored procedures on the backend. I...
5
by: Bob Palank | last post by:
Deae Dr. GUI, MVPs and others Features of VB.Net 2005 makes it so easy to access mdb tables directly from the form's controls. This makes me wonder how and if I should restrict the communication...
0
by: Jon Vaughan | last post by:
Hello, I have an NTIER Model written in VB.NET, at the moment is running as a client / server. Pushing a pulling data from the client to the server is fine and is done via webservice calls. But...
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...
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
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...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.