People who code: we want your input. Take the Survey

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
0answers
30 views

Containers or Serverless? What Affects Your Architectural Decision? [closed]

I am curious how folks in the community reason about "containers" vs. "serverless" and different takes. I recently came across the Dapr project: https://dapr.io/ which I think is a ...
0
votes
1answer
26 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 ...
1
vote
3answers
43 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 ...
1
vote
2answers
53 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
52 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 ...
1
vote
2answers
186 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 ...
-1
votes
4answers
138 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
2answers
70 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
56 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 ...
-2
votes
0answers
30 views

How to build a scalable Architecture that must support multiple brands, flows and markets?

Looking to get some opinions/suggestions on how to manage or improve an application that supports multiple brands, markets and flows. In this example I am using a form. There is one base form that can ...
1
vote
3answers
209 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
34 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
1answer
37 views

Configuration of a staging environment vs production environment [closed]

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
18 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 ...
0
votes
4answers
77 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 ...
0
votes
1answer
69 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
11 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
44 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
1answer
78 views

How to share API between microservices?

Currently, our architecture uses "API-first" approach in building our product. This product is divided across multiple teams handling different microservices. The above image succinctly ...
1
vote
2answers
35 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
89 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
41 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
64 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
79 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? -- ...
1
vote
1answer
169 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
92 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
92 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
34 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
91 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
98 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
45 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
46 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
50 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
100 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
58 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
217 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
105 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 ...
-1
votes
0answers
25 views

Avoid state on Presenter - MVP

I'm working on an Android app and I'm doing some refactor on a class that it was already there from months, and I faced that on the presenter they store the response of a service. private lateinit var ...
-3
votes
1answer
58 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
109 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, ...
0
votes
1answer
63 views

How to architect a collaborative web application for live updates?

When using collaborative applications like issue trackers, planning tools, etc. it can be very frustrating to have to keep hitting refresh to make sure you're viewing the same state as your colleagues....
1
vote
0answers
35 views

Should I separate a variable that changes often into a different entity although it is contextually should be inside another entity?

So, I have an entity called Consultation that is being used as a member variable of the class VideoCallViewModel that goes like this: struct Consultation: Equatable { enum Status: Int, ...
0
votes
1answer
42 views

Running ad hoc queries on JSON log files

I have a situation where let's say I have a folder called logs which has N folders. Each folder contains events for a specific event type and each folder has N .log files where each file has multiple ...
-3
votes
1answer
39 views

Serving content to authenticated users

I'm wanting to store lots of data in cloud storage - like S3. I want some data to only be accessed by authorised users, one way I could do this is to authenticate the user on my service, download the ...
0
votes
0answers
29 views

How to decide whether to spawn more worker instances in a node according to bandwidth utilization

We're working on a distributed software which transfers data around. The software is composed by a central server application (called "the server") and several workers which synchronize with ...
3
votes
2answers
440 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
117 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 ...
-2
votes
1answer
45 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 ...
-3
votes
1answer
88 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 ...
4
votes
3answers
182 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 ...

1
2 3 4 5
64