Solved

architecture style question

Posted on 2007-12-05
4
235 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

How To Install Bash on Windows 10

Windows’ budding partnership with Canonical has certainly led to some great improvements. One of them being the ability to use Bash on your Windows machine without third party applications! This might be one of the greatest things a cloud engineer in a Windows environment can do!

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
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…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

632 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