n-tier-architecture

Business Logic in Database versus Code? [closed]

筅森魡賤 提交于 2020-01-19 18:25:08
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . As a software engineer, I have a strong bias towards writing business logic in the application layer, while typically relying on the

Reasons not to use MVC architecture for web application

喜你入骨 提交于 2020-01-12 04:21:11
问题 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 think of any reasons why I wouldn't choose an MVC model going forward for a new project. Is there any reasons/times in your experience when an MVC architecture

WCF and n-tier architecture and serialization performance

南笙酒味 提交于 2020-01-05 03:32:29
问题 When working with 5-tier architecture (front-end => interface tier => business tier => database tier => database) using WCF service as the interface tier, having the client applications calling it's methods, should I use also WCF service for the business and database tiers? I ask because of all the serialization / deserialization that will be going on between the 3 services is probably going to consume a lot of CPU for the server, and have a performance impact on the application as a whole,

WCF and n-tier architecture and serialization performance

对着背影说爱祢 提交于 2020-01-05 03:31:28
问题 When working with 5-tier architecture (front-end => interface tier => business tier => database tier => database) using WCF service as the interface tier, having the client applications calling it's methods, should I use also WCF service for the business and database tiers? I ask because of all the serialization / deserialization that will be going on between the 3 services is probably going to consume a lot of CPU for the server, and have a performance impact on the application as a whole,

Can the domain model and repositories be in seperate dlls?

耗尽温柔 提交于 2020-01-01 12:07:18
问题 Can the domain model and the repositories be in separate dlls? In a 3 tier architecture I guess I would put the domain model in the business layer and the repositories in the data access layer. I get confused as it is my understanding that the domain model uses the repositories while the repositories should return objects from the domain model, which would cause a circular dependency. I must be misunderstanding one or more of the above concepts. Any clarification would be greatly appreciated

traversing object graph from n-tier client

[亡魂溺海] 提交于 2020-01-01 03:53:06
问题 I'm a student currently dabbling in a .Net n-tier app that uses Nhibernate+WCF+WPF. One of the things that is done quite terribly is object graph serialisation, In fact it isn't done at all, currently associations are ignored and we are using DTOs everywhere. As far as I can tell one method to proceed is to predefine which objects and collections should be loaded and serialised to go across the wire, thus being able to present some associations to the client, however this seems limited,

Data Layer Best Practices

限于喜欢 提交于 2019-12-31 13:52:06
问题 I am in the middle of a "discussion" with a colleague about the best way to implement the data layer in a new application. One viewpoint is that the data layer should be aware of business objects (our own classes that represent an entity), and be able to work with that object natively. The opposing viewpoint is that the data layer should be object-agnostic, and purely handle simple data types (strings, bools, dates, etc.) I can see that both approaches may be valid, but my own viewpoint is

Implement a Save method for my object

流过昼夜 提交于 2019-12-30 14:45:19
问题 I'm trying to improve my application's design, So instead of calling the DataAccess layer from the presentation layer. I'll try to implement a save method from my object in the BusinessObjects layer. but I'm not sure how to pass the object or it's properties through the layers. for example in my old design I just create an instance of my object in the presentation layer and assign it's properties then just call the DataAccess method for saving this info in the database and pass the object as

Change timeout for each WCF method or call

浪子不回头ぞ 提交于 2019-12-30 06:35:13
问题 I have a quite large "old" WCF Service with many different methods. The most of these methods are "normal" so they should answer in less than 10 seconds but there are several methods (8 or 9) that are long processes so they can take a long time to get a response. The receivetimeout and sendtimeout were set to 00:40:00 to ensure they had time enought to accomplish these processes. The problem is sometimes we have connection issues and the "normal" methods take a really long time to crash...

How to pass Current User Information to all Layers in DDD

限于喜欢 提交于 2019-12-28 01:55:15
问题 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