Take a class which has relations with a couple of other classes. The first class can be seen as the aggregate(root). Seen from the point of the service layer how would one best split the calls?
Call the repository of the aggregate for the entire object graph and call from that particular repository other repositories to handle the savi...
Hello,
I work for an organization that is pretty much a start-up within a large corporation. The team has several database engineers, and a few software engineers (in the data mining field). We're growing at a fast rate, which puts the need to have an overall architecture strategy or technology roadmap (or compass) for the next few year...
Hello everyone,
During my experience as a software developer I got used to a practice of creating Entity classes (or DTOs) and Manager classes. For example I'd create Customer with it's property getters and setters and then CustomerManager with all the methods related to Customer class (for example GetCustomer, GetOrders etc...). Don't ...
Considering architecture....
I normally have a shopping cart class with addItem and removeItem methods (amongst a couple of others). However in the spirit of real world shananigans carts should be acted on by customers - therefore should the addtoCart / removefromCart not be a method of the customer?
OR should I have an itermediate Cu...
I've seen this question posted here previously but I'm not satisfied that I understand the complete ramifications. The problem is what return type should a data layer that uses linq-to-sql return for maximum flexibility and query ability. This is what I've read/found:
IEnumerable is limited and only allows for read forward operation. I...
Hello.
I am developing an piece of software where I have a few entities such as:
public class Workspace
{
public int ID { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public virtual List<Playground> Playground { get; set; }
public virtual List<Workspa...
I'll start with these - IMO brilliant - articles:
Base: An Acid Alternative - by Dan Pritchett (eBay), 2008
Eventually Consistent (- Revisited) - by Werner Vogels (Amazon), 2008
Brewer's conjecture and the feasibility of consistent, available, partition-tolerant web services (non-free) - by Seth Gilbert, Nancy Lnych (MIT), 2002
I'm i...
Hello,
We (a group of 4 students) are planning to create a web-app on Ruby on Rails. I have done some web app projects in the past and one thing I have learned is the initial time devoted to design the app, which was very less, I just start coding with some basic things in my mind.
So, this time, I don't want to do the same mistake and...
I’ve been tasked with a implementing a system for continuously receiving large amounts of data from a partner. The data schema on the partners’ side is different from ours, so some transformation has to take place when the data is received and imported into our database.
What’s the best approach to solve this task?
I have some control ...
I was wondering if there was a gem for managing and archiving mails on a mailing list. Somewhat like railsarchive but with some additional features like categories likes and trending etc.
If not, can somebody help me with the basic architecture?
TIA
...
SEDA: An Architecture for Highly Concurrent Server Applications
"SEDA is an acronym for staged event-driven architecture, and decomposes a complex, event-driven application into a set of stages connected by queues."
I understand that it's an architecture and that there are many implementations of SEDA (see the Wikipedia article). What ...
For a government contract we will be proposing to build a traffic monitoring architecture. We will have the following components:
Video camera's set up around the area of interest. The cameras will be aware of their location and orientation and viewing parameters.
A GIS map server which can be queried for streets, building, etc.
An al...
Hello,
I need to develop an application with following features and want to
understand if GWT can be used to develop this application or is it the
right technology to use ?
1) Backend is in Java and uses MySQL
2) Desktop based UI to create some datafiles and data will be stored
in MySQL DB. This app will generate the data.
3) A desktop...
most of the time in the service code I would have something like this:
public SomeService : ISomeService
{
ISomeRepository someRepository;
public Do(int id)
{
someRepository.Do(id);
}
}
so it's kinda redundant
so I started to use the repositories directly in the controller
is this ok ? is there some architect...
Background
I have a web app that will create an image from user input.
The image creation could take up to a couple seconds.
Problem
If I let the server thread, that is handling the request/response also generate the image, that is going to tie up a thread for a couple seconds, and possibly bog down my server, affect performance, kill...
I have to deal with a lot of multithreaded programming at work. Specifically, I want to know how the ARM memory model differs from IA64. Both are very weak models, but are there any specific differences that I should know about? I'm familiar with ia64, not with arm.
...
Hi Guys,
I'm doing some R&D work, and as such am exploring design patterns. I have recently been reading up on the Specification pattern and was referred to this great article.
I was intrigued by the simplicity and cleanliness of the code, but i started to draw some comparisons to implementing the same cleanliness using other techniq...
I have some doubts regarding the following controller action (in ASP.NET MVC, but it's a more generic question ) :
public ActionResult DoSomething( int id, IUser currentUser )
{
var myDomainObject = businessService.GetDomainObjectById( id );
if( !securityService.CurrentUserCanAcess( currentUser, myDomainObject ) )
{
...
When traversing layers it is very tedious to perform right->left assignments as a way to populate the models. For example:
employeeViewModel.FirstName = employeeModel.FirstName;
employeeViewModel.LastName = employeeModel.LastName;
...
So, we can build a ModelCopier which uses reflection to copy models:
var employeeViewModel = ModelC...
Hi folks,
I'm making a simplistic trivial pursuit game. I'm not sure if (and then how) I can do the following with EF4 :-
I have a table structure as follows.
Table: TrivialPursuitQuestion
=> ID
=> Unique Question
=> AnswerId
=> AnswerType (ie. Geography, Entertainment, etc).
Table: GeographyAnswer
=> ID
=> Place Name
=> LatLong
...