Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

architecture style question

Posted on 2007-12-05
4
Medium Priority
?
237 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
  • 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 2000 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

Industry Leaders: 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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

926 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