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
0
votes
2answers
94 views

Is there alternative to applying events synchronously in command handler in CQRS?

I have workflow where I have complex command handlers encapsulated inside aggregate. These handlers emit some events, and then further logic based on result of these events can emit more events. ...
0
votes
0answers
52 views

API-based Architecture Pattern

After studying some basics about n-layer architecture, I face to a new proyect where my database is an ERP and the way to connect with it is via API calls. I can perform queries to obtain data but the ...
0
votes
0answers
42 views

What is considered as best practice for defining common types in golang?

We have set of common types (mostly structs, scalars, string IDs) that are used across different packages in a project written in Golang. Currently we define them in a package named "models" ...
2
votes
3answers
350 views

Is “Transactional outbox” an anti-pattern?

"Transactional outbox" is a pattern for distributed systems which makes use of a single db transaction to do both, persist changes to the domain model and send a domain event message to the ...
-2
votes
3answers
184 views

Feasibility of a service oriented concept for a device architecture

Assume a device using Raspberry Pi to control some hardware. This diagram tries to clarify the components: SOA concept feasibility is being explored right now. The motivations are: Components in ...
-1
votes
1answer
76 views

Design Pattern for accessing data over RestAPI calls

I am looking out for a general design strategy or pattern designing various components in my client application. Here are high level details: The data is accessed my making a RestAPI call. The data ...
-2
votes
0answers
81 views

Why does Hexagonal Architecture allow you to skip the Application Layer?

In Hexagonal Architecture, our Domain Layer core is completely isolated and surrounded by our Application Layer: Why then, is our Domain Layer allowed to talk to our Infrastructure (DAL) Layer ...
0
votes
2answers
124 views

Architecting project into multiple source control repositories

I'm doing some work with my team to refactor/rearchitect some parts of our existing codebase which consists of two separate Django apps hosted in one common project repository. We're starting work on ...
-2
votes
2answers
60 views

Where to place exception handling while using Decorator design pattern

How to design a service layer structure that will be resistant to exceptions. Let's say I have a simple OrderService service, this service performs basic operations - saving an order. public interface ...
1
vote
3answers
136 views

Is it a good practice to isolate the database from public APIs?

We develop web-applications using a javascript frontend framework (ReactJS), to retrieve the data to show, the user's browser calls an authenticated REST API which is our backend (Kotlin+Spring), the ...
-1
votes
2answers
63 views

How to have dependency between two different microservices?

I am implementing quora like application in which I have Post(question, answers, comments, likes/dislikes) as one microservice and User details as another microservice. I need user details in the post ...
-1
votes
2answers
101 views

How to deal with classes with same purpose from different libraries?

I have a question regarding software design/architecture. Are there any best practices or design patterns regarding the usage of classes with the same purpose from different libraries? Let's imagine ...
0
votes
1answer
38 views

Thought process required to design domain aggregate in micro service architecture?

I am using DDD pattern in login micro service used in employee management software. Here Organization/Company is an Entity and User is one more entity. What are my aggregates in this case, if i think ...
5
votes
1answer
293 views

Too many conversion between layers

I'm developing a back-end application and I ran into the problem of too many conversions between layers. For a single type it is like this: So every time I update the model, I need to update six ...
0
votes
0answers
32 views

Design pattern for intercepting requests to an API (Rule Engine)

I want to use a rule engine to centralize business rules. My rules require information not typically owned by systems that call the rules engine. I don't want to complicate these systems (System A and ...
-1
votes
1answer
52 views

Architecture: whether and how to split information flow

I'm planning to add a feature in a program chain and need an advice with rationale on the information flow. Setup DB -- binary -- artifact -- parser -- front-end available quantities I cannot ...
2
votes
1answer
98 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; }...
3
votes
1answer
257 views

Clean Architecture - Controllers and Presenters

I am having a hard time trying to wrap my head around the relationship between Controllers and Presenters in Uncle Bob's Clean Architecture. In most of his videos, he talks too little about ...
2
votes
5answers
217 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; ...
0
votes
2answers
40 views

How to generate frontend URLs in a “12 factor app” service?

I'm working on a system with a user-facing frontend and with 1-n backend services which I'm trying to design according to the principles of the Twelve-Factor App. I'm now facing the task of sending ...
-3
votes
1answer
112 views

Comparison of CQRS and MVC

Command Query Responsibility Segregation and Model–view–controller patterns look pretty similar to me. Are they comparable? Do they act at the same layer of abstraction? How do they differ? Can they ...
1
vote
1answer
135 views

How to make the controller framework independent in Clean Architecture?

Recently, I've been studying Clean Architecture and I have some doubts. I want to make a REST API that adheres to this architecture. To do that, I define my entities, use-cases, etc. For each endpoint,...
0
votes
0answers
38 views

Using a bulletin board to support Separation Of Concerns

Context: I'm working on an embedded system with many small functional modules. The business logic within each module is made as simple as possible, but those modules generally need to gather bits of ...
1
vote
1answer
119 views

High-level overview or architecture for processing a huge file within a fixed time frame

I was asked this question in an interview of Crypto company for the role of backend developer. Please suggest me another stack-site if this is not the place to ask this question. There is a subsystem ...
-1
votes
2answers
50 views

How to construct a model state dependent context menu in a MVP GUI application

Lets say I have a GUI application which tries to adhere to Model-View-Presenter (MVP) as best as possible. In this application I have a list box with items. One should be able to interact with these ...
2
votes
1answer
130 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) ...
0
votes
2answers
154 views

