Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
2 answers
112 views

In an "Always On" architecture, how are duplicate concurrent transactions handled?

Imagine a scenario where a gift card has been purchased with cash, the gift card is duplicated, and each card is used to purchase an iPad at a self-service counter at exactly the same time. What are ...
user avatar
  • 19
0 votes
1 answer
58 views

Are Microservices Architecture and a Single Customer View able to co-exist?

Given the microservices pattern is the decomposition of software by business capability with ownership of state, and a single customer view is an aggregated, central, "single" data store of ...
user avatar
  • 109
1 vote
2 answers
147 views

Synchronous vs Asynchronous Event Driven Architecture

I have been searching extensively about the difference between synchronous and asynchronous patterns and how this relates to event driven architecture. On its face it is quite obvious, I simply ...
user avatar
  • 119
1 vote
5 answers
300 views

How do Singletons differ from Static variables?

Although I do find some (apparently old) posts on the topic on the web, I could not find one here at SE. Thought of raising this here to see if what I read is accurate/is all there is to it. So ...
user avatar
  • 295
0 votes
2 answers
83 views

How to handle functional differences in an app in different locales?

I'm working on an app that needs to be localised for two different countries, let's call them Atlantis and Buranda. As well as translating the site into the relevant languages and displaying dates, ...
user avatar
0 votes
0 answers
69 views

How to model an event-driven system for replays

Let's say I have a system to which I can upload documents via an API. There are three services: the UploadService - responsible for providing a HTTP endpoint the StorageService - responsible for ...
user avatar
0 votes
2 answers
110 views

Accessing Hardware-based resources from multiple worker threads

I have a technical application that interacts with different hardware components: measurement devices, sensors, custom hardware. These use dedicated interfaces like USB, serial ports, TCP/IP ...
user avatar
  • 119
0 votes
1 answer
92 views

Designing a model for a small business which provides multiple services which generate documents [closed]

I am designing a system for a company which provides multiple services to users, all of which generate a document. The documents all have a validity period. Some of the services can be grouped, and ...
user avatar
0 votes
3 answers
85 views

Should we test private data (static objects in this case) to make sure it maintains its structure?

I had a discussion at work about whether to unit test a private static object we're using as data for a public component. const data = { 45: { name: 'John' }, 2: { name: 'Patricia' }, 27: { name: '...
user avatar
2 votes
1 answer
123 views

Wrapping a legacy C++ codebase with a C API

I have inherited a large C++ codebase implementing various Windows desktop applications, services and libraries using Windows MFC. There are no automated tests. We need to decouple the UI and retain a ...
user avatar
  • 91
0 votes
1 answer
23 views

Modularized authentication providers for Spring application

At our company, we have multiple products which share authentication settings. In particular, we use Spring LDAP, but since our use case and configuration is more complex, we would like to use ...
user avatar
  • 300
0 votes
1 answer
83 views

How to show only most recent items in most efficient way?

Consider application where users rates products (e.g. 1-5 stars). Through passage of time, there might be millions of records. One can create desired indexes and/or keep sum and count of all ratings ...
user avatar
5 votes
3 answers
217 views

Better to store references to an object, or to store its ID and retrieve it with a hashMap

Given the classes: public class SocialNetwork { private final Map<String, User> users; ... } public class User { private final String user; private final LinkedList<String>...
user avatar
  • 61
1 vote
1 answer
117 views

Streaming Market Data Over The Public Internet

I'm currently working on a design for a system that can service market data to external clients over the internet. The current solution involves consuming market data from a feed (Feed Handler), this ...
user avatar
  • 119
3 votes
0 answers
200 views

MVC vs Layered vs Client-Server

On this book (Software Architecture, 10th Edition by Ian Sommerville, ISBN: 9781292096131), the following architectural patterns are presented (Chapter 6, 6.3, p175): MVC Layered Client-server ...
user avatar
  • 149
0 votes
1 answer
81 views

How should you structure the front-end/client to interact with a web app microservice?

I've been grappling with this for a while and figured I would post here to get input. I am a full stack engineer. I work on both front end and back end apps, where sometimes I have to create new ...
user avatar
  • 329
0 votes
1 answer
133 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 ...
user avatar
0 votes
2 answers
93 views

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

Let's suppose that I have two bounded contexts: A and B. In books I'm reading authors will only write "Context A maps into Microservice A". Now I'm working on a project (university ...
user avatar
  • 9
1 vote
1 answer
84 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 ...
user avatar
  • 319
-2 votes
2 answers
127 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 ...
user avatar
0 votes
0 answers
27 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 ...
user avatar
  • 3
-2 votes
1 answer
299 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 ...
user avatar
  • 107
-1 votes
1 answer
181 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 ...
user avatar
  • 31.4k
0 votes
1 answer
74 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 ...
user avatar
0 votes
3 answers
159 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 ...
user avatar
  • 287
0 votes
1 answer
145 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 ...
user avatar
  • 212
0 votes
1 answer
142 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 } } ...
user avatar
  • 369
0 votes
0 answers
52 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 ...
user avatar
1 vote
0 answers
87 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, ...
user avatar
  • 139
0 votes
0 answers
61 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 ...
user avatar
  • 101
0 votes
1 answer
129 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’...
user avatar
  • 101
0 votes
0 answers
32 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 ...
user avatar
  • 121
3 votes
4 answers
319 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 ...
user avatar
  • 139
2 votes
1 answer
97 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; ...
user avatar
  • 23
0 votes
0 answers
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 ...
user avatar
  • 717
0 votes
1 answer
55 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 ...
user avatar
0 votes
1 answer
45 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 ...
user avatar
3 votes
3 answers
426 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 ...
user avatar
0 votes
0 answers
27 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 ...
user avatar
0 votes
1 answer
185 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 ...
user avatar
  • 159
0 votes
0 answers
51 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 ...
user avatar
  • 101
0 votes
3 answers
194 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 ...
user avatar
3 votes
2 answers
470 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 ...
user avatar
  • 67
0 votes
2 answers
121 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 ...
user avatar
  • 265
0 votes
2 answers
205 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. ...
user avatar
  • 101
0 votes
0 answers
63 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 ...
user avatar
0 votes
0 answers
66 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" ...
user avatar
3 votes
3 answers
724 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 ...
user avatar
  • 523
-2 votes
3 answers
202 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 ...
user avatar
-1 votes
1 answer
911 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 ...
user avatar

1
2 3 4 5
8