Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Example of 4-Tier (for N-Tier) Architecture?

Recently a friend of mine asked me about N-Tier architectures and I was able to explain to him about 1, 2 and 3 tier architectures with examples. But I was stuck when I wanted to give examples for more than 3 tiers. I googled and binged for help, but could not find any decent examples.

The fact that it is named N-tier makes me think that 'N' can be any number starting from 1. But I couldn't find any examples for 4 or 5 tier.

Can somebody share some examples of N-tier architectures that involves more than 3 tiers?

like image 932
muruge Avatar asked May 25 '12 21:05

muruge


People also ask

What is an example of n-tier architecture?

And there are n-tier architecture models that have more than three tiers. Examples are applications that have these tiers: Services – such as print, directory, or database services. Business domain – the tier that would host Java, DCOM, CORBA, and other application server object.

What are N-tier applications explain with suitable examples?

N-tier data applications are data applications that are separated into multiple tiers. Also called "distributed applications" and "multitier applications", n-tier applications separate processing into discrete tiers that are distributed between the client and the server.

What is an N-Tier architectural style?

An N-tier architecture divides an application into logical layers and physical tiers. Layers are a way to separate responsibilities and manage dependencies. Each layer has a specific responsibility. A higher layer can use services in a lower layer, but not the other way around.

How many tiers are there in an N-tier application design?

N-tier architecture usually divides an application into three tiers: the presentation tier, logic tier and data tier. It is the physical separation of the different parts of the application as opposed to the usually conceptual or logical separation of the elements in the model-view-controller (MVC) framework.


2 Answers

  1. Fundamental Services : e.g. Database, Directory Services, File & Print Services, Hardware abstraction. This tier is increasingly called the platform.
  2. Business Domain Tier : An Application Server such JavaEE including EJB, DCOM or CORBA Service Objects. Provide business functionality, increasing using SOA and Micro-services.
  3. Presentation Tier : e.g. Java Servlets/JSP, ASP, PHP. This tier will increasingly include WebServices as proxies and adaptors for business tier services.
  4. Client Tier : Thin clients like HTML Pages on Browsers and Rich Clients like Java WebStart & Flash.
  • In Java EE it is common to divide the Business Domain tier into Data-Access (Entity Beans) & Business Services (Session Beans).
  • In an Enterprise SOA (Service Oriented Architecture) the ESB (Enterprise Service Bus) would typically exist as an additional tier between tiers 1 & 2. It may be part of the platform provision.
  • In Mashups you could have an aggregation tier between tier 3 & 4.

The move to being called N-Tier is a reflection of the move to increasingly componentised architectures from the older client-server to first 3-Tier then 4-Tier. The defining characteristic of a tier is a clearly defined interface with a separation of concerns.

like image 67
Martin Spamer Avatar answered Nov 02 '22 19:11

Martin Spamer


my understanding of four tier

Five minutes ago I've read an article of this https://www.nginx.com/blog/time-to-move-to-a-four-tier-application-architecture

Client is where you read it Api or your application back-end is where you assemble it .. Data aggregation.. Either goes through the jsons/xmls from outsourced things or queries on your database and lastly service tier is where you actually do the query on database or run function on big data or read GPS locations and maps from google ... That is how I see it in this case. It simply divided the data layer from three tier.

But this N-tier model is totally abstract so you can tear your infrastructure until you have some logically atomic parts only. Still dividing the previous structure.

like image 29
lukassos Avatar answered Nov 02 '22 19:11

lukassos