Questions tagged [architectural-patterns]

An architectural pattern is a general reusable solution related to the high level structure of software systems. For reusable solutions having a more specific scope (e.g. individual classes/components and their interactions), prefer the tag 'design-patterns'.

Filter by
Sorted by
Tagged with
3
votes
3answers
372 views

Optimal communication pattern to update subscribers

What is the optimal way to update the subscriber's local model on changes C on a central model M? ( M + C -> M_c) The update can be done by the following methods: Publish the updated model M_c to ...
3
votes
1answer
1k views

CQRS and cache invalidation (while load balancing)

I'm slowly trying to migrate our web application to use CQRS principals. In particular, I have separated "write" and "read" interfaces into commands and queries. I have implemented a "reader" ...
3
votes
1answer
306 views

Where should I implement Ports with Hexagonal Architecture?

I have been doing some research on the Hexagonal/Ports & Adapters architecture. For the most part, it makes a lot of sense. My initial understanding was that "Driver Ports" were to be implemented ...
3
votes
0answers
46 views

Correct event managment architecture in web application

My team and I are working on a large web application, and I've noticed that we're working in a way which I believe is an incorrect usage of flux (probably from lack of understanding). We're using ...
3
votes
0answers
395 views

How to separate data layer from business layer?

My current .NET project looks like below: Solution (.sln) --BusinessProject A (.proj) --BusinessProject B (.proj) --DataLayer (.proj) --A separate project calling ExternalService 1 (folder) --A ...
3
votes
0answers
2k views

Domain Driven Design - DataServices vs Repositories for Domain Models vs Database Models [closed]

I've been trying to refactor an old design in to an Onion Architecture in DDD style. To that point, the project went from a monolith to 4 sub-projects: /src /Project.Application /Services ...
3
votes
0answers
728 views

Validation and Authorisation in Domain Models and Carrying that through a Service Layer to MVC

With the current project I'm working on there's an architecture question being asked which feels like it might just be asking too much. System Basics: HTML/JS MVVM Asp.net MVC Web Services EF SQL ...
2
votes
5answers
1k views

Design pattern for creating object hidden from client

I am having difficulty understanding which design pattern would be best for the following scenario. An application uses a database. That database can either be the production version (SQL) or a test ...
2
votes
3answers
2k views

Are there any well known alternatives to the SOLID principles for OO programming? [closed]

I´m looking for some kind of better compilation of principles which takes the old basic concepts (DRY, KISS, etc...) and applies them to OOP related concepts like abstract clasess, interfaces etc... ...
2
votes
3answers
230 views

In MVC, does the view component deliver a new view to the user directly or indirectly via the controller component?

In MVC, the view component doesn't receive user input directly, but the controller component does. When the view component creates a view, does the view component deliver the view to the user ...
2
votes
2answers
90 views

Question about a maintainable approach on how to handle changes in the UI inside the source code

Inside our UI there's an option to select something from a dropdown. Depending on what you choose inside that menu the rest of the fields inside the UI change accordingly. At the moment we handle it ...
2
votes
2answers
3k views

Designing a social network with CQRS, graph databases and relational databases in mind

I have done quite an amount of research on the topic so far, but i couldn't come up with a conclusion to make up my mind. I am designing a social network and during my research i stumbled upon graph ...
2
votes
2answers
214 views

Best practice for storing hundreds of small objects-with-behavior

Problem: 3000 business objects, each with some regular data (~20-30 shallow fields, JSON) and its own unique small behavior (often just a one-line javascript function). Possible solutions on my mind: ...
2
votes
1answer
126 views

Improving sampling algorithm

I am having a bit of trouble designing a new feature at the moment. It is part of a resource management system. I was wondering if anyone has experience doing anything similar. I'll try to explain: ...
2
votes
3answers
2k views

Multiple users using the same script for their websites

I'm working on a project, I have a question regarding the architecture: Say I have a many python scripts on my server and there's main.py which contains all the classes. And there's a script called ...
2
votes
1answer
163 views

DRY principle vs decoupling (business from GUI)

