servicearchitecturen-tier-architecture

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?


Solution

    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.

    The move to being called N-Tier is a reflection of the move to increasingly componentised architectures from the older client-server to the first 3-Tier then 4-Tier architectures. The reason it's become N-Tier rather than a specific number is because the actual number can change as per the last three optional, or evolving tiers. The defining characteristic of a tier is a clearly defined interface with a separation of concerns.