2.0 data architecture question

T

Tina

I'm reading about the "3-tier" design afforded by using Object Data Sources
in the App_Data folder in 2.0 asp.net projects.

To me, putting an object data source in a separate folder on the web sever
isn't 3 tier design. To accomplish 3-tier design I would want to put the
Object Data Source in a dll that runs on another server than the web server.
Then I need to use that object data source remotely.

But how can I accomplish binding to my object data source when it's on
another computer. Do I have to use Remoting or is there a slicker way to do
this?

Thanks,
T
 
C

Curtis

In form it may not "seem" like 3-tier design, but in function it is.
3-tier, or n-tier, design simply means to create separate programming
interfaces for the visual, data access, and business logic parts of an
app. Putting the data access into separate "modules" or classes, or
whatever, so long as they are separate, creates the multi-tiered design
-- assuming the interfaces are truly separate.

As for accessing logic on a separate computer without remoting, or
something similar, it is simply not possible. There are several methods
of accomplishing remote procedure calls including SOAP and DCOM, to
name a couple, but they all use some sort of network access to
accomplish the calls.

What is slick is to put remoting into the data access layer... or even
better, create a separate remote data access layer that can be used
interchangeably with the "local" data access layer. This is what we did
in my company.

Curtis
 
T

Tina

So, it sounds like you accomplished physical three tier design using
remoting. Right?
T
 
B

bruce barker \(sqlwork.com\)

if you move your third tier to another server you have to decide what hosts
it (loads the code so the 2nd tier can call it).

if you use IIS for hosting then use SOAP. if you're all dot net, and want to
use remoting, then write a nt service to host your 3rd tier and listen on a
fixed port. You could also use com+ to host the 3rd tier then you use dcom.
if you use SQLServer 2005, you can use sqlserver to host the 3rd tier and
use either SOAP or Sql procedure calls.

-- bruce (sqlwork.com)
 
C

Curtis

Correct. We can choose between a 'remoting' interface and a 'local'
interface.

Curtis
 
J

Joerg Jooss

Thus wrote Tina,
I'm reading about the "3-tier" design afforded by using Object Data
Sources in the App_Data folder in 2.0 asp.net projects.

To me, putting an object data source in a separate folder on the web
sever isn't 3 tier design. To accomplish 3-tier design I would want
to put the Object Data Source in a dll that runs on another server
than the web server. Then I need to use that object data source
remotely.

Your confusing Layers and Tiers. Worse, you tread on a dangerous path here.
There's almost nothing to be gained in distributing your DAL (don't confuse
that with your DB) to another tier -- save for horrible remoting overhead.

Cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,781
Messages
2,569,619
Members
45,314
Latest member
HugoKeogh

Latest Threads

Top