n-tier-architecture

N-tier architecture design seperation of concerns

I realize there have already been a number of posts on n-tier design and this could possibly be me over thinking things and going round in circles, but I have myself all confused now and would like to get some clarity from the community please. I am trying to separate a project I created, (and didn't design architecturally very well to ...

passing data in an ntier application

How do you pass data to layers in an n-tier application? I have mapped out 3 different methods. A) generic .net objects generic data tables, Hashtables, generic datasets, strings, ints etc... then using the datasets to fill your business objects which get sent to the UI layer. http://dabbleboard.com/draw?b=eiu165&i=26&c=54...

How do I separate my entities from database model?

I need some help to organize my data model well. I am writing an app which will be a simple notebook. I use a three-tier architecture = business-logic, data-logic, database access. I`d like to use system of tags so it will be easier to search info in the app. Here are few questions - due to separation of concerns, classes of entities ...

n-tier architecture: best place to store business objects?

Say I have a 3-tier architecture (UI, Business, and Data). Usually, I create a 4th project called "Model" or "Common" to keep my data access objects and each of the other projects would then use this project. Now I'm working on a project where some of my data access objects have methods like Save() etc that need access to the Data pr...

Does three-tier architecture ever work?

We are building three-tier architectures for over a decade now. Dividing presentation-, logic- and data-tier is supposed to allow us to exchange each layer individually, should the need ever arise, be it through changed requirements or new technologies. I have never seen it working in practice... Mostly because (at least) one of the...

Asynchronously Decoupled Three-Tier Architecture

Maybe I just expected "three-tier architecture" to deliver a little more than just a clean separation of responsibilities in the source code (see here)... My expectations to such a beast that can safely call its self "three-tier architecture" are a lot higher... so, here they are: If you were to build something like a "three tier arc...

Where to place Business Entities, Enums, Custom exceptions?

I'm trying to figure out how to share my entities between the data, business, and UI tiers. Is it best to create a separate project for these entities that will be referenced by all the tiers? What about Enums and custom exceptions? I have some enums used only by the UI project, and some that are used by the Business. Does this mean ...

Can anybody explain these words.Presentation Tier .Business Tier .Integration Tier in java EE with example?

Hi What are these in Java EE .Presentation Tier .Business Tier .Integration Tier I like to know what are these patterns with example ...

n-tiered architecture with Silverlight, WCF and nHibernate

Dear All! I try to set-up a clean and flexbible application-framework for data-centric applications with silverlight-only UI. I want to have a strict seperation of concerns, and want to be as flexible as possible (e.g. exchange the ORM later) while still reducing the amount of code. It took me weeks to figure out an appropriate archite...

Optimal architecture solution

I'm building an application which (currently) consists of one web application (ASP.NET MVC) and two console applications. The web application is just the user interface. The first console application is a service that is run in a specified interval, and scrapes several web pages. The second console application is responsible for sending...

Explain the different tiers of 2 tier & 3 tier architecture?

I am not able to understand which elements are called as first tier, second tier & third tier & where they reside. Can they reside on same machine or different machine. Which tier reside on which machine? How we can identify a particular application as a 2 tier application or 3 tier application. Please explain with example ...

How to leverage concurrency checking with EF 4.0 POCO Self Tracking Entities in a N-Tier scenario?

I'm using VS1010RC with the POCO self tracking T4 templates. In my WCF update service method I am using something similar to the following: using (var context = new MyContext()) { context.MyObjects.ApplyChanges(myObject); context.SaveChanges(); } This works fine until I set ConcurrencyMode=Fixed on the entity and then I get an ex...

How to model and handle presentation DTO's to abstract from complicated domain model?

Hi I am developing an application that needs to work with a complex domain model using Hibernate. This application uses Spring MVC and using the domain objects in the presentation layer is very messy so I think I should use DTO's that go to and from my service layer so that these match what I need in my views. Now lets assume I have a Ca...

Entity Framework 4 website architecture

Hi I've been given the task of creating an N-Teir website using the Entity Framework 4 and am coming up against some brick walls, more than likely in my knowledge. My plan so far was to have these layers Website (application layer), What I'm calling Name.Framework (BLL), Name.Data (DAL), Name.Entities (contains POCO classes and other s...

Is n-tier software design a subset of SOA?

Is n-tier software design a subset of SOA? ...

Of Models / Entities and N-tier applications

I've only discovered a month ago the folly of directly accessing entities / models from the data access layer of an n-tier app. After reading about ViewModels while studying ASP.NET MVC, I've come to understand that to make a truly extensible application the model that the UI layer interacts with must be different from the one that the D...

Implementing N-tier structure in .net

Hi friends, my requirement - suppose I have three classes namely Employee, Customer and Department. Employee contains attributes id, name, dept. Customer contains id and name. Department contains id and name. Now all three class have common functionality i.e. create, update and delete. I want to implement these functions using an interfa...

To Wrap or Not to Wrap: Wrapping Data Access in a Service Facade

For a while now, my team and I have been wrapping our data access layer in a web service facade (using WCF) and calling it from the business logic layer. Meanwhile, we could simply use the repository pattern where the business logic layer consumes the data access layer locally through an interface, and at any point in time, we can switc...

Entity and N-Tier architecture in C#

Hello, I have three tables as shown below Emp ---- empID int empName deptID empDetails ----------- empDetailsID int empID int empDocuments -------------- docID empID docName docType I am creating a entity class so that I can use n-tier architecture to do database transactions etc in C#. I started creating class for the same as sho...

Reasons not to use MVC architecture for web application

In the past I have primarily built all my web applications using an N-tier architecture, implementing the BLL and DAL layers. Recently, I have started doing some RoR development as well as looking into ASP.NET MVC. I understand the differences between the different architectures(as referenced by some other SO posts), but I can't really ...