architecture

WCF Repository Service pattern with entity framework

I need presentation layer in silverlight, asp.net etc , so everything is through wcf services. I have number of doubts in my implementation of repository layer, service layer, wcf services things i currently do I have repository , its not per table its created per aggregate root I have service layer its for doing a group of actions in...

is it good design to have a separate config file for a dll?

Is it good design to have a separate config file for you dll? I noticed when the dll is invoked from the application, it doesn't read it. what the dll is able to read is the machine.config file. ...

Membership organisations for Software Architects?

Is anyone a member of the International Association for Software Architects (IASA)? I was thinking about joining but after doing a bit of research I've been left disapointed. When searching on Google, there are next-to-no articles on the association, the IASA Wikipedia page is about to be deleted, and the member benefits seem very spar...

Sharing a single resource (serial port) between multiple applications

I need some architectural guidance. Here's my objective. I have a piece of robotic hardware that performs multiple functions (i.e. it has several distinct logical devices). For the sake of illustration, let's say it is a robot arm with interchangeable attachments. The hardware has a single serial port that it uses to connect to a PC, so...

Android application architecture - what is the suggested model?

In the same way a web or desktop app might have 3 or n tiers - UI, Business, Data for example - what is the suggested structure for an Android application? How do you group classes together, what layers do you have etc? I'm just starting Androi dev (an internet based app that must respond to incoming notifications) and have no real fee...

Animation architecture pattern

I'm writing a game project as a hobby, and am looking for some architecural advice about how best to organize my game objects and their various animations. For example, I have a class called Wizard, and a class called Dragon. A Wizard has, at least, 10 different specific animations associated with it, depending on its state, and the sa...

LP64, LLP64 and the IL32 transition

During the transition from 16 to 32 bit in the 80s, int was either 16 or 32 bit. Using the current 64 bit transition nomenclature, I understand there was a pretty even spread of ILP32 and LP32 machines. At the time I believe it was understood that int would always follow the register or pointer width for any given architecture and that l...

What's the best way to architect the relationship between train and track objects?

I'm working on a project for visually tracking trains. I've refactored the object relationship between the trains, the tracks, and the respective drawing classes for each several times, and I'm not happy with any of them. Maybe you guys can help me out here. Here are the interfaces to the objects I've got now. Tracks: addControlPoi...

use common template for all pages of website

ok, the title did not make much sense but this is what i am planning to do. I have designed a template for my website, with head body and div for specific stuff and everything. The website consists of header file, footer file, right-side column, header dropdown menu and a main body which would be present beneath the header dropdown menu...

HTTP method to represent "fire and forget" actions in RESTful service

Thinking about REST, it's relatively easy to map HTTP methods to CRUD actions: POST for create, GET for read, etc. But what about "fire and forget" actions? What HTTP method would best represent a fire and forget action such as triggering a batch job (in which no response is sent back to the caller)? POST would spring to mind, but I th...

When to build a separate reporting database?

We're building an application that has a database (yeah, pretty exciting huh :). The database is mainly transactional (to support the app) and also does a bit of "reporting" as part of the app - but nothing too strenuous. Above and beyond that we have some reporting requirements - but they're pretty vague and high-level at the moment. ...

Concurrent periodic task running

I'm trying to find the best solution for periodic task running in parallel. Requirements: Java (Spring w/o Hibernate). Tasks are being managed by front-end application and stored in MySQL DB (fields: id, frequency (in seconds), <other attributes/settings about task scenario>). -- Something like crontab, only with frequency (seconds) fi...

Threading Architecture Question C++ Message Passing

Simple question, I think. I have one thread that responds to a callback that is called when a user connects via TCP. That callback wants an answer if I accept or reject the login. Problem is I have to send a login request to a security server via asynchronous message passing and wait for a response. What is the best way to handle t...

What are the major components of an affiliate marketing system?

I am thinking of "rolling my own" Affiliate marketing system - using either PHP (or more preferably, Python). I am relatively new to Affiliate marketing, so before I get started though I wanted to make sure that I had covered all bases, and was also not reinventing the wheel (in terms of there being a good open source [Python based] syst...

Assembly creation guidelines

Is there any rule of the thumb as to the number of static functions you can have in an assembly? How do you recognize if a function needs to be static v/s a function that doesn't need to be static? ...

looking for input/discussion on implementing a basic distributed client/server crawler architecture

Hi. I'm working on a project, creating a distributed client/server webcrawler. I've looked into heretrix/grub/boinc/etc... I'm looking to find a couple of people who are relatively skilled in this area that I can talk to, discuss some issues with. If you know of a good architecture that discusses both the client/server side issues, o...

Handling Error Messages

Recently I had to standarize communication between the client and the server in a rich web application composed mostly of widgets. Responses to the client are in a json format. When it was time to decide about handling error messages two ideas popped up. Send the errors message part of the response such as {"success":"false","errors":...

How can I communicate between PHP and a Java program?

I'm working on a web application that frequently requires a calculation intense query to be run, the results of which are stored in a separate table. Using MySQL, this query takes about 500ms (as optimized as possible, believe me). To eliminate this bottleneck, I've created a Java program that loads the relevant DB data into memory and...

How can I share common components between Java web applications?

Environment IDE: Netbeans 6.9 App Server: Glassfish 3 Frameworks: Spring, Hibernate, Struts 2 Problem I have 2 web applications. I want to share resources between them both - i.e. authentication form jsp and other assets (js - yui,jquery/images/css). I will be adding more web applications that will also require access to these commo...

Design pattern for a simple CRUD data driven application

Hi, I would like to know the best practice for a designing a simple CRUD application with some screens updating various tables (like admin pages to maintain static data for an application). the simplest way would be to drag a data grid/gridview, bind it to a dataset and use a data adapter for CRUD operations. but if this application need...