Questions tagged [n-tier]

88 questions
45
votes
6 answers

Do stored procedures violate three-tier separation?

Some colleagues of mine have told me that having business logic in stored procedures in the database violates the three-tier separation architecture, since the database belongs to the data layer whereas stored procedures are business logic. I think…
24
votes
2 answers

Benefits of using separate API and UI servers for Web application

At work, we have a large internal application which has been under development for close to 2 years now; I've just recently joined the project and some of the architecture has me slightly perplexed, so I'm hoping someone here can provide some advice…
Stephen Byrne
  • 695
  • 1
  • 5
  • 10
16
votes
6 answers

Methods of debugging code (Nightmare situation)

I am frequently tasked with debugging an application at my job. It is a BI Application that we deploy to businesses, which includes a test environment, and a production environment. I am wondering if there are any apps/tools/methods that people can…
Igneous01
  • 2,343
  • 2
  • 15
  • 18
14
votes
1 answer

Onion architecture vs 3 layered architecture

I see only benefits to the onion architecture over the 3 layered architecture where the BL had responsibility to call methods on DAL (or an interface of DAL) to do CRUD. The onion has better separation of concerns, testability, maintainability and…
BornToCode
  • 1,273
  • 2
  • 13
  • 16
13
votes
2 answers

Dependency injection with n-tier Entity Framework solution

I am currently designing an n-tier solution which is using Entity Framework 5 (.net 4) as its data access strategy, but am concerned about how to incorporate dependency injection to make it testable / flexible. My current solution layout is as…
Matthew
  • 1,976
  • 3
  • 18
  • 26
11
votes
2 answers

.NET MVC project architecture / layering

When planning the architecture for a mid-large scale MVC web application how do you implement the layers to be as decoupled as possible and easy to test? (basically follow best practices) Let's say I'm using code first as my data access. I struggle…
Michael Harper
  • 221
  • 1
  • 2
  • 5
10
votes
2 answers

Repository Pattern vs DAL Object Creation

As far as I've learned, the IRepository should contain CRUD. Then we inherit this IRepository in our other Interfaces like IProductand implement IProductconcrete class ProductRepository, with methods like GetAllProducts(), Top5Products(). We could…
8
votes
1 answer

Definition of a 3-tier system

People often claim that they are following a '3-tier (or n-tier) architecture', and sometimes they then claim to be switching to a Domain Model. But I really never have understood what this mythical '3-tier architecture' is. It seems to have no…
Paul T Davies
  • 3,144
  • 2
  • 22
  • 22
7
votes
2 answers

Data marshalling solution for mult-tier application

I am developing a multi-tier software solution where I have 1 server, n thin client engines(TCE) and m thin clients at the most basic level. I plan on having many other components for scalability where extra components can be added for congestion…
Mark
  • 191
  • 5
7
votes
1 answer

Project/DLL separation of concerns in ASP.NET MVC

I'm coming from a web forms n-tier background into ASP.NET MVC projects, and I'm wondering what the best practices are for separation of the components of MVC into different libraries (or not to) in the way one might with an n-tier model. Most of…
lorddev
  • 550
  • 1
  • 4
  • 15
7
votes
3 answers

Motivation for a service layer (instead of just copying dlls)?

I'm creating an application which has 2 different UIs so I'm making it with a service layer which I understood is appropriate for such scenario. However I found myself just creating web methods for every single method I have in the BL layer, so the…
BornToCode
  • 1,273
  • 2
  • 13
  • 16
7
votes
4 answers

How should UI layer pass user input to BL layer?

I'm building an n-tier application, I have UI, BL, DAL & Entities (built from POCO) projects. (All projects have a reference to the Entities). My question is - how should I pass user input from the UI to the BL, as a bunch of strings passed to the…
BornToCode
  • 1,273
  • 2
  • 13
  • 16
6
votes
8 answers

What benefit do I get from good methodology?

One of my friends has worked for nearly 10 years, asked me why he needs to learn new things such as unit-testing, MVC, Multi-tier architecture (he creates 3-tier application but designs like 2-tier), Object-oriented programming or etc? He has worked…
Anonymous
  • 2,029
  • 3
  • 22
  • 24
6
votes
4 answers

Entity Framework in n-tier application confusion

I'm building a rather large (web) application where I'm using Entity Framework to communicate with the database. My solution is set up in layers like so: Client Website (MVC web application) Server BusinessLogic (contains, well, business…
Bo Mortensen
  • 161
  • 3
6
votes
2 answers

Domain Objects with Interfaces

I'm in a situation where part of my system has a dependency on another module in the same system, but the modules themselves need to remain independently deployable, where the parts they depend on would be filled in with another implementation. A…
Martin Blore
  • 4,645
  • 5
  • 29
  • 35
1
2 3 4 5 6