Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7697331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:59:15+00:00 2026-05-31T21:59:15+00:00

I’ve been struggling with how to structure my 3-tier applications. I always seem to

  • 0

I’ve been struggling with how to structure my 3-tier applications. I always seem to end up with dependency issues that I don’t want, which is a sure sign that i’m doing something wrong.

How do you typically structure your 3-tier architecture?

I see one of 2 ways to do this:

  1. Business tier is at the top (or bottom, depending on how you look at it) ad all other layers depend on it. The business layer defines interfaces it needs to do its job, particularly for data access. The data access layer implements those interfaces, and Dependency Injection is used to inject them into the middle tier. The UI likewise consumes the output interfaces, again through DI. Business objects are POCO’s that the Data layer fills. Data layer does not have it’s own code model (it uses the business objects defined in the business layer). Business layer knows nothing about either UI or Data layer, UI and Data Layer know about business layer.
  2. UI Tier is at the top, Business in the middle, Data at the bottom. The Data layer publishes interfaces that the Business tier consumes. Business has interfaces that the UI consumes. It’s a straight 1-2-3 sort of situation. Data Layer defines code objects, business layer has it’s own model (and something like AutoMapper is used to map between them. But this mapping is performed in the business layer). Data Layer knows nothing about Business or UI layer. Business layer knows about Data layer, but not about UI layer. UI layer knows about Business layer, but not about Data layer.

enter image description here

Do you use either of these? Which one? Why? Do you use a different approach?

The way I see it, #1 offers a business-centric method of doing things. UI can be easily changed as can data layer without affecting business layer.

The second is more straight forward, and typically would require that the business layer change if the data layer changes. Of course, you can abstract this with well planned interfaces, (like a Repository pattern, but somewhere this needs to change). UI can be changed without affecting either.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T21:59:17+00:00Added an answer on May 31, 2026 at 9:59 pm

    if it’s a CURD application with little business logic, use approach #2.
    otherwise, use approach #1, it’s actually a result of applying Inversion of Control (IoC) to #2.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a French site that I want to parse, but am running into
I'm interested in microtypography issues on the web. I want a tool to fix:
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I am trying to understand how to use SyndicationItem to display feed which is
I've got a string that has curly quotes in it. I'd like to replace
I have a small JavaScript validation script that validates inputs based on Regex. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.