Solved

architecture style question

Posted on 2007-12-05
4
233 Views
Last Modified: 2013-11-07
Hi Guys,

A three tier archetecture involves a seperation of the presentation layer, the business logic and the database server.  

Currently, I on my web sites, I have only simple code on the web forms to accept and verify input data from the users.  I then seperate all of the business logic into classes that that execute like minded algorithims, and store like minded private data variables.  However, instead of using stored procedures, I just embed the sql in the classes to hit the database server.

Would this be considered a two tier type of architecture?

Any input is appreciated.

Thanks,

Ryan
0
Comment
Question by:dchau12
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 25

Expert Comment

by:imitchie
ID: 20417216
To me, that is still one tier - in that everything sits in your one application! But everyone has a different view on it.
Internally, since you embed SQL into your app, it's inherently married to the database server - there goes 1 tier.
At a stretch you can call it 2-tier
0
 

Author Comment

by:dchau12
ID: 20417226
So, if I used stored procedures, you would consider it two tier?  How could I then make it into a three tier app?
0
 
LVL 25

Accepted Solution

by:
imitchie earned 500 total points
ID: 20417304
Using stored procedures means that the Business layer is moved (mostly) to the DB server. That is very clearly a different tier whether internally or externally.  The handover point is the Stored procedure parameters.
As for separation between presentation and model, you've already done that - as long as the input forms do nothing more than capture, and forward on to "model" classes.  i.e. you don't have all sorts of non-view/input capture related code in the forms.
0
 

Author Closing Comment

by:dchau12
ID: 31413052
Thanks.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question