architecture

ThreadPool vs dedicated Thread - when to prefer which

Is there any way (apart form actual perfomance measurements which can be pretty hard to make them realistic) or rule of thumb when I should stop using the ThreadPool and use a dedicated Thread instead? I suppose for long running work it is better to use a dedicated Thread because it doesn't peramently steal one from the ThreadPool. For s...

Domain services vs Application services

What is main difference between domain and application services? (I'm using NHibernate) Which layer would be better for business logic? What's best practice? -S# Architecture uses application services as "coordination layer" but don't bother to explain why it's not domain service where should be business logic. ...

Mercurial Repository structure for features, stable releases, etc.

I will be more specific with a question if I need to be, or make this into a community wiki if you all think that's where it fits, but my question is: My dev team has recently started using Mercurial (moved from subversion) and we love it so far. I'm wondering if there is a 'best practices' resource out there about repository architect...

Nhibernate Architecture - Generic Nhibernate Repository to serve many different types

Hey all.. I am looking to get some feedback on how I can improve my design. Specifically, I don't want to have to create a new repository object for each of my domain objects but I also do not want to rewrite the Session and Transaction logic over and over. To alleviate the need to write the code to obtain a new session and transation ...

Mobile Application technologies information

Hi All, I am new to mobile application technologies.... We are developing applications for iPhone/android/blackberry/windows mobile. I need any PPTs of any PDF books that explain our team about a General mobile application architecture, trends etc.. Do any one have any reference.. Please help me! Thanks in advance! ...

Why are system views duplicated to user databases?

Why has SQL Server to duplicate a hundred of system views from model database into each user-defined database instead of keeping them centralised (for example, as it keeps server objects) and using them in specific context of specific database when asked/needed? Aren't they (for example, definitions/script of a system view) common b...

How can I create factory? Client can set data for methods which are not in defined in interface?(Design Problem)

Hello, I am having little design problem: I have one factory which will create object of with one type or another type. But my client requirement is to give(feed) the data(via setter methods) from outside world to the concrete class of type-1 not for type-2. If I place these setter methods in interface, those need to be implemented for...

How to check if a database link is valid in Oracle?

Hi All,i have a main database with only setup data at the headquarter and several databases at different branches,i created a database link for each branch server. In some case i would like to query all the valid links (as some links could be invalid due to connection problems or anything else),so my question is How to check if the data...

Articles/Links on Asp.Net pipeline and internal request processing architecture

I am looking details on the internal working of asp.net architecture. The topics need to include the following: Asp.Net Thread/Application Pools HttpRuntime HttpApplication - When and how it is set up How HttpContext is set up How objects can passed along the pipeline using HttpContext.Current.Items Why does modification of static va...

What is the difference between an MVC Model object, a domain object and a DTO

Hello, What is the difference between a MVC Model object, a domain object and a DTO? My understanding is: MVC Model object: Models the data to be displayed by a corresponding view. As such may not map directly on to a domain object, i.e. may include data from one or more domain objects. Client side May contain business logic, e.g. ...

When to combine multiple apps to simplify their data integration?

Short version: We have multiple teams each developing multiple apps. They need to share some data. Should we combine these apps into one larger one to simplify data integration or should we keep them separate and utilize some data exchange/caching mechanism? Longer version: We have a number of teams each working on a set of applicati...

How do I structure the domain architecture of my web app? - practical advice

So I am creating a web app, that will give each registered user a unique 'workspace'. This workspace should be accessible by anybody they give permission to. I have the main domain for my marketing website, but I am trying to figure out how to manage the nitty-gritty domain management of the web app itself. Should I buy generic domains...

Where should image proxy reside in a MVC structure? (PHP)

Hello, I'm trying to get to grips with the MVC structure and trying to decide where my files should go. I have a php script which reads an image from a non-web accessible location and outputs it. Does it belong in the Controller or the View? Likewise, should a script that loads a smarty template (from the view) and sets values ...

Logical Model versus Domain Model

I am not a database guy. My understanding of data modelling is not extensive. From that limited understanding the logical data model is an abstraction of the physical data model, not containing anything specific to the specific storage product/medium. The logical data modelling does appear to involve business subject matter experts in th...

Looking for ideas on how to display data on Files and Changelists/Bugs associated with them.

Title says mainly the problem. On my spare time for our group at school, I've written something to parse our p4 submissions and the files associated with each changelist. I've then created a tree structure and each file has a list of all the changelists and ones that pertain to bugs associated with them. I'm looking for awesome ideas o...

Force a session to time out every 6h hours

A marketing guy came to me with a request to time out the session every 6 hours regardless of the user activity on the site. I understand that if the user leaves his computer for a certain period of time (Set right now to 30 minutes) the session should time out, but forcing a user to log in after a certain period of time just doesn't m...

Software architecture versus Enterprise architecture, when is each used?

Hello, What type of architecture discipline is used to specify all the software systems and ther interaction together for a whole organization (not company- or coporation-wide, but organization wide, of roughly 6 SW Engineers working on 4 software products). I'm trying to create a document (assuming the role of an architect) that speci...

examples of DCI architecture?

I've been trying to understand DCI architecture by reading lean software architecture. I feel like I need to see some more examples to crystalize my understanding of it, but I've only been able to find ones which are variations of the money transfer between accounts case that is worked through in the book. If there are any out there on...

Need an advise about application's architecture

Hello. I try to build an application's architecture these days and I will be glad to hear some advises. Here are some details about the application itself. It has a web UI where customers could register and pay (with credit card) for some sort of services. They have to provide some info because these services are based on it. For example...

Getting started with smart pointers in C++

I have a C++ application which makes extensively use of pointers to maintain quite complex data structures. The application performs mathematical simulations on huge data sets (which could take several GB of memory), and is compiled using Microsoft's Visual Studio 2010. I am now reworking an important part of the application. To reduc...