473,831 Members | 2,311 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

3-tier layers

Hello,

I try to understand how the business and presentation layers would
practically
translate into programming reality.
I read lots of articles about 3-tier, but none of them gave a practical
example
and I managed to understand the data layer only.
Is for example web services and their consumption an instance of n-tier,
covering the business and presentation layers?
If it is not necessary a WEB development how would the presentation and
business
layer come to life, through what? Is ASP the presentation layer and C# the
business layer?

Thanks a lot.
Apr 25 '06 #1
25 2216
The 3-tier model is based upon separation of general functionality. You have
3 tiers:

Interface
Business
Data

Each tier is more specific than the one below.

The Data Tier is only for working with underlying data stores. It knows
nothing of specific business rules about how to handle the data. It only
knows how to fetch it, change it, delete it, that sort of thing. It is a
programming interface to the data that any application stores. As such, it
is agnostic of any rules concerning what the data is, or how it is to be
treated. It is the "supply clerk" of the organization. This way it can be
used by many applications.

The Business Tier is for manipulating the data. It contains the Business
logic and Business rules that comprise the "engine" of an application. It
knows everything about the Data Tier, while the Data Tier knows nothing
about the Business Tier. The Business Tier works with Data, but does nothing
to expose it to a user. It does expose what is necessary for any other
component or application to be able to work with the data, and is in charge
of making sure that everything is handled according to the Business rules.
It has a programming interface, but no user interface. This way, the
functionality of the Business tier can be used in many different types of
interfaces.

The User Interface is the most specific. It knows nothing about the Data
Tier; that is the Business Tier's job. It knows everything about the exposed
API of the Business tier, and its job is to present the data to the user,
and to take input from the User and relay it to the Business Tier. It is a
"universal translator" for the application, which speaks human at one end,
and business API at the other.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Dan Aldean" <da*******@yaho o.com> wrote in message
news:ua******** ******@TK2MSFTN GP04.phx.gbl...
Hello,

I try to understand how the business and presentation layers would
practically
translate into programming reality.
I read lots of articles about 3-tier, but none of them gave a practical
example
and I managed to understand the data layer only.
Is for example web services and their consumption an instance of n-tier,
covering the business and presentation layers?
If it is not necessary a WEB development how would the presentation and
business
layer come to life, through what? Is ASP the presentation layer and C#
the business layer?

Thanks a lot.

Apr 25 '06 #2
I'd add that each tier should be allowed to be physically seperated as
well. All the tiers can operate on seperate servers / workstations.

Apr 25 '06 #3
Thanks for replying,
I was looking more for a description of how the business layer can be
expressed: a DLL,
a COM object, a WEB service?
Theoretically I understand the concept, but the practical side is difficult
for me to grab.
As I see it WEB services would solve the business layer, but what's used
when the application is Windows based?

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:OV******** ******@TK2MSFTN GP03.phx.gbl...
The 3-tier model is based upon separation of general functionality. You
have 3 tiers:

Interface
Business
Data

Each tier is more specific than the one below.

The Data Tier is only for working with underlying data stores. It knows
nothing of specific business rules about how to handle the data. It only
knows how to fetch it, change it, delete it, that sort of thing. It is a
programming interface to the data that any application stores. As such, it
is agnostic of any rules concerning what the data is, or how it is to be
treated. It is the "supply clerk" of the organization. This way it can be
used by many applications.

The Business Tier is for manipulating the data. It contains the Business
logic and Business rules that comprise the "engine" of an application. It
knows everything about the Data Tier, while the Data Tier knows nothing
about the Business Tier. The Business Tier works with Data, but does
nothing to expose it to a user. It does expose what is necessary for any
other component or application to be able to work with the data, and is in
charge of making sure that everything is handled according to the Business
rules. It has a programming interface, but no user interface. This way,
the functionality of the Business tier can be used in many different types
of interfaces.

The User Interface is the most specific. It knows nothing about the Data
Tier; that is the Business Tier's job. It knows everything about the
exposed API of the Business tier, and its job is to present the data to
the user, and to take input from the User and relay it to the Business
Tier. It is a "universal translator" for the application, which speaks
human at one end, and business API at the other.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Dan Aldean" <da*******@yaho o.com> wrote in message
news:ua******** ******@TK2MSFTN GP04.phx.gbl...
Hello,

I try to understand how the business and presentation layers would
practically
translate into programming reality.
I read lots of articles about 3-tier, but none of them gave a practical
example
and I managed to understand the data layer only.
Is for example web services and their consumption an instance of n-tier,
covering the business and presentation layers?
If it is not necessary a WEB development how would the presentation and
business
layer come to life, through what? Is ASP the presentation layer and C#
the business layer?

Thanks a lot.


