473,320 Members | 2,083 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,320 software developers and data experts.

Basic Architecture

Where do I place my code? I am learning VS.NET 2003 but
have a big picture question on how to build applications.
The way I see it, I have three places I can place code. I
can place code on the webserver (front end), the
application sever(s), and the back-end SQL Server. It
seems to me, the best practice is to place as much code on
the SQL Server (called through triggers) and on the
middle "application server" and as little as possible on
the web server. Is this correct? I have been studying many
ASP.NET and VB.NET books, and it seems no one addresses
this design topic clearly.
Nov 20 '05 #1
5 1005
Cor
Hi Todd,
Where do I place my code? I am learning VS.NET 2003 but
have a big picture question on how to build applications.
The way I see it, I have three places I can place code. I
can place code on the webserver (front end), the
application sever(s), and the back-end SQL Server. It
seems to me, the best practice is to place as much code on
the SQL Server (called through triggers) and on the
middle "application server" and as little as possible on
the web server. Is this correct? I have been studying many
ASP.NET and VB.NET books, and it seems no one addresses
this design topic clearly.


You say have an WebServer, an Application Server and an SQL server.

What I know in very short words is that the WebServer/Applications Server is
the IIS/ASP.Net server. An integrated server (or more if necessary using
load balancing) where all the programming code is placed that has to do with
Web applications, it delivers on request of the client window program or a
webforms the information that is needed.

That can be delivered using HTML/XML, as XML files or XML datasets or just
messages using Webservices.

The SQL server is a supplier of data which can be supplied using stored
procedures or just with an SQL script.

What you describe sounds to me as an Oracle concept.

But maybe I am wrong?

Cor

Nov 20 '05 #2
Todd,
With the power of ASP.NET, I would place the bulk of my code in ASP.NET. I
would use stored procedures on SQL Server, largely handling CRUD (Create,
Retrieve, Update, Delete). I would resort to a trigger only if there was an
interface to the data that did not allow the use of stored procedures.

I would only get an "application server" involved, if I really need one. If
I used an "application server" I would favor .NET Remoting over Web Services
for communication, as I find Web Services are more for external interfaces
to your app, not internal interfaces between layers.

Of course my ASP.NET code would be fully OOP.

Hope this helps
Jay

"Todd" <tm*******@yahoo.com> wrote in message
news:00****************************@phx.gbl...
Where do I place my code? I am learning VS.NET 2003 but
have a big picture question on how to build applications.
The way I see it, I have three places I can place code. I
can place code on the webserver (front end), the
application sever(s), and the back-end SQL Server. It
seems to me, the best practice is to place as much code on
the SQL Server (called through triggers) and on the
middle "application server" and as little as possible on
the web server. Is this correct? I have been studying many
ASP.NET and VB.NET books, and it seems no one addresses
this design topic clearly.

Nov 20 '05 #3
Wow. So what is being said by you and Jay is I don't need
an "application server" to host the bulk of my code. My
code should be placed on the web server. Is that correct?
Nov 20 '05 #4
Todd,
Yes, that I what I am saying, you MAY not need an "application server" at
all.

Without knowing more of the specifics on your project it is hard to say
either way.

Generally I separate my app into logical layers, not physical layers.

Hope this helps
Jay

"Todd" <an*******@discussions.microsoft.com> wrote in message
news:00****************************@phx.gbl...
Wow. So what is being said by you and Jay is I don't need
an "application server" to host the bulk of my code. My
code should be placed on the web server. Is that correct?

Nov 20 '05 #5
Cor
Hi Todd,

For some reason your message was set as "read", but I saw the answer from
JayB.

So I answer too.

The only thing I want to add is, I would not call it a webserver, because a
..Net webapplication is more than a dumm HTML webpage. It uses a .Net server
(or a load balandced group of servers) what is a combination of a Web and
Serverside application server.

Cor
Wow. So what is being said by you and Jay is I don't need
an "application server" to host the bulk of my code. My
code should be placed on the web server. Is that correct?

Nov 20 '05 #6

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

Similar topics

1
by: Robin Powers | last post by:
PROCESS CONTROLS/VISUAL BASIC PROGRAMMERS SALARY: TO $100,000 LOCATION: LOS ANGELES AREA Our Client has recently acquired process automation systems used to monitor and control their...
25
by: David Noble | last post by:
We've been developing a web site using 3-tier architecture for 18 months now. There is a common layer that defines the classes - using XML schemas. The data layer acts as a wrapper to 3 databases...
1
by: Barney | last post by:
I'm not sure if i'm in the correct area or not but i didnt see one for this. I've been in the IT world now for 10 years and coding now for 7 of them. I've done everything from helpdesk - network...
10
by: Todd | last post by:
I need clarification on how an application should be structured. In my mind, you should have a data base sever, a middle server to host a bulk of the code, and a front end web server. However, I...
6
by: M P | last post by:
Please help me choose the right software. What is the difference between the two software? Since I will be using VB.Net, I really don;t need to use C# that is included on VS.Net am I right? Any...
16
by: Jesse Liberty | last post by:
I am writing a new book on Visual Basic 2005, targeted at VB6 programmers, and to some degree VB.NET 1.x programmers. I'd like to sign up a (limited) number of volunteers to read the book and...
0
by: tommak | last post by:
It's a dream of human beings to build machines that can think and behave like human beings. The most important part of of such a machine is an artificial mind that can emulate the cognitive...
1
by: tommak | last post by:
It's a dream of human beings to build machines that can think and behave like human beings. The most important part of of such a machine is an artificial mind that can emulate the cognitive...
8
by: Chris Asaipillai | last post by:
Hi there I have some questions for those experienced Visual Basic 6 programmers out there who have made the transition from VB6 to Vb.net. How long did it take you to learn at least the basic...
28
by: philbo30 | last post by:
Simple question, I think: I have a known byte, "byte 1": 0000 0100 and a known portion of an unknown byte, "byte 2": bbbb 0100
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.