Cases of memory management where it is reasonable to separate program into several execs

I have 5000+ strings pet-project for CLI and it can do some optional calculations and can output results to CLI or/and to file. Some new modules don't work. Now I catch with GDB some strange segfaults ...
1
vote
2answers
124 views

How to organize logic for table-like feature set? Looking for architecture pattern advice

I have a table-like feature set in a game. What it means is I have 10 types of battle, and 10 types of features related to battles, like hints, start/end logic, rewarding/spending resources, statistic ...
0
votes
0answers
58 views

Single DB - Multitenancy with microservices

We are migrating from a monolith to microservice. Note : We store the tenant details in master tenant db which is seperate from the application database As-is: The app serves multiple tenants and has ...
0
votes
1answer
40 views

Service integration with large amounts of data

I am trying to assess the viability of microservices/DDD for an application I am writing, for which a particular context/service needs to respond to an action completing in another context. Whilst ...
1
vote
2answers
228 views

How does DDD play nice with dynamic business rules?

DDD was chosen as an architectural pattern to tame a wild database model, as well as ubiquitous language. However, there is a sticky part of our model -- many of the rules are dynamic, and I don't ...
-3
votes
1answer
89 views

How to get Address pincode inside Customer class

I have 2 domains Customer and Address using using EventSourcing and CQRS in our Monolithic app, below is my query: Customer Domain: class Customer { //Aggregate class String custId; ...
1
vote
1answer
678 views

Digital Signature for PDF files through Web Application

We are developing a Web Application for manage dental clinics. The app can generate PDF files through the PHP backend (for example invoices, quotes etc.). Each of those PDF file needs to be digitally ...
1
vote
0answers
30 views

Orchestrator or coordination pattern in Azure?

I am designing a background web job in Azure that, given a list of users it retrieves from a database, makes calls to a separate messaging microservice (for each record) that will end up sending N ...
0
votes
0answers
35 views

How to reuse business logics and resources of different mvc projects from new project

This new project is kind of fast walk through of previous controllers's jobs but some extra steps in between, sort of working as a wizard. The thing is, it seems make good sense to create this wizard ...
0
votes
1answer
114 views

Best way to scale a service that fetches data and has a REST API to query it

I have been developing a service that fetches data and also has a REST API to query the fetched data. The problem I have is, when this service starts it is starting the data fetching process, and this ...
2
votes
1answer
133 views

How to model Business Objects depending on use cases?

I'm having trouble modeling the Business Objects of my application. In my domain I have substantially a list of bills of orders, and for every bill I have the pallet that contains the materials to ...
3
votes
1answer
167 views

Where should the circuit breaker go?

I'm developing a new REST API and I've seen some projects place the circuit breaker in the Controller. I used to place it in the DAO. First difference I can say is that placing it in the DAO is that ...
-2
votes
1answer
104 views

Patterns for multi tenant systems [closed]

Ok so first I want to describe the anti-pattern anti-practice. Company creates system for customer number 1. Then customer number 2 comes along they fork the codebase customize it. (Say for variations ...
0
votes
1answer
51 views

Structure and placement of a exporting module

Its an infrastructure monitoring application. We have a spring boot (2.x) based Service Oriented Architecture (SOA) with multiple modules in our project and the center point is a REST services module ...
1
vote
1answer
117 views

What is the name of this kind of (intra-process, inter-thread, queue-based) event system?

Context Espressif's embedded development libraries for the ESP32 microcontroller contain an event system based on FreeRTOS. The event system handles connectivity, interrupts and other IO activity, but ...
2
votes
3answers
205 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
51 views

Poor execution of ASP.net software architecture and how I resolve some of their issues

MVC+ xml web service using MS MVC. The project is made with MS ASP.net front end and business logic, and the logic contains does coded with some complicated logics to interact with the front end ...
0
votes
0answers
66 views

Architecture pattern for website service that automatically generates Bootstrap templates

I am working on a web app that will automatically generate Bootstrap sites given a bounded set of parameters. I need help with regards to architectural decisions, as over time, I have made very naive ...
3
votes
1answer
173 views

How far to go when decoupling Microservices by use of Integration Events (Messages)?

I am reading the architecture guide from the .net core project. They state: The integration events can be defined at the application level of each microservice, so they are decoupled from other ...
1
vote
1answer
243 views

Is it possible to use more than one software architecture pattern in a single software? If so, how would this work?

I already know of various software design patterns, and I am familiar with MVC. However, now that I am learning about other patterns (repository, client-server, pipe, and layered), I got a bit ...
1
vote
2answers
95 views

In Event Driven Architecture, do Microservices only communicate with Events/Commands?

Still getting to grips with EDA. Suppose in your system you have an Order Service, which first needs to check if the customer's account has enough credit from the Account Service. There are multiple ...
0
votes
0answers
45 views

Architecture to check for user properties in bulk?

We run an infrastructure in our organization, where a list of configs are provided and we check which config a given user satisfies. For eg: config_1 = {"a": 1, "b": 2, "c": 3} config_2 = {"a": 1, "b"...
-1
votes
1answer
82 views

Design of a single microservice, size limit?

I've been struggling for a while of what would be the "recommended" approach for a microservice itself. There are quite of top architecture designs that are the holy sacred for a lot of craftsman ...
-2
votes
1answer
56 views

Is there a less complicated alternative to handling this simple mySQL query in Node?

To Put My Question In Better Context... I am about done writing my first real-world Node application, which would be classified as a REST API. For myself, it was a bit challenging to wrap my head ...

1
2 3 4 5
7