Apr 25 '06 #4
If you are working in .NET 2.0, you'll want to become familiar
with Generics. There are ways to make the different layers
see only portions of your classes so as not to violate
certain design principles.

http://www.eggheadcafe.com/articles/...ion_layers.asp

--
Robbe Morris - 2004-2006 Microsoft MVP C#
Earn money answering .NET questions
http://www.eggheadcafe.com/forums/merit.asp

"Dan Aldean" <da*******@yaho o.com> wrote in message
news:ua******** ******@TK2MSFTN GP04.phx.gbl...
Hello,

I try to understand how the business and presentation layers would
practically
translate into programming reality.
I read lots of articles about 3-tier, but none of them gave a practical
example
and I managed to understand the data layer only.
Is for example web services and their consumption an instance of n-tier,
covering the business and presentation layers?
If it is not necessary a WEB development how would the presentation and
business
layer come to life, through what? Is ASP the presentation layer and C#
the business layer?

Thanks a lot.

Apr 25 '06 #5
A Web Service is an interface. It is a form of presentation tier. It exposes
the API of a set of business classes. A Business tier is a set of classes. A
DLL is a container for code. A COM object isn't even .Net. A Data Tier is
also a set of classes. The classes can reside in one or more assemblies. An
assembly is stored in one or more DLLs.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Dan Aldean" <da*******@yaho o.com> wrote in message
news:Oy******** ******@TK2MSFTN GP05.phx.gbl...
Thanks for replying,
I was looking more for a description of how the business layer can be
expressed: a DLL,
a COM object, a WEB service?
Theoretically I understand the concept, but the practical side is
difficult for me to grab.
As I see it WEB services would solve the business layer, but what's used
when the application is Windows based?

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:OV******** ******@TK2MSFTN GP03.phx.gbl...
The 3-tier model is based upon separation of general functionality. You
have 3 tiers:

Interface
Business
Data

Each tier is more specific than the one below.

The Data Tier is only for working with underlying data stores. It knows
nothing of specific business rules about how to handle the data. It only
knows how to fetch it, change it, delete it, that sort of thing. It is a
programming interface to the data that any application stores. As such,
it is agnostic of any rules concerning what the data is, or how it is to
be treated. It is the "supply clerk" of the organization. This way it can
be used by many applications.

The Business Tier is for manipulating the data. It contains the Business
logic and Business rules that comprise the "engine" of an application. It
knows everything about the Data Tier, while the Data Tier knows nothing
about the Business Tier. The Business Tier works with Data, but does
nothing to expose it to a user. It does expose what is necessary for any
other component or application to be able to work with the data, and is
in charge of making sure that everything is handled according to the
Business rules. It has a programming interface, but no user interface.
This way, the functionality of the Business tier can be used in many
different types of interfaces.

The User Interface is the most specific. It knows nothing about the Data
Tier; that is the Business Tier's job. It knows everything about the
exposed API of the Business tier, and its job is to present the data to
the user, and to take input from the User and relay it to the Business
Tier. It is a "universal translator" for the application, which speaks
human at one end, and business API at the other.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Dan Aldean" <da*******@yaho o.com> wrote in message
news:ua******** ******@TK2MSFTN GP04.phx.gbl...
Hello,

I try to understand how the business and presentation layers would
practically
translate into programming reality.
I read lots of articles about 3-tier, but none of them gave a practical
example
and I managed to understand the data layer only.
Is for example web services and their consumption an instance of n-tier,
covering the business and presentation layers?
If it is not necessary a WEB development how would the presentation and
business
layer come to life, through what? Is ASP the presentation layer and C#
the business layer?

Thanks a lot.



Apr 26 '06 #6
Nicely put Kevin.

--
William Stacey [MVP]

....
Apr 26 '06 #7
Thanks Kevin,
Couldn't be a WEB service considered a business layer as long as it is a
class with different methods and the application that makes a reference
becomes a presentation layer?
I can create a service on a separate server for example, where I can put all
the business logic in it, but it does not have a presentation until I create
an application on another server (that makes a reference to the service)
which uses controls for the user input.
"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:Ox******** ******@TK2MSFTN GP02.phx.gbl...
A Web Service is an interface. It is a form of presentation tier. It
exposes the API of a set of business classes. A Business tier is a set of
classes. A DLL is a container for code. A COM object isn't even .Net. A
Data Tier is also a set of classes. The classes can reside in one or more
assemblies. An assembly is stored in one or more DLLs.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Dan Aldean" <da*******@yaho o.com> wrote in message
news:Oy******** ******@TK2MSFTN GP05.phx.gbl...
Thanks for replying,
I was looking more for a description of how the business layer can be
expressed: a DLL,
a COM object, a WEB service?
Theoretically I understand the concept, but the practical side is
difficult for me to grab.
As I see it WEB services would solve the business layer, but what's used
when the application is Windows based?

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:OV******** ******@TK2MSFTN GP03.phx.gbl...
The 3-tier model is based upon separation of general functionality. You
have 3 tiers:

Interface
Business
Data

Each tier is more specific than the one below.

The Data Tier is only for working with underlying data stores. It knows
nothing of specific business rules about how to handle the data. It only
knows how to fetch it, change it, delete it, that sort of thing. It is a
programming interface to the data that any application stores. As such,
it is agnostic of any rules concerning what the data is, or how it is to
be treated. It is the "supply clerk" of the organization. This way it
can be used by many applications.

The Business Tier is for manipulating the data. It contains the Business
logic and Business rules that comprise the "engine" of an application.
It knows everything about the Data Tier, while the Data Tier knows
nothing about the Business Tier. The Business Tier works with Data, but
does nothing to expose it to a user. It does expose what is necessary
for any other component or application to be able to work with the data,
and is in charge of making sure that everything is handled according to
the Business rules. It has a programming interface, but no user
interface. This way, the functionality of the Business tier can be used
in many different types of interfaces.

The User Interface is the most specific. It knows nothing about the Data
Tier; that is the Business Tier's job. It knows everything about the
exposed API of the Business tier, and its job is to present the data to
the user, and to take input from the User and relay it to the Business
Tier. It is a "universal translator" for the application, which speaks
human at one end, and business API at the other.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Dan Aldean" <da*******@yaho o.com> wrote in message
news:ua******** ******@TK2MSFTN GP04.phx.gbl...
Hello,

I try to understand how the business and presentation layers would
practically
translate into programming reality.
I read lots of articles about 3-tier, but none of them gave a practical
example
and I managed to understand the data layer only.
Is for example web services and their consumption an instance of
n-tier,
covering the business and presentation layers?
If it is not necessary a WEB development how would the presentation and
business
layer come to life, through what? Is ASP the presentation layer and C#
the business layer?

Thanks a lot.



Apr 26 '06 #8
The business layer is usually just an assembly dll used directly. If
you have functionality of the business layer you need to expose to
untrusted sources (such as partner companies, etc), you usually build a
facade layer to communicate with the business layer. The facade layer
could be a web service.

A web service should not be the business layer though; the web service
should be just another 'UI' to the business layer. that way you could
use the business layer in a windows forms application (and wouldn't
need to go throuh a web service).

Apr 26 '06 #9
If you put your business logic into a Web Service, you have bound the API
for that business logic to a Web Service interface. The Web Service itself
is an interface, but not a programming interface, strictly. Not a good idea,
since there is latency involved, and severe restrictions on the interface
itself. Everything passed through it must be serialized as XML.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Dan Aldean" <da*******@yaho o.com> wrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
Thanks Kevin,
Couldn't be a WEB service considered a business layer as long as it is a
class with different methods and the application that makes a reference
becomes a presentation layer?
I can create a service on a separate server for example, where I can put
all the business logic in it, but it does not have a presentation until I
create an application on another server (that makes a reference to the
service) which uses controls for the user input.
"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:Ox******** ******@TK2MSFTN GP02.phx.gbl...
A Web Service is an interface. It is a form of presentation tier. It
exposes the API of a set of business classes. A Business tier is a set of
classes. A DLL is a container for code. A COM object isn't even .Net. A
Data Tier is also a set of classes. The classes can reside in one or more
assemblies. An assembly is stored in one or more DLLs.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Dan Aldean" <da*******@yaho o.com> wrote in message
news:Oy******** ******@TK2MSFTN GP05.phx.gbl...
Thanks for replying,
I was looking more for a description of how the business layer can be
expressed: a DLL,
a COM object, a WEB service?
Theoretically I understand the concept, but the practical side is
difficult for me to grab.
As I see it WEB services would solve the business layer, but what's used
when the application is Windows based?

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:OV******** ******@TK2MSFTN GP03.phx.gbl...
The 3-tier model is based upon separation of general functionality. You
have 3 tiers:

Interface
Business
Data

Each tier is more specific than the one below.

The Data Tier is only for working with underlying data stores. It knows
nothing of specific business rules about how to handle the data. It
only knows how to fetch it, change it, delete it, that sort of thing.
It is a programming interface to the data that any application stores.
As such, it is agnostic of any rules concerning what the data is, or
how it is to be treated. It is the "supply clerk" of the organization.
This way it can be used by many applications.

