3 Tiered? N-Tiered? Domain Driver Design?

Posted on 2011-05-09
Last Modified: 2012-06-21
Where does DDD fit into the discussion of the number of Tiers in an architecture?

I use:

- MVC3
- Entity Framework
- ViewModels
- Manager classes to manage the interaction between ViewModels and EF4 partial classes

I prefer:
- The IRepository pattern to make changing database or db frameworks easy
- Domain Driven Design

How many Tiers have I described?
Is it even possible anymore to count the number of Tiers?

Question by:newbieweb
    LVL 42

    Assisted Solution

    Up to a point, you can count the number of tiers.  1,2, or 3.  But, the "n" in n-tiers sort of implies that number is variant.

    But not by listing development methodologies and technologies, as you have done. Using those technologies, you can develop 1,2,3,or N tier.  

    Author Comment

    I am a little confused by tier names:

    Can you give me an example of the best practice use of n-tiers?
    LVL 42

    Accepted Solution

    One tier:
      Put a static html page on your desktop and open it with a browser. Everything done on the workstation.  

    Two tier:
      Find a static html page on a website and open it with a browser.  Internet server delivers html to the workstaion, workstation renders it.

    Three tier:
      Use the login page of a website.  Application on web server looks up your credentials on a database server, delivers an html response to the workstation.

      Purchase something on amazon.  Application on webserver orchestrates the complex process of shopping cart checkout, inluding looking up actual delivery charges from UPS and validating your Mastercard through some Merchant account.

     Check out this explanation:


    Author Closing Comment


    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
    Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now