473,803 Members | 3,758 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Layers and Tiers

3 New Member
Hello!

First time posting...

Question about the difference between layers and tiers:

How many tiers are in the WAMP environment?

This is not an exam question, but the answer will help me dispute one. I have a professor who believes the following:

"one may infer Apache as tier 1(for static content), PHP as tier 2 (for dynamic content) and MySql as tier 3 (database management)."

I believe he is wrong, and this comment almost seems like he is grasping for definition himself. I thought it was pretty simple:

Tier 1 = Browser
Tier 2 = Server
Tier 3 = Database

You can quibble about the layer configurations for each tier, or the semantics (i.e. Browser is really Presentation, etc.), but isn't that what it comes down to? This question is specific to everything running on one PC (WAMP) but it shouldn't change the theory.

Thank you for any confirmation..

JR
Mar 27 '08 #1
5 1666
ronverdonk
4,258 Recognized Expert Specialist
The classical 3-tier structure for web is
In the Web development field, three-tier is often used to refer to Websites, commonly Electronic commerce websites, which are built using three tiers:

1. A front end Web server serving static content.

2. A middle dynamic content processing and generation level Application server, for example Java EE platform.

3. A back end Database, comprising both data sets and the Database management system or RDBMS software that manages and provides access to the data.

See also Multitier architecture
also shown in the following article
Tier 1: the client contains the presentation logic, including simple control and user input validation. This application is also known as a thin client.

Tier 2: the middle tier is also known as the application server, which provides the business processes logic and the data access.

Tier 3: the data server provides the business data.

See Three-Tier Architecture
When you have read this you'll understand why your opinions differ.

Ronald
Mar 27 '08 #2
ronverdonk
4,258 Recognized Expert Specialist
After I posted the previous reply I realized that this thread was started in the MySQL forum. I much as I like the subject, I don't think it belongs there and that you can expect more responses in the Community Discussions area, so I will move it there.

moderator
Mar 27 '08 #3
runtime
3 New Member
Thank you for the reply Ronald.

I think the problem is that this professor sees Apache and PHP as separate tiers in a WAMP development environment (that is not an application server). Correct me if I am wrong, but, it would break down like this even when everything is running on the same PC:

(The 3 Tiers)

1) The client browser
2) Apache with PHP
3) MySQL

Here is concise definition I ran across:

"A Layer becomes a Tier if it can be physically separated from the layers consuming it."

So, if you can move it to a computer all by itself, you have a tier:

1) Client computer with browser
2) Apache server with PHP
3) MySQL server

So it breaks down the same except for the application server part, which does not really apply to Apache/PHP (excluding recent PHP application developments), correct?


JR
Mar 27 '08 #4
ronverdonk
4,258 Recognized Expert Specialist
In my opinion you should consider Apache/PHP as a tier.

Ronald
Mar 27 '08 #5
runtime
3 New Member
In my opinion you should consider Apache/PHP as a tier.

Ronald
I agree, but not as two separate Tiers...which is what the Prof. is suggesting.

Thank you for your replies,
John
Mar 28 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
2041
by: deko | last post by:
I have a Solution with 3 Projects, representing 3 layers: App_BL App_DA App_UI All in Namespace APP UI is a Windows Forms app and BL and DA are class libraries.
25
2215
by: Dan Aldean | last post by:
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?
3
1298
by: kbutterly | last post by:
Good morning, I have seen two different types of data access layers and I am wondering which, if either, is considered best practice, or if one is better suited to certain situations than the other. The first type is the DAL described in this MSDN article as well as in the tutorial on the www.asp.net website: http://msdn2.microsoft.com/en-us/library/ aa581778.aspx#aspnet_tutorial01_dataaccesslayer_vb_topic3
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...
0
9700
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
9564
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10546
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10310
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...
1
10292
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10068
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...
1
7603
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5627
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4275
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

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.