The Business Tier is for manipulating the data. It contains the
Business logic and Business rules that comprise the "engine" of an
application. It knows everything about the Data Tier, while the Data
Tier knows nothing about the Business Tier. The Business Tier works
with Data, but does nothing to expose it to a user. It does expose what
is necessary for any other component or application to be able to work
with the data, and is in charge of making sure that everything is
handled according to the Business rules. It has a programming
interface, but no user interface. This way, the functionality of the
Business tier can be used in many different types of interfaces.

The User Interface is the most specific. It knows nothing about the
Data Tier; that is the Business Tier's job. It knows everything about
the exposed API of the Business tier, and its job is to present the
data to the user, and to take input from the User and relay it to the
Business Tier. It is a "universal translator" for the application,
which speaks human at one end, and business API at the other.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Dan Aldean" <da*******@yaho o.com> wrote in message
news:ua******** ******@TK2MSFTN GP04.phx.gbl...
> Hello,
>
> I try to understand how the business and presentation layers would
> practically
> translate into programming reality.
> I read lots of articles about 3-tier, but none of them gave a
> practical example
> and I managed to understand the data layer only.
> Is for example web services and their consumption an instance of
> n-tier,
> covering the business and presentation layers?
> If it is not necessary a WEB development how would the presentation
> and business
> layer come to life, through what? Is ASP the presentation layer and
> C# the business layer?
>
> Thanks a lot.
>



Apr 26 '06 #10

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

Similar topics

1
2815
by: Lizzy | last post by:
I have an internet application which has a progress bar show whenever the customer is requesting data from the server. This progress bar is coded to work in both Netscape 4.75 and above and IE 5.0 and above. The progress bar code is written in javascript in an external js file (progressbar.js). The web screen is in a seperate jsp file (Registration.jsp). The problem I'm having is that the progress bar is not showing in Netscape 4.75 on a...
1
1785
by: Chris Leonard | last post by:
Hi. Can anyone help me please. If the syntax for IE is: document.getElementById(layerID) What if I want to use layers ? document.layers ?????????
6
6848
by: David List | last post by:
I'm having a problem using different properties of the document object in the example javascripts in my textbook with browsers that identify themselves as using the Mozilla engine. One example of these problems is using document.layers. I have Google'd for examples of how to use the document object specifically with Mozilla, but I cannot find anything that explains why my problems occur. Could anyone here see through the included example...
8
11103
by: Freek te Water | last post by:
Hi, Hope no-one is offended by my probably noob question... Context: I have a web page design, which always centres in the middle of the screen (using a 100%*100% HTML-table). Now I also use layers, that get visible when something is clicked. All works fine. Problem:
4
3812
by: ashkaan57 | last post by:
Hi, I am using the following code to show/hide part of an html page. It works in Netscape and Firefox but dies in IE: "Error: document.layers is null or not an object" <style> ..noshow { display: none; } ..menu {
5
2669
by: evanburen | last post by:
I have a set of 10 div layers on a page that each contain dynamic content pulled from a database so the size of the div layers is not static. Each layer can be viewed or hidden by checking checkboxes at the top of the page. The problem I'm having is that if the user wants to view only div layers 8-10, I have a lot of dead space in the page where div layers 1-7 are on the page but not visible in the browser. How do I arrange these div...
2
951
by: riga | last post by:
Hi, I was given an ASP.NET (C#) application to modify. The code looks really strange. It's supposed to do simple things but it has Facade/BusinessRules/Common/DataAccess layers. For example, simple method in Navigate.ascx.cs is instantiating a new object and calls obj1.COBdateInit(). obj1 does exactly the same thing. It call obj2.COBDateInit()
10
10969
by: Joey_Stacks | last post by:
Does anyone know of a scipt that will rotate random div layers on page refresh? I have a primary content area front and center on my site homepage, and I'd like to rotate various chunks of html (in div layers) each time a user reloads the page. Right now I'm resorting to a random image rotation (those scripts are a dime a dozen) on refresh, but it's far from ideal for what I'm trying to accomplish. Any help on this would be GREATLY...
5
2377
by: Burt | last post by:
There's an architect at my 200 person company that advocates having many layers in all my C# apps. He wants web services, use case handlers, facade layers, data gateways, etc. When I ask why all this complexity is necessary, he gives me what if scenarios: "What if you ever want to access the business logic with another front end?", for example. These are typical "intranet apps"...one or more screens selecting and updating rows in a...
1
5584
by: Grimm | last post by:
I am developing an internalk inteface that integrates alot of seperate tools into one interface. The current version uses one Iframe inside a div layer for positioning. Currently the seperate web tools do not have the ability to stay active. As you switch from tool to tool the previous information is lost unless you use a Back button. I need to place multiple div layers with I frames in them that can be shown or hidden based on selection. The...
0
9793
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10494
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10208
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9317
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6951
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5620
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5785
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4417
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3076
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.