Skip to main content

Questions tagged [n-tier]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
2 answers
251 views

In the usual "3-layer" architecture pattern, where would one best create dynamic, user-readable strings?

I've been trying to build this (principally desktop, but could eventually be turned into a cloud app) document editor program for a while and have it laid out using the broad principles of the 3-Layer ...
The_Sympathizer's user avatar
0 votes
1 answer
158 views

Best mapping practices in an enterprise application

This question might seem like a trivial question. But here it goes. Currently, I'm working with this .NET Core application, an N-tier application consisting of a Vue frontend, business logic layer, ...
XRaycat's user avatar
  • 131
1 vote
2 answers
734 views

Confusion about layered architecture

Given a layered architecture consisting of presentation layer business logic layer data (access) layer and a SPA web application communicating through REST endpoints with the backend (eg Angular and ...
keezar's user avatar
  • 27
1 vote
1 answer
853 views

Where to place the business logic for an external application that is tightly coupled with an internal application and how to adapt the architecture?

I and a colleague had a rather strange discussion with our boss related to the architecture of the applications we are currently developing. The C4 (second level) diagram of the existing architecture ...
Alexei's user avatar
  • 452
-1 votes
1 answer
98 views

Use two parallel instances of the same .NET assembly

I've have an n-tier .NET 4.6 internal business application. It has a business logic layer class library project that references a data access layer class library project. It's designed to decouple the ...
xr280xr's user avatar
  • 189
-2 votes
1 answer
672 views

How to understand two-tier and three-tier solutions for web applications?

From Distributed Systems by Coulouris: Tiered architectures are complementary to layering. Whereas layering deals with the vertical organization of services into layers of abstraction, tiering ...
Tim's user avatar
  • 5,475
1 vote
1 answer
119 views

Should i create a Core library for all business applications ? or each one individual?

I was find many companies which creating entities and models for each business applications So all these apps not reusable. Now, some clients of the company for example. needs 3 kind of software. ...
CowBoy's user avatar
  • 153
0 votes
0 answers
35 views

Design for import/export of data for administrator of n-tier application

In every app, we are always getting requests that simply take data from a file and import them into the system or export from system to file/ftp etc. This is mostly used internally by the ...
CodingYoshi's user avatar
0 votes
1 answer
176 views

Does reference logic belong on DAL or BL?

I have a three tier architecture API to add and remove customers. Every customer has some employees that are responsible for that customer. Those employees are located in another collection of ...
David Mason's user avatar
3 votes
2 answers
3k views

Should the web client (web browser) be counted as a tier in n-tier architecture?

In a course, a test's solution says the following has a 4-tier architecture But it seems to have a 3-tier architecture to me. I don't count the client (web browser) as a tier itself, but the test's ...
Tim's user avatar
  • 5,475
1 vote
2 answers
753 views

What are the relations between the presentation/application/data logics, client and server, and MVC?

I appreciate if someone could clarify my confusions about the following quote from Distributed Systems, by Coulouris et al: Consider the functional decomposition of a given application, as ...
Tim's user avatar
  • 5,475
1 vote
1 answer
575 views

Breaking 3-tier architecture into multi-tier architecture

Recently I have been working on a rather large system with Vue.js for a single page app (SPA) and an API for the backend. The customer is concerned with the security, performance and maintainability. ...
Simple Fellow's user avatar
3 votes
1 answer
422 views

Is my Architecture correct?

I have a question about architecture in .NET. My architecture is like this : Projet : - DAL (Data Acces Layer) - BLL (Business Logic Layer) - DTO (Data Transfer Object) - IHM (man/machine ...
vincent benazet's user avatar
5 votes
1 answer
2k views

How can I resolve circular dependency within service layer in a n-tier architecture system?

I am currently starting a new project with a 4-tier architecture design. The layers is set as follow. +------------------+ +---------...
mannok's user avatar
  • 189
3 votes
1 answer
2k views

How should I design a 3-tier-architecture application with Entity Framework?

This is almost getting me crazy. EF bring us a very convenience experience in development. However, if we need to use the Entity model in the upper layer, we always put a reference from the upper ...
mannok's user avatar
  • 189
2 votes
0 answers
618 views

N-Tier/Layered Architecture with MVC

Do N-Tier/Layered architecture really helpful with MVC? I have some projects here that use N-Tier architecture with MVC. The available layers are Entity Layer Data Layer Business Layer Presentation ...
Hary's user avatar
  • 129
0 votes
1 answer
591 views

In an n-layer architecture with MVP in the presentation layer, how the presentation layer interacts with the business layer?

I am pretty new to software architecture, and I am trying to understand the basic concepts of n-layer architecture and MVP (specifically Passive View). My current understanding of n-layer ...
Michael Haddad's user avatar
10 votes
2 answers
8k views

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 ...
M. Arslan's user avatar
  • 109
2 votes
1 answer
2k views

Where to convert int to enum in a 3-tier architecture?

I have a situation where a DB field is storing an enumeration value whose underlying type is int, so I'm getting back values like 0, 1, and 2, which should represent MyEnum.Foo, MyEnum.Bar, and MyEnum....
Jez's user avatar
  • 1,318
2 votes
1 answer
1k views

Is my three layer architecture well implemented?

I'm working with visual studio. The solution contains the 4 following projetcs : DAL Works with Entity framework + Repository pattern. It contains the DB classes + Repositorys. BLL It contains ...
flofreelance's user avatar
2 votes
2 answers
4k views

ASP.NET Web API and MVC Architecture for Web Application

We have a single solution Visual Studio web application with multiple projects. One of the projects (Services project) has APIs for our App clients (Android/iOS). There's separate project for MVC ...
maverick's user avatar
  • 341
0 votes
1 answer
511 views

Architecture to share logic across MPA and SPA applications

What in your opinion is good practice to handle the case where I want to have re-usable and shared logic that collects and returns my data from the database? For example I have Multi Page ...
Konrad's user avatar
  • 1,559
0 votes
2 answers
3k views

Is it proper to inject the configuration to the business logic layer?

I have an ASP.NET Core 1.1 application which uses dependency injection and is splitted in 3 layers (web, business logic and data access). I'd like to access to some values of the configuration file ...
Dario's user avatar
  • 1,065
1 vote
1 answer
158 views

Client Server Model for N-Tier Architecture - Mapping chained client>>server>>server>>client request / response

I am trying to search for a framework or library or even techniques for handling N-Tier Client/Server communications. I am scaling my application software and I am seeing this communication becoming ...
Mark's user avatar
  • 191
5 votes
1 answer
281 views

Model "Clones" Adding Complexity to N-Tier MVC Project?

I was discussing a project structure of mine with a friend and he pointed out an interesting point about how my architecture seems to introduce complexity and over abstraction into my layers by having ...
G.T.D.'s user avatar
  • 508
2 votes
2 answers
2k views

Object To Be Used By Service Layer

My project has a UI layer, a Service Layer and a Repository layer. The latter has Entity objects as part of the ORM (.net Entity Framework). The service later returns a Dto to the UI layer. My ...
John Steed's user avatar
5 votes
0 answers
2k views

Understanding the data flow in Spring REST layered architecture

I am new to Spring as well as layered architecture. So am a bit confused as how data flows among the different layers. What so far I have understood is: Layers: Controller (which accepts requests) ...
Jignesh M. Khatri's user avatar
0 votes
2 answers
555 views

Where to put code for XML Deserialization: Business Logic Layer or Data Access Layer?

I have a web application (ASP.NET Core / C#) with 3 layers (web/presentation, business logic and data access). I'm using Entity Framework to retrieve a record from an SQL Server database which is ...
Dario's user avatar
  • 1,065
3 votes
2 answers
232 views

Should DAL check for existence of object before creating or updating

I am working with an N-tier application, and I'm updating the Data Access Layer (DAL) to use a new ORM. As I'm updating the DAL I'm finding some issues with how we save objects to the database. One ...
Ben Anderson's user avatar
7 votes
2 answers
250 views

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 ...
Mark's user avatar
  • 191
5 votes
1 answer
521 views

Should I retrieve related entities from the parent entity or the service layer?

Let's say I have a three tier application structure, with Presentation, Service and Data layers. The data layer is managed by an ORM and has two models/entities, Show and Episode, with a one-to-many ...
Magnus's user avatar
  • 415
4 votes
1 answer
116 views

Does formatting belong in the view or in the services layer?

Should you format numbers in the view or in the services layer? If you are going to round a number to 2 decimal places. Does it make sense if that number is rounded in the view or in the services ...
ryandawkins's user avatar
2 votes
4 answers
165 views

Why is code that wraps a call to a database or DAL not referred to as a client?

Both classes below implement the same interface and are in fact intended to be interchangeable one for the other. Why is the second one not referred to as a "client" in the literature? There are ...
Sam's user avatar
  • 159
0 votes
0 answers
650 views

How do I design a Service Layer in code?

I am currently rewriting one of my projects in Java and want to implement a service layer that will be used by different clients (CLI/GUI/Web) to communicate with my core application. For now it will ...
Luca Fülbier's user avatar
14 votes
2 answers
13k views

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 ...
BornToCode's user avatar
  • 1,273
5 votes
2 answers
513 views

Save Two Different Domain Objects in One Service Call

Think that when one Branch saved, a Customer entity must created in n tier layered system architecture. All validation has already implemented in CustomerService. Should BranchService create ...
hkutluay's user avatar
  • 153
2 votes
1 answer
746 views

ASP.NET MVC Middle tier object naming

As a corporate developer who works alone I find myself creating and writing a lot of websites that consist of screens that are basically wrappers for a DB table. So for instance on a screen that ...
Lobsterpants's user avatar
15 votes
6 answers
1k views

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 ...
Igneous01's user avatar
  • 2,333
6 votes
4 answers
2k views

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) ...
Bo Mortensen's user avatar
24 votes
2 answers
27k views

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, ...
Stephen Byrne's user avatar
4 votes
1 answer
2k views

Decoupled architecture in Android

I am building an app for Android that will have multiple data sources depending on who is using it. N-tier architecture with a repository pattern seems like the right way to go about this but I am ...
LukeP's user avatar
  • 141
0 votes
0 answers
579 views

Passing Data Between Tiers in 3-Tier Architecture

Assuming we are talking physical tiers, my understanding is that in order to pass data from say the data tier to the business logic tier the JSON format is used (or XML), so say I have an ORM (...
FinalFind's user avatar
2 votes
1 answer
1k views

How, in Three Tier Architecture is Database Access Achieved

So I am attempting to make an application based on the architecture proposed by this image; (source: ibm.com) [1] However, I am getting very confused with how data access is achieved between the data ...
FinalFind's user avatar
2 votes
4 answers
4k views

3 tier architecture in .NET web applications

Nowadays most systems are designed as web apps. In the .NET world the famous three tier architecture is usually translated like this. Front End (Web Application) Middle Tier (custom DLLs using an ...
Simple Fellow's user avatar
2 votes
1 answer
106 views

Which tier in a webapp should create history records?

I have a 3-tiered web application with a web view layer, a business logic layer, and a database persistence layer. I am adding a feature that populates a history table with records if and only if the ...
David's user avatar
  • 23
0 votes
2 answers
2k views

What are the advantages of a 3 stage environment for SAP/BI development?

I have recently joined a team in which the developers were able to work completely in live production to produce business intelligence products for customers. Recently, management, at the advice of ...
Venture2099's user avatar
5 votes
2 answers
2k views

Simple and Composite transactional services: Question about separation of concerns and transactions

I believe I know the answer to this but I'm looking for any holes or anything I may be missing. This is focused on Spring and Java but could really apply to any programming stack. Anyway, we have a ...
cbmeeks's user avatar
  • 411
3 votes
4 answers
1k views

N-Layer architecture

I am attempting to structure my solution projects in such a manner as to improve testing, reuseability, separation of concerns and all that good stuff. Whilst I understand these concepts in theory, I ...
Peppermintology's user avatar
0 votes
1 answer
637 views

Stored procedure in asp.net webforms [duplicate]

Previously while working on database in asp.net I was using stored procedure with no tier architecture. So I was including connection string, crud query etc in every button click event. Then I was ...
Chelsea 's user avatar
0 votes
1 answer
88 views

Migrating single-layer ORM based app to multi-layer API

I'm trying to understand what is the best way of migrating a website that works in a single layer and gets all the data via an ORM, to one that uses multiple layers, using an API backend to get the ...
Danack's user avatar
  • 345