Say I have a business model called Vehicle. Vehicle has many fields but to keep it simple say it looks like: public class Vehicle { String ownerName; String brand; FuelType fuelType; }...
2
votes
1answer
146 views

What should I name this area of my architecture?

I am developing an architecture for a new MVC system. The legacy system has a layer it calls "facade", but it is not the classic GoF Facade. It is more like a service aggregator. It is used as a ...
2
votes
4answers
278 views

Passing Information to a method using primitives vs and object instance

I have trouble understanding if I should pass an argument to a method as a primitive value or as an already-obtained object. Consider this simple example interface Channel{ String getId(); ...
2
votes
2answers
2k views

Multiple processes in single microservice

We have a microservices architecture very similar to the architecture described here Obviously, it's a simplified diagram of a real system. In our case, we have a requirement to perform background ...
2
votes
1answer
1k views

Should I Microkernel or Microservice my legacy ERP?

I have been working on an n-tier monolith application for a couple of years, and want to build a plan to transform this big ball of mud to a more maintainable system. I came across Software ...
2
votes
1answer
1k views

Real case of append-only models

I've been studying architecture lately, and came across the terms Event Sourcing, Event Streaming and Historical Modeling, all of them referring to "append-only" models, but all the concepts I've read ...
2
votes
3answers
4k views

Where to put a certain kind of functions in MVC structure

I'm just starting out using programming using the MVC design pattern, and I would like to know if I understood it correctly and where I should put certain things. So I understood that I should put ...
2
votes
2answers
1k views

Basic OOP Question for a Report

I'm in development of a sample project in Android for a friend's phone that keeps track of his sales. At first, one of the requirements was to create yearly reports of this sales data. This would be ...
2
votes
1answer
258 views

In the MVC pattern, what has the responsibility for creating the view?

This is something that has been bugging me for a bit in a program I am trying to build. It is a desktop GUI application, and I settled on the use of the famous "MVC" (Model-View-Controller) ...
2
votes
1answer
104 views

Multiple clients of the same server - how to refactor while keeping the benefits of current architecture?

Background I have a system that comprises of 3 components: a web application that displays data and allows data manipulation by users (React) a server application which serves the data to the web ...
2
votes
1answer
332 views

How does controller work with view in MVC?

http://geekswithblogs.net/dlussier/archive/2009/11/21/136454.aspx says MVC – Model View Controller Let’s look at MVC first. You’ll notice a few things about the diagram: The input ...
2
votes
1answer
1k views

Where and how to handle user password hashing in Clean Architecture?

I'm currently building a new application and trying to apply some of the principles of Clean Architecture. One of my first roadblocks is implementing my own Identity system (to avoid being tightly ...
2
votes
3answers
468 views

Is it an anti pattern to have service to service dependency in the layered architecture? [duplicate]

Is it a bad practice (or maybe anti-pattern) to have service to service dependency in the layered architecture? I've noticed that when an application is designed in a way that a service can call ...
2
votes
2answers
473 views

Is the Aggregator Pattern with Multiple Clients in Microservice Architecture Valid?

Say two microservices provide information for a product, one is providing general information (A), one for product images (B). Similar to the architecture described in the gateway aggregation pattern, ...
2
votes
1answer
221 views

Implementing Business Logic in Architecture

I am currently making architecture for one application in which we have different types of user and every user has different types of functionalities to perform. I am confuse in one point if i try to ...
2
votes
3answers
351 views

How do you decide if data should be stored persistently or calculated at runtime?

I'm designing a service that contains different plans and features. I want to freely assign and remove features from plans. The service needs to tell the client both an ID's plan and the features it ...
2
votes
1answer
61 views

Is there some solutions that enable to perfrom sub transactions on business model?

My question is in the header. I would like to know is there architectural solution that enables to perform nested transactions on the business model. Let me to explain - the standard flow for web ...
2
votes
1answer
1k views

Cross-aggregate operations, use domain service or domain events?

I'm refactoring a settlements module in a large healthcare application. I'm trying to follow DDD. Let me give you a short and simplified description of the refactored code: A patient has an ...
2
votes
1answer
764 views

How big or small should a Use Case Interactor be in Clean Architecture?

I’m trying to figure how best to define a Use Case using Clean Architecture and DDD. Let’s say I have an application that handles the pick, pack and shipping of a delivery. Here is the flow: User ...
2
votes
1answer
86 views

Responsibility for adding and ordering menu items in a modular application

Following Ordering menu items fed from multiple modules the question was raised to me, who is responsible for ordering and alignment of menu items in a modular application. The previous link suggests ...
2
votes
1answer
670 views

Multi-instance Microservice Grid: Preventing Duplication Of Effort When Resolving Cached Resources

Background: We are in the process of converting a traditional multi-service Windows Service (WS) application into an Azure Service Fabric microservices grid running on a Service Bus messaging layer. ...
2
votes
2answers
70 views

Relating to design and runtime - is it better to parallelize smaller sub-tasks or bundled tasks?

I'm programming a small web scraper in python which I want to speed up by parallelizing things. The scraper is crawling URLs whereby a single URL can represent an 'item' or an 'index'. An index in ...
2
votes
2answers
235 views

Which pattern should I use for factory + wrapper

I have to program a generic client that uses diverse concrete clients (diverse APIs), all sharing the same interface. I have to log the response of the client. To accomplish this (logging in ...
2
votes
2answers
141 views

Delegating work and programming to component interfaces

I have a MessageHandler class which receives and validates messages before determining which components in the architecture they should be delegated to so they can be processed. This involves calling ...
2
votes
1answer
246 views

Using Django to Create Child Sites

I am creating a series of small sites, I'm using the django framework. The theory goes a user comes to a master site, signs up, then he gets his own child site. Example: navigate to example.com ...
2
votes
1answer
220 views

Providing an agnostic authorization system

I'm trying to design a small web platform that would host several "applications", with a common user pool. My reflection is now focused on the authorization system. I define an application as an ...
2
votes
1answer
79 views

Builder that creates a repository for a specific entity - is this an established pattern?

Suppose I have the following entities: class Employee { public string Id { get; set; } public ICollection<EmployeeBadge> Badges { get; set; } } class Badge { public string Id { get; ...
2
votes
5answers
390 views

All the properties of a domain object should support NULL value?

Imagine you have an application with the domain object User: public class User { public int Id { get; set; } public string Name { get; set; } public string Surname { get; ...
2
votes
2answers
100 views

Where should objects be built from view-models in a layered architecture?

Having the following classes: Person.cs namespace Project.Domain { public class Person { public int Id { get; set; } public string Name { get; set; } public decimal ...
2
votes
1answer
181 views

How can I allow interaction between user-only modules & admin-only modules without polluting with privilege checks?

Important note: This is PHP (5.3+). PHP is stateless and everything you do dies when the request is over unless saved to a persistent storage, but if the answer provided gives me pseudo-code, I'd also ...
2
votes
1answer
211 views

How should I structure my Observables on a Nodejs application with RxJS

So I am learning reactive programming, and I am building an app for fun that listens on various stock information tickers, and calculates specific things to show in charts etc. So right now I have ...
2
votes
1answer
999 views

MVC as Architecture Patterns

When I want to design architecture of system in diagram, I usually take some architecture patterns and give them the system identity. For example, a simple system for school management with Layer ...
2
votes
1answer
227 views

Design/Architecture for passing cross-cutting parameters via constructors at composition roots?

We have an ASP.NET MVC application and a bunch of libraries that are used by the application. There are cross-cutting concerns and dependencies like loggers, repositories, user tokens etc that almost ...
2
votes
2answers
179 views

How to prevent "updating" unchanged date using Data Mappers?

In some books the implementation of Data Mappers simply update the whole row of a table using the data inside an object, but in a system is possible that two different operations update different ...
2
votes
1answer
728 views

Centralize permission evaluation

I am looking for a viable design/architecture pattern for securing several web applications. Here is the situation: Multiple web applications must enforce roles and permissions at Java service method ...

1 2
3
4 5
8