application-architecture

Managing codebase for related apps developed sequentially

I've been working on a series of applications with related functionality with each app being delivered for a different customer. The apps have significant amounts of functionality in common but there are some features unique to each customers requirements which cannot be provided to any of the others. Because all the versions belongin...

Presentational js vs. functional js: Separate them? General architecture?

Hello! This is a general kind of question. Very often, I need to write JavaScript for web pages. Keeping in mind best practices, unobtrusive js, etc. I have my JavaScript in separate *.js files. Every page gets its own js file. What's been somewhat bothering me lately, is the mix of presentational code with functional code that I ...

Preferred books or study to know internal working of .net

Hello experts, I want to know the internal working of .net when we doing any thing at application level. Like if in my project I will create an object of class then what happened in the behind of the scene in .net internal level or when I inherit a base class to a child class then how my child class get all method of base class what exa...

Ninject with Windows Application

I want to use Ninject in my Windows application and I want to know if there is best practices that I can do; strategies to find a balance between performance and maintenance. The problem with Windows application and Web application is that in Web application, there is a scope easy to define that is the context but with Windows applicati...

Need help with design of a Rails 2 app having two partitions

I have models A,B,C,D, etc. I have my usual controllers/views/helpers for each of these models. These are accessed by a set of content authors in a form based application to populate data into the db. The content authors will also have categories like authors, publishers, super admins etc. Essentially we have built out a mini content man...

How to stress test a web portal using Selenium and any other open source -Cloud Test?

There is a website portal ,say W1 .Let's say the no. of users accessing are 3000.Can you please give me the detailed framework/design of how this portal can be stress tested remotely in a cloud setup using Selenium RC and/or any other open source.I am not getting any solution. Please help. ...

How should a database-centric Java Swing application be designed?

I have been writing a database-centric Java Swing application for a while. The GUI and DAO-code ends up in a big tree like: JFrame | JTabbedPane | +--------------------+----------------------+-------------+ | | | | JPanel1 JPanel2 JPanel3 ...

Android: Best practice for keeping data in Memory and Database at same time.

We're designing an Android app that has a lot of data ("customers", "products", "orders"...), and we don't want to query sqlite every time we need some record. We wanna avoid to query database as most as we can, so we decided to keep certain data allways in memory. Our initial idea is to create 2 simple classes: "MemoryRecord": a clas...

Thoughts about navigation architecture?

I'm writing an application. I want various parts of it to be accessible via a single string (e.g. a URL). I see lots of different ways to implement this and wonder if anyone else is thinking about it. For example, let's assume a web app that supports several different message boards. A URL to access the third comment in board A might...

Join to a Table using two non-FK columns with Fluent NHibernate

I'm using Fluent NHibernate and I have two tables: BusinessPlan [Id, Year, CustomerCode] PreviousYearData [Id, Year, CustomerCode, MoreFieldsForData] In my domain, I want to join PreviousYearData to the BusinessPlan to make entities something like this: public class BusinessPlan { public Guid Id { get; set; } public int Ye...

What's the difference between a Controller and a Service?

I'm looking for how to structure the layer of my app between the presentation layer and the model / business object layer. I see examples using Controller classes and others using Service classes. Are these the same things with different names for different methodologies, or is there a more fundamental difference? Edit: To put the que...

End to end example of CQRS implementation on top of AppEngine

All of the infrastructure components required to implement a CQRS based application seem to be out of the box within AppEngine. Unfortunately, I can't find anything related to this subject. Few possible reasons It's a well kept secret beyond "Architecture Astronauts" It's a worthless overkill architecture because AppEngine scales ou...

good practise: REST API as the interface between the interface layer and business layer?

I was thinking about the architecture of a web application that I am planning on building and I found myself thinking a lot about a core part of the application. Since I will want to create, for example, an android application to access it, I was already thinking about having an API. Given the fact that I will want to have an external A...

application completely SOA?

Is it wise to build a large application entirely based off SOA? Or just some portions? User account logins, accounting, gis mapping, sales, etc? In other words, would it be wise to build a GUI to such an application in HTML & Javascript which does all it's exchanges via ajax to .NET web services on the back-end? I can't see it worth ...

What is the name of this pattern or technique?

There are objects which need two other objects as parameters. This parameter objects may change during runtime. I use another object which holds the references to the parameter objects. These references are always up to date. All the other objects ask this objects for the current parameters. They don't have to be updated anymore. Onl...

Which layer should scheduled task be put?

I'm trying to implement DDD application with layered architecture. I have: Infrastructure layer - a layer which implements technology specific parts of the application. Domain layer - a layer which contains domain model. Application layer - a layer which contains interferences to interact with domain model. And interfaces layer - a lay...

Entity Framework: To be or not to be?..

Hello everyone! I know I'm asking a question that probably has no definite answer, but please, I would like any and all opinions you might have. I used to be a big fan of LINQ2SQL because of it's ease of use. I used to hate creating stored procedures and would use Linq2Sql's lambda expressions instead. But main drawback i saw with L2S w...

Modeling NHibernate queries

Usually I'd put my criterias/hql queries in a repository/dal class related to the entity, but lately I'be been thinking of adding another abstraction that represents what a query is, this would give me the possibility of adding common behavior to all queries (e.g. pagination) in a base class, etc. so these are my components now; generi...

Top Level Requirements for scalable web solutions for Windows/.NET

I have been building applications / web apps for some time, and I guess most of what I have built has been based upon simple principles, i.e. try to keep things loosely coupled, use industry standard techniques and so on. I try to follow as many tech blogs I can about architectures, and how sites can scale (Facebook and the like). Righ...