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
1answer
103 views

Application settings in relational database

There is an application of ours which has some experimental features. We want to enable it when user wants to enable. So they will change it in the UI and we are saving those to DB. So we added those ...
0
votes
1answer
43 views

DDD and bounded contexts: can a context be mapped in multiple microservices?

Let suppose that i have two bounded contexts: A and B. In books i'm reading authors will only write "Context A maps into micoservice A'". Now i'm working on a project (university assignment) ...
0
votes
1answer
64 views

How to deal with master data in a microservice environment

Hey Software Engineers Currently we basically have a what I would call "modular monolith". A diagram would likely look something like this: What we want to do in the future is being able to ...
-2
votes
2answers
104 views

How widespread is the use of hexagonal architecture (ports and adapters architecture)? [closed]

We are discussing the adoption of hexagonal architecture (ports and adapters architecture) in our team. Sometimes I use the rate of adoption as one rough metric about how beneficial a certain practice ...
0
votes
0answers
24 views

Best practise for healchecks in Kubernetes parallel to service execution

Sorry for maybe a stupid question, but I am new to all that and I am trying to sketch an architecture for my microservice. I am developing a service that will be consuming Pub/Sub messages from GCP ...
-2
votes
1answer
139 views

Modular monolith vs microservices for hybrid multi-tenancy

TLDR; I'm architecting an hybrid multi-tenant app that needs to handle customizations request from customers (tenants), I'm trying to decide between modular monolith and microservices pattern, Which ...
-1
votes
1answer
153 views

Source of "... against the interface, not the implementation"

For a paper I am writing, I need to find the origin of the following two phrases: Code against the interface, not the implementation and Test the interface, not the implementation (Note: the ...
0
votes
1answer
49 views

Solution architecture for a Kafka streaming to website system

Not sure if this is the correct forum for this question - but I could really use some advice. I need to design a system (within certain constraints). The system must implement the following logic: A ...
0
votes
3answers
113 views

When scaling from a single server to elastic computing (many concurrent servers) how do timed tasks scale up?

We have been in the process of scaling up my companies infrastructure, we have graduated from single servers and moved everything off to scalable AWS Ec2 servers that auto scale, there is one little ...
0
votes
1answer
87 views

What is the difference between Kruchten's Logical and Development view?

I want to understand the difference between Kruchten's Logical and Development view when using a microservice architecture. Krutchen describes the software architecture model 4+1 model with four ...
0
votes
1answer
139 views

Does the builder/factories pattern apply to this problem?

I have the following code and I am not sure if the builder factory is the best approach to solve this code duplication. createA(a, b, c, e: {e1, e2}){ return{ a b c e } } ...
0
votes
0answers
38 views

Canary deployments with services that consume from a queue

I'm building out a canarying system and I'm trying to determine the best to support services that consume requests from a queue. Incoming gRPC requests are easy since those are handled by nginx ...
1
vote
0answers
84 views

Retry long-running message processing in case of processing node failure

I have two types of microservices: Data Collector and Data Processor. They communicate with each other via Azure Service Bus Queue. Data Collector collects data from different sources and, once done, ...
0
votes
0answers
50 views

What is the best way to share data between two loosely coupled interfaces?

I have two interfaces: Camera and Computer. So far, each interfaces have multiple implementations in my codebase and they are loosely coupled (no implementations of Camera depends on any ...
0
votes
1answer
83 views

Architecture for alerts system based on API - would this be too slow a design?

(Hi I’m new here - I believe this question suits here from the guide saying “ architecture, and design” - however if there is a better place, just pop me a comment. As there’s no actual code it doesn’...
0
votes
0answers
30 views

best approach of passing arguments from usecases to repositories

I want to pass interface as a request in my use cases and repositories while following the clean architecture in flutter hence my method signature is as follows for usecases and respositories ...
3
votes
4answers
300 views

Is the strategy pattern for 3 variants overuse?

I am curious about it because I talked with a friend about the strategy pattern, and we diverge about when we have to use it. Our scenario is that I have to build a view component with 3 variants. All ...
2
votes
1answer
69 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; ...
0
votes
0answers
27 views

Should these entities belong to the same aggregate/microservice?

I'm developing an application where users can create projects. Each project has posts and tasks. I have three microservices: Projects, Posts and Tasks. There is some logic here: All users can create ...
0
votes
1answer
52 views

API controllers modeling

I'm developing an API with ASP.NET, but I'm having some questions about the best way I should develop the controller layer for the products. I'm having these questions because each product will have ...
0
votes
1answer
38 views

MVVM List<T> from Model to View

I am writing a control app for a 6-DOF robot. This app can send scripts to the robot, which in turn executes these and thus moves around. In the app a robotprogram can be created by adding 3D ...
3
votes
3answers
263 views

Undo/Redo with Command Pattern and Object Destruction

I'm developing a Command Pattern with Undo/Redo support. The environment is Unity C# but should be mostly language-agnostic. My initial commands comprise of adding and removing objects to and from a ...
0
votes
0answers
13 views

Q: In Android recommended MVVM architecture should repository be using AppDatabase or DAO directly?

hope you're doing fine. I'm going straight to the point, I'm trying to implement Android recommended MVVM architecture with repository pattern using Room as local data source, currently I'm at ...
0
votes
1answer
161 views

Where should email notification logic go?

My architecture looks like: Each block is an individual service. There may be more upstreams and downstreams added in the future. The upstreams need to send email notifications to users. Each email ...
0
votes
0answers
48 views

Realtime report generation and downloads

We host a dashboard where users can view different reports, each powered by a templated SQL query. The users have an option to "download" those reports as CSV. Currently the above use case ...
0
votes
3answers
170 views

Ingest data from our partener : API POST vs Event Driven Architecture

I am in the process of carrying out a software architecture for my client, in fact THE HISTORY OF THE REQUIREMENT : MY PARTNER SEND cvs files via MFT to MY CLIENT , many times a day . MY CLIENT has a ...
3
votes
2answers
456 views

Where to store the results of a class internal computation?

Let's say I have a class with some suitable instance variables which are then used for some computation (via a method of the class). As the computation will generate lots of data which needs to be ...
0
votes
2answers
119 views

Method that is aware of interface underlying type without reflection

I'm struggling with the design of a method CallSystemX() that needs to accept a parameter of multiple Types. To get around it I created an interface called IRequest to be able to pass different types ...
0
votes
0answers
26 views

Maintain different versions of the same entity for different locations. Find a standard approach for this

I'm designing an enterprise application (SQL + REST API + Web UI) and I'm trying to find some standard approach for the following problem: Definition: I have a company with multiple locations. I also ...
0
votes
2answers
163 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
61 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
62 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" ...
3
votes
3answers
527 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
196 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
250 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 ...
0
votes
2answers
167 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
149 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
154 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
186 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
106 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
39 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
324 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
60 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
151 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; }...
4
votes
1answer
632 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
356 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
57 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
384 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
202 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,...

1
2 3 4 5
7