What is difference of developing a website in MVC and 3-Tier or N-tier architecture?

They’re pretty much the same, however in 3-Tier, the top level (presentation) never directly communicates with the bottom layer (data persistence). In model-view-controller, theoretically the Model is supposed to ‘notify’ the View that it has changed so that the View can update. However, this is usually not an issue in most web applications because they … Read more

Should the repository layer return data-transfer-objects (DTO)?

Short answer: No. Long answer: repository is responsible for turning persisted data back to entities (models) and vice versa. Model is a business Model representing a business entity. DTO on the other hand – while looks like Model – is concerned with transfer of the object between various environment and in essence is a transient … Read more

What is N-Tier architecture?

Wikipedia: In software engineering, multi-tier architecture (often referred to as n-tier architecture) is a client-server architecture in which, the presentation, the application processing and the data management are logically separate processes. For example, an application that uses middleware to service data requests between a user and a database employs multi-tier architecture. The most widespread use … Read more