Questions tagged [architecture]

The high-level design and description of a software system. Architectural design distills away details of implementations, algorithms, and data representation to concentrate on the interaction of "black box" components.

Filter by
Sorted by
Tagged with
3 votes
2 answers
468 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
120 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
-2 votes
1 answer
47 views

How to properly design a system that provides services based on location

This is more of a high-level architecture question. If there is a better site to post these at please let me know. To greatly simplify - think of Uber Eats, but for services. You could order services ...
user avatar
  • 1
-3 votes
1 answer
90 views

What are some of the good and bad aspects of this basic design? [closed]

I made this design for a university assignment, but I am genuinely interested of this design's good and bad aspects. The design was supposed to be an OOP design. The system is meant to be an online ...
user avatar
  • 105
4 votes
3 answers
387 views

CQRS: getOrCreate - is this a command, query, or both?

Consider the following scenario: If the user isn't registered in the database, register them. Return their ID. If the user is in the database, return their ID. The API endpoint for this may look ...
user avatar
  • 1,339
1 vote
1 answer
378 views

CQRS-style "API" for frontend good or bad idea?

I'm building a lot web applications for internal use, my setup is basically ASP.NET Core, React/Angular and Typescript. I started to find my self duplicating a lot of code from C# into TypeScript ...
user avatar
1 vote
3 answers
115 views

Know when a resource has been fully consumed

I've got a race condition problem I need to solve with a distributed API/service and would appreciate vetting my plan and any fresh ideas I have missed. Problem: I have a finite amount of many (...
user avatar
0 votes
1 answer
695 views

Does it make sense to reuse microservices in a desktop application with an "offline" mode?

Lets say we have a microservice architecture consisting of: multiple frontend clients, e.g. an Android App, an iOS App, and a Javascript Web Frontend a Java Spring (HTTP Rest) microservice to access ...
user avatar
  • 133
4 votes
1 answer
119 views

Project icons / images organization

I am asking a question about the overall architecture between different projects. Let's say I want to centralize all icons / images between different projects in a single repository. This means that ...
user avatar
1 vote
1 answer
435 views

Sharing types & endpoints between frontend & backend [closed]

I'm looking for a clean solution to share types, endpoints and response format between a backend and frontend. The backend will be in Python & the frontend in Typescript. The backend is a REST API....
user avatar
-1 votes
1 answer
321 views

How to run and manage multiple instances of an application (different start params) on multiple servers? [closed]

