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

How to implement "suggested changes" functionality to the dataset of a web application

I got an application that takes either CSV or YAML which describes a graph, parses it to extract info, puts it into a database. There is also a frontent which allows users to browse different ...
0
votes
1answer
63 views

Who to manage AAA , gateway or business service

In a debate with our solution architect, there were 2 proposed solutions to handle (illustrated below on the figure) In the first, the API Gateway manages Authentication, Authorization and Accounting ...
-1
votes
2answers
90 views

Contemporary Design and One-to-One Relationships: code-first vs data-base first approaches

After reading, Does it ever make sense NOT to condense one to one relationships?, I wanted to take the question further with regards to contemporary design of entities, front-end code and controllers. ...
0
votes
3answers
104 views

Strategy & Architectural Decision: Customer data migration between two companies

Asked this originally here, and didn't receive any answer so far, hence posting here too. Let's say company A acquired company B in a certain region. This means, A and B were competitors in that ...
0
votes
0answers
18 views

Web api talking to a separate process

I've been working on an application (let's called it AppX) that will be launched on RaspberryPi. It's being written in C++. As it will be a part of my smart home solution, I would like to add a ...
0
votes
2answers
88 views

Two services, one database - how do I keep clean separation between the two?

I have a service, call it serviceA, which has a relational database. This service is old and bloated, modifications to the code are very difficult. But I also can't get rid of it, it's the heart of ...
-1
votes
1answer
84 views

Multiple application sharing same database functionalities

We have two application A and B that I'm refactoring. They both use the same database. Those application are written using the Symfony framework and Doctrine as database layer. I've moved some of the ...
-1
votes
2answers
399 views

Clean Architecture, good approaches to avoid hard-coding the creation of entities on the Use Case

I have an Use Case that has an UseCaseInput (which is a parameter object of the use case) and an UseCaseOutput which is the output object, the UseCaseInput has lots of parameters in which will be used ...
-2
votes
1answer
57 views

Micro Frontend architecture and different teams

I often get the argument that, if only a single team is working on the UI development, then the UI should not be developed as a set of Micro Frontends, with each one representing a subdomain. I would ...
0
votes
0answers
16 views

What is the proper way to communicate with Android Service from Jetpack Composables?

I'm working on an Android application where a Manager/Controller class encapsulates basically the core functionality of the program. It has some StateFlows defined and also a few public methods to ...
3
votes
3answers
125 views

How does cuRAND use a GPU to accelerate random number generation? Don't those require a state?

My understanding is that every PRNG or QRNG requires a state to prevent the next item in its sequence from being too predictable; which is sensible, as they're all running on deterministic hardware. ...
0
votes
2answers
105 views

DDD Modeling - Entity with generic and specific data

Suppose I am buying coffee. There are several types of coffee (A1, A2, A3), but sometimes I want to make a reference to all types of coffee (like if I had a coffee "grouped"). Considering ...
-1
votes
1answer
139 views

Distributed transaction reconciliation architecture

There is a minor difference between Saga pattern https://microservices.io/patterns/data/saga.html and my use case below. Saga pattern is about distributed transaction when an event is happening vs my ...
1
vote
1answer
46 views

Designing for many third-party REST API integrations

Not sure if this is the right forum for this, but I've come across a need for this pattern a few times lately, and I would love to get some opinions on options for how to handle it. Say I have an app ...
3
votes
4answers
311 views

Do I have LocalDTOs? If yes, what is a good approach to keep encapsulation of the domain model?

LocalDTO term refers to Fowler's article. Say I have a domain entity Person: public class Person { private String id; private String name; private int age; } This entity has its own ...
2
votes
2answers
315 views

If Entities, in the Clean Architecture, are enterprise wide rules how different applications consume them?

In this post, Uncle Bob writes: Entities encapsulate Enterprise wide business rules. An entity can be an object with methods, or it can be a set of data structures and functions. It doesn’t matter so ...
0
votes
2answers
550 views

Order Management Microservice design pattern

I have question on how to design an order management microservice. An order has different workflow based on the previous state or based on the business needs. I'm guessing at some point cannot keep on ...
3
votes
2answers
533 views

Communication between two apps

I am thinking of creating two applications, one of which (App 1) will be in Django (DRF) and other (App 2)might be Django but might be another more lightweight framework (maybe Flask or plain Django ...
0
votes
4answers
204 views

Change architecture design to API to reduce coupling

I was reading articles about TDD and I found the following one. https://blog.cleancoder.com/uncle-bob/2017/03/03/TDD-Harms-Architecture.html In order to answer this question I think someone should ...
3
votes
3answers
329 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
1answer
65 views

Modernizing a legacy source control / deployment infrastructure

I've got a large, old application with a clunky, extremely manual deployment process (essentially, tribal knowledge combined with random scripts / build jobs scattered across servers). The application ...
1
vote
3answers
351 views

Some thoughts on the Repository pattern

Until this moment, I have seen a lot of variations and combinations of the Repository pattern, implementations that simply queried the required information, some used something like a mapper, some ...
0
votes
0answers
40 views

Architectural design for sending large amount of analytics data from production servers to s3 without impacting request performance

Lets say we have a server getting upto 1000 requests per second, serving them at p99 of 20ms (strong business case for not increasing this latency). The server gc parameters have been carefully tuned ...
-1
votes
2answers
147 views

Configuration of a staging environment vs production environment

For our software development process we used to set up 3 environments : integration , QA and master. Recently it was decided to add a new staging environment that shall mirror the production ...
1
vote
0answers
35 views

Multi Tenancy and container support in Spring Webflow application

I have an application which is quite old (7 years back-2014) but well built using JSF, Spring Webflow and Hibernate. This application is critical as being deployed for 50 separate clients each with ...
-1
votes
5answers
119 views

What is the best way to structure a shopping cart to ship to multiple recipients?

We are designing a shopping cart that allows customers to ship to multiple recipients, but we are stuck at the conceptual level of the relationship between items in the cart and recipients. There are ...
2
votes
1answer
190 views

Microservices: Is the Saga Pattern correctly applied here?

I'm trying to understand and learn how to build microservice messages the best and came up with this task for myself: Services given: Accounts Service Token Service Email Service When a user ...
0
votes
0answers
15 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
74 views

Expose or consume API REST?

I am preparing the software architecture for my client project based on APIs REST The idea is that any data exchange between my client and his partner will be via API REST call The specification is ...
0
votes
2answers
290 views

How to share API between microservices?

Currently, our architecture uses an "API-first" approach in building our product. This product is divided across multiple teams handling different microservices. The above image succinctly ...
1
vote
2answers
47 views

Should inter-service API be separated from public API?

I have a problem with proper API design. So there's an app where users can track their sport Activities. User can later access and view them. It can be done by making GET /api/activities/{id} request, ...
1
vote
3answers
135 views

How do I make sure a task run only once in a dockerized environment?

I have a task that I need to make sure it only runs once in my dockerized environment (managed by k8s), running the post-upgrade script is one example. Because each dockerized app can run the task and ...
0
votes
2answers
572 views

What layer do third party API request/response models go in and what do you call them?

I have a RESTful API service that has three layers: Application/Domain, Infrastructure, and Presentation. Application/Domain contain my interfaces and models. I currently have three different types of ...
-2
votes
1answer
71 views

Is there a name for this kind of state machine?

I'm thinking of a GUI architecture that works like a finite-state machine where there is a set of possible states and a set of possible inputs--or events. The thing is, some states transition to the ...
1
vote
2answers
102 views

CQRS: Is it an antipattern if the Command invokes a database interface which contains business logic?

Martin Fowler states that, Command module executes validations and consequential logic which aligns with every CQRS demo app that I've studied. That is to say: validation -- does this Jedi exist? -- ...
2
votes
1answer
534 views

How to do MVC in C++

I have a QT application with a window of OSG written in C++. I want to implement the app using MVC design. The application allows you to add markers to OSG model and it is using QT to edit the markers....
0
votes
1answer
135 views

An API+Worker architecture with a shared DB

We are designing a new service that should do mainly 2 things 1. Get data from a queue, call an API (lets call it APIx) which returns and ID and save the data from the queue+ID to the DB 2. Expose the ...
1
vote
3answers
103 views

Is ABI governed by hardware or is it only an agreement between software

ABI (Application binary interface) defines things like caller and callee saved registers, stack use, register use, end-of-routine stack pop etc. Is ABI only an agreement between compilers and other ...
-1
votes
1answer
35 views

Should caller of service wrap the service with transaction or service provider should define transaction and commit within

Question is result of me consuming a service exposed by a colleague, the service is a simple update service, which takes an object/entity as input, does some processing and updates persistence. the ...
0
votes
1answer
167 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
2answers
148 views

About layered architecture and the persistence layer

I’m pretty sure I’ve made some wrong assumptions in my questions so bear that in mind. At some point, the methods inside objects that are part of the persistence layer will be called/accessed for say… ...
0
votes
0answers
53 views

What's the proper way to avoid long parameter lists? [duplicate]

If I architect to utilize use-cases then I soon arrive at long param lists. As an example: class MainViewModel @Inject constructor( private val getUsers: GetUsers, private val deleteUser: ...
0
votes
0answers
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 ...
0
votes
0answers
146 views

Multithreading vs Asynchronous game loop for multiplayer online game?

I'm trying to create a turn based multiplayer online game where players can be grouped in a room/lobby and play (similar to Ludo but number of players can be more than 4). There can be multiple such ...
3
votes
0answers
207 views

Implementation of projections in event-sourced system

I'm working on a application which uses event-sourcing and CQRS to define it's domain model. Background We have implemented projections to aggregate stream of all domain events into a read models used ...
1
vote
2answers
69 views

Should selected person be part of my application layer? (MVP pattern)

Consider the following GUI screen: When user selects a person from PersonListView, EditPersonView should show person's first name and last name and allow the user edit. So, I end up with the ...
2
votes
2answers
319 views

Is a good practice to have multiple databases running in the same machine in production?

So I am developing my own DBMS as a resume project, but I am so deep now on this that I am even considering in the future to release it as an open source project and receive feedback from the ...
0
votes
2answers
398 views

How to avoid race condition in reservation system [duplicate]

I'm trying to design a system to buy mangoes (not really mangoes, but it's a good proxy). One mango is the same as the other. These are very high-in-demand mangoes; quite possible many people at once ...
-3
votes
1answer
62 views

I have an API I need to call weekly and save to a relational database. Once a month I need to make a call to that database [closed]

I am a junior developer and my typical senior developer just got fired and while they try to replace him I shall ask you. I have an API that returns some internal data of ours in increments of 200 per ...
1
vote
2answers
112 views

Designing UI module for an application

I have an UI module that will expose only one class - UserInterface. The class will be responsible for collecting user input and providing output (command line UI style). From logical way of thinking, ...

1 2
3
4 5
66