n-tier-architecture

How to pass Current User Information to all Layers in DDD

随声附和 提交于 2019-11-27 03:54:10
Similar questions have been asked before but not quite the same (unless I missed it) I want to pass IUserInfo class instance through my Service, Domain , Domain Events, Domain Event Handlers... Whats is the best way to do it. Should I Inject it using IoC by registering it against instance of Httpcontext.Current.session["CurrentUser"]; Add the data to Current Thread. Any other way I am stuck at Domain Event Handlers where I want to use the data for auditing as well as sending emails. I want to be able to use the CurrentUser information from almost anywhere in my application. With threading as

MVC Vs n-tier architecture [closed]

ε祈祈猫儿з 提交于 2019-11-26 18:10:28
I was wondering what exactly is the difference between MVC(which is an architectural pattern) and an n-tier architecture for an application. I searched for it but couldn't find a simple explanation. May be I am a bit naive on MVC concepts, so if anyone can explain the difference then it would be great. cheers N-tier architecture usually has each layer separated by the network. I.E. the presentation layer is on some web servers, then that talks to backend app servers over the network for business logic, then that talks to a database server, again over the network, and maybe the app server also

Business Layer in 3 tier Architecture

瘦欲@ 提交于 2019-11-26 18:08:33
问题 I went for an interview, and was asked to show up my Business layer architecture. I have some idea about 3 tier architecture but really no idea, to what to write in front of interviewer. So suppose my project deals with Employees of an organization, then what would i have written there. Will it be any kind of diagrams i should have made or some coding part. I worked in C# framework 3.5. I really don't understand what else to mention in this question, so please let me know if something is

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

帅比萌擦擦* 提交于 2019-11-26 15:59:50
问题 What is difference of developing a website in MVC and 3-Tier or N-tier architecture? Which one is better? What are pros and cons? 回答1: 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 are

What is N-Tier architecture?

巧了我就是萌 提交于 2019-11-26 15:36:31
I've seen quite a few developer job postings recently that include a sentence that reads more or less like this: "Must have experience with N-Tier architecture", or "Must be able to develop N-Tier apps". This leads me to ask, what is N-Tier architecture? How does one gain experience with it? Eugene Yokota 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

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

為{幸葍}努か 提交于 2019-11-26 12:56:31
问题 I have a repository layer that is responsible for my data-access, which is called by a service layer. The service layer returns DTOs which are serialized and sent over the wire. More often than not, services do little more than access a repository and return whatever the repository returns. But for that to work, the repository has to return an instance of that DTO. Otherwise, you would first have to map the data layer object that the repository returns to a DTO in the service layer and return

What is N-Tier architecture?

允我心安 提交于 2019-11-26 05:59:09
问题 I\'ve seen quite a few developer job postings recently that include a sentence that reads more or less like this: \"Must have experience with N-Tier architecture\", or \"Must be able to develop N-Tier apps\". This leads me to ask, what is N-Tier architecture? How does one gain experience with it? 回答1: 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