Our main (C#) application: takes in parameters and starts working (batch processing, takes anywhere from minutes to hours) up to x instances of said application per server instances are started by ...
user avatar
  • 21
0 votes
1 answer
267 views

What would the database schema look like for a Entity Component System architecture of web app?

I found previous SE questions like this. I'm familiar with the typical RDBMS backed MVC web app framework. To illustrate what I am thinking of, let's use the examples of Bunny and Carrot from this [...
user avatar
2 votes
2 answers
157 views

MVC: Should my domain model look like this?

Consider the following GUI screen (Java Swing) with a list of persons where the user can select a person and delete it. According to MVC, the view observes (observer pattern) the model and updates ...
user avatar
  • 695
-2 votes
1 answer
78 views

Event loop for console input

I have a server application that runs in an infinite loop, only reacting to SIGINT. It is put inside a screen process. If I have to make any changes (reload configuration, add new plugins, etc) I ...
user avatar
0 votes
1 answer
41 views

In an MVC desktop application, is there a canonical solution to share an immutable value class between multiple components?

Question In the context of an MVC, desktop architecture, is there a canonical solution or a design pattern / best practice to give access to an immutable value class to multiple components at ...
user avatar
-3 votes
2 answers
85 views

How much should a react frontend application be automated tested? [closed]

I'm backend developer working on a very backend heavy application. So most of the business logic is writen in the backend. In our project we are considering a full rewrite of the frontend. Currently ...
user avatar
1 vote
1 answer
190 views

What design pattern to implement notifications for a .NET application?

I have an ASP .NET web application dashboard that is used to send notifications to several .NET desktop clients. The current implementation is that the web app writes the new notification to a ...
user avatar
0 votes
0 answers
62 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
2 answers
61 views

Where to put files (interfaces) that link two independent assemblies: Authentication and Main Program

I'm having an issue with dependencies in a C# app that I'm creating. I have an assembly for my authentication process, and a separate assembly for starting up the main program once authentication is ...
user avatar
  • 1,477
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
0 votes
3 answers
81 views

Designing this module to support exchangeable drivers

We have a battery manager implementation which uses a fuel gauge driver and a charger driver. Currently both of these drivers are hard-references to the fuel gauge and charger driver we currently ...
user avatar
  • 95
1 vote
1 answer
128 views

Best practices when combining development environments

I'm working on a Swift-project (an iOS-app) where a webview is used to show an HTML-document. This document is manipulated by some JS, which is compiled and minified from TypeScript. There's also SASS ...
user avatar
  • 165
0 votes
2 answers
850 views

Is it okay to add userId to a DTO object?

I'm implementing the validation layer for a certain method on a controller, namely I need to check if certain image ids passed do really belong to the user making a request. In order to do that I need ...
user avatar
  • 109
1 vote
1 answer
174 views

java threading model for scale up

I need some advice on the scale-up issue. we have a java application currently it works as below the current system is using the Thread Per Request Model. each client connection (long-running and ...
user avatar
1 vote
4 answers
150 views

Architectural problem for class combination (cartesian product) for save format strategy

Hello to everyone and thank you for any suggestion. I have a family of subclasses of Track (Track is abstract). Every concrete Track has a different number and types of fields (attributes) that extend ...
user avatar
  • 27
0 votes
1 answer
118 views

How can message queues improve scalability?

I have read in a DDD book that using message queues between communicating services can make the whole architecture more scalable, amazon's documentation mentions that queues provide granular ...
user avatar
  • 145
0 votes
1 answer
45 views

What kind of bottlenecks are possible when implementing a distributed workflow using a central point of control?

I was going through https://docs.microsoft.com/en-us/azure/architecture/patterns/choreography, the document mentions in the drawbacks of having a central orchestrator that it can become a performance ...
user avatar
  • 145
0 votes
1 answer
119 views

How to use single Spring-Boot instance to cater to multiple environments?

We have a Spring-Boot Web application currently deployed to 7 environments (DEV, SIT, UAT, Pre-Prod, Prod, etc.). This application connects to other REST services, which has different URLs for each of ...
user avatar
  • 111
0 votes
4 answers
318 views

Best practices for calling from one microservice to another in a loop

Let's assume we have a use case where ServiceA needs to make several calls to ServiceB. I know it would be best if the calls could be consolidated as one request, but let's say that's just not ...
user avatar
  • 101
-1 votes
2 answers
158 views

Robins magic Chess game: Where to put/split the behaviour to full fill Law of Demeter [closed]

So now i have a really concrete example; its highly related to that question here: Tell one, but ask the others? the important statements there are: In the comment section https://softwareengineering....
user avatar
0 votes
2 answers
69 views

Rest API | Single Verb performs CRUD?

I have some logic that needs to be called by multiple applications ( mobile, web, ...). Instead of duplicating this logic, I thought of putting it in a Rest API so that I could call it from any of the ...
user avatar
-1 votes
1 answer
95 views

Different composition techniques from the perspective of the client

There exists different composition arts/techniques, i will present in the following some of them. The question then is do you know more techniques additional to my presented ones? And then the ...
user avatar
0 votes
1 answer
142 views

MVC architecture - communication between nested components

I'm working on a rich client desktop application. I'm trying to use MVC to decouple the model, view and controller responsabilities. Problem is I can't seem to find a clean solution for handling ...
user avatar
1 vote
1 answer
48 views

Architecture for an app that shows posts in real time in a map based on location

I would love to hear some more expert opinions on a problem related to bulk real time information, here some details: Use Case The users view in real time a map with determined places. The users can ...
user avatar
3 votes
3 answers
718 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
1 vote
1 answer
108 views

Eventing: Determine if Set of Messages has been Processed

Given a Set of messages sent to a Queue, what are good ways to determine all of the messages have been processed? Constraints: Large number of messages Other messages besides those in the Set will be ...
user avatar
  • 109
-2 votes
1 answer
65 views

Deep Object Graph Hierarchy: access an object which belongs to that hierarchy

Consider we have something like this: A person, which has a physical body with arms, each arm has a hand, each hand fingers, and each finger a fingernail. Another example: we have a car and a car-...
user avatar
-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
95 views

What's the best architecture to run scheduled jobs (max. every hour) and jobs initiated by users, both of which do same processing?

I own a library that reads a file (large or small) and converts it to a special format that one of our vendor's application needs. This conversion can take anywhere between 5 seconds to 10 minutes ...
user avatar
-1 votes
1 answer
883 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
2 votes
1 answer
234 views

How to decouple messaging middleware from microservices?

We have a bunch of microservices written in different programming languages. These all communicate with each other over RabbitMQ(AMQP) middleware. There are consumers and publishers in each ...
user avatar
-1 votes
2 answers
199 views

PHP Design Pattern, separation of concerns: should the Controller make a new HTTP request to the API?

I'm having a huge doubt on how to connect the front-end of my application to its back-end. So my application has a single entry point where all requests go. The request is dispatched to a controller, ...
user avatar
-3 votes
1 answer
68 views

How do i decide the compute sizing for a portal [closed]

I am designing the government portal that is gonna provide scholarship to various students under numerous schemes from GOI. In that way around 40 million users would be there to use the portal. how ...
user avatar
0 votes
2 answers
217 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 ...
user avatar
1 vote
1 answer
55 views

Limiting access to telemetry API only for certain application

Let's consider such an example: I'm an author of application like Google Chrome. I would like to my application sends anonymous telemetry logs to my server. How do I prevent somebody to use my server ...
user avatar
  • 113
0 votes
3 answers
421 views

Tell one, but ask the others?

Consider we have three classes which want to collaborate, then, where is the behaviour? I guess it can only be in one of the three classes or in a fourth one acting than as a procuedural connector-...
user avatar
0 votes
1 answer
63 views

Application layer scaling while depending on a single DB

How can running multiple instances of my backend improve performance if they are all backed with a single Database (served with the same database instance) Because I think that most of the latency of ...
user avatar
1 vote
3 answers
172 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 ...
user avatar
  • 119
0 votes
2 answers
193 views

Concurrent network I/O

Correct me if I am wrong, but regarding file I/O and concurrency, I understand that it makes no sense to read 2 files concurrently, since the data bus cannot be used simultaneously. This means that ...
user avatar
  • 103
1 vote
0 answers
35 views

Managing the output rate for a queue triggered service

I have a service which is triggered by messages from three queues (which are populated by different topics), and writes the processed results to another system (say DB service) synchronously. The ...
user avatar
  • 19

1
3 4
5
6 7
66