architecture

multi threaded file processing with .NET

There is a folder that contains 1000 of small text files. I aim to parse and process all of them while more files are being populated in to the folder. My intention is to multithread this operation as the single threaded prototype took 6 minutes to process 1000 files. I like to have reader and writer thread(s) as following : while t...

service repository.

hundreds of our clients around the country have a vb6/MS Access app. The boss needs them to talk to each other, eg client A creates a new task in client B's database, and status updates go back to A. I'm trying to design a WCF system that can accomplish this using a centralized service talking to a service of some kind installed on each...

Files mapping architecture

I need to know How I can achieve this goal by classes : we have two different applications in the company (App1 , App2) Appl can export xml with know items ( ID , Name) we need app2 to import this data but App2 display different items (CarID, CarName) and this items defined like this with the mapping info <CarID> <Mapping name="...

SQL Server Job with precise timing

Hi, I have a DB with game data (map, players, etc...) and I have a game core mechanics written in T-SQL stored procedure. I need process game loop (via the stored procedure) every "X" seconds. I tried used the SQL Job, but when I set the interval to seconds, the SQL server stops responding. If I set the interval greater than one minut...

How should I handle expected errors? eg. "username already exists"

I am struggling to understand how I should design the error handling parts of my code. I recently asked a similar question about how I should go about returning server error codes to the user, eg. 404 errors. I learnt that I should handle the error from within the current part of the application; seem's simple enough. However, what shou...

Visual Studio 2010 UML Tools. How do they integrate with the code? For small/mid size products is there any value in using them ?

I just got a book that goes over all the VS2010 tools. Most I have never used like load testing/web testing, UML Tools, Layer Diagrams.... Has anyone had any real world experience with using these VS2010 tools like the UML diagramming? I am wondering if it is something that would really be useful starting a new project or is it just bu...

What are the advantages and disadvantages of plug-in based architecture?

I want to do the architectural design for a software that can be used integrate various third party software’s (executable) under one platform. Standard project types will be added to the platform by default. The project type defines the way in which the different software will be executed and their input and output files. The user ca...

Architectural advice on connecting multiple diverse sites into a single community.

Hi SO, I've been given a task to connect multiple sites of the same client into a single network. So i would like to hear an architectural advice on connecting these sites into a single community. These sites include: 1. Invision Power Board Forum (the most important site) 2. 3 custom made cms-s (changes to code allowable) 3. 1 drupal s...

Business Object desgin

I have a question about how I setup my BO's. I setup the BO's to contain all of my properties of the object as well as the business logic to satisfy the business rules. I decided to make all of the methods static, but I'm not sure if that was the right decision. Someone told me to split my BO's into an Entity Object of just properties...

Objective-C Plugin Architecture Security (Mac, not iPhone)

I'm possibly writing a plugin system for a Cocoa application (Mac, not iPhone). A common approach is the make each plugin a bundle, then inject the bundle into the main application. I'm concerned with the security implications of doing this, as the bundle will have complete access to the Objective-C runtime. I am especially concerned w...

MVC, Service Layer and file upload/storage

Hello, I'm a using a layered architecture with Zend Framework. I have MVC with : Controllers > (DTOs) Services (Service Layer) > (DOs) Repositories > Persistance Now i have to handle image galleries. The upload process is handle by the front, but what part is responsible for the thumbs generation ? Do i have to store pictures to a ...

What software design pattern is best for the following scenario (C#)

I have a gps device that records data e.g. datetime, latitude, longitude I have an sdk that reads the data from the device. The way the data is read: A command packet (basically a combination of int values in a struct) is sent to the device. The device responds with the data in fixed size chunks e.g. 64bytes Depending on the command i...

Passing data from the cherrypy server-side to javascript client-side

Big picture question. I've got a cherrypy server running with all the shopping cart methods for my e-commerce site written in python. I'm working with jquery on the front end. POSTing to my python methods is easy in javascript, but not passing data the other way. I can send it back with JSON, but not always conveniently. It seems like ...

Help for Platform plus Plugin development by J2ee

Hi, everybody. I want to develop a monitor platform which can monitor many different subjects such as database, OS, middle ware etc. The system includes two parts: 1. Report center(Show some useful chart and report) 2. Collector(Collect information from monitored subject) For the time being, I just want to monitor some parameters of ...

REST application, Transactions, Cache drop

Hi, I am building REST API in php with memcache layer on top for caching all resources. After some reading/experience it turns out it's best when documents are as simple as posible...mainly due to dropping cache sequences. So if there is 'building','room' entities for the 'room' document I would only place the id of the 'building' and...

How to align software with business processes?

In my experience, software that is well aligned with business processes are easier to change when the business processes change. What type of architecture is best suited for this approach? ...

net application/web server separation

Hi, In the Java world, I often see separation between web server and application server. The idea is to scale out your "relatively" cheap web server easily and beef up your application server when needed. However, I don't see this setup in the .NET/windows 2008 world all the much, why is that? One argument against this architecture i...

Finder conceals network connections from lsof?

If I use the Finder's Go->Connect to Server and connect to an smb/afs, I can see the connection in netstat. But I can't see it in lsof. I also use LittleSnitch, and it fails to detect outbound connections from the Finder. Why is this? Is there some sort of "Apple rootkit" that i'm not aware of? ...

Booking logic and architecture, database sync: Hotels, tennis courts reservation system ...

Hello Stackers, Imagine that you want to design a tennis booking system. You have 5 tennis clubs as partners with no online api allowing you to check on their side if a court is booked or not: You have to build this part as well. Every time a booking is done on their side you want it to be known by our system. Probably using a POST req...

How to test your code on a machine with big-endian architecture?

Both ideone.com and codepad.org have Little-Endian architechtures. I want to test my code on some machine with Big-Endian architechture (for example - Solaris - which I don't have). Is there some easy way that you know about? ...