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

Digging deeper into differentiation and benefits of micro-frontends, module federation, and 'live' application assembly architectures

Our team is exploring microfrontends as part of the suite of applications we currently offer our clients. A few questions come to mind which I'd appreciate thoughts on: I understand how a 'shell' or '...
0
votes
0answers
43 views

Serving hundreds of domains from one application with HTTPS

I am building an application which will provide users with custom pages served under the subdomain within my application domain. What I want to do as next step is to allow users to create CNAME which ...
-2
votes
2answers
107 views

How can we implement an incremental naming system?

Just like how Mac or Windows gives incremental names to new folders, how can we implement such a system in a database? Let's say I have currently 3 folders (default names) i.e., "untitled folder&...
1
vote
2answers
200 views

How to handle db query between two or more microservices with different databases?

Suppose we have multiple services which each of them uses its own db(SQL or NoSQL, could be physically distributed). How can handle queries which require data from two or more microservices? PS 1 As ...
0
votes
0answers
35 views

Logical grouping of properties vs class structure

The architecture i'm working with is that we have three services: Main service that takes care of the business logic. It exposes an internal API to proxy service in XML protocol. Proxy service that ...
1
vote
1answer
68 views

What is the correct architecture for communication between an HTTP server and a WS server on the same machine running in separate processes?

I have a Node.js HTTP REST API server and a Node.js WS server. I separated them into 2 entrypoints so that they can be more easily debugged and run separated from each other, but now I need the REST ...
0
votes
0answers
22 views

Database architecture for Email Marketing which can be used as a micro service

I am working on a very challenging email marketing database design and i am not able to figure out the best way to build the database, where functionality can be split so it can be used as a ...
-1
votes
1answer
129 views

Are common design patterns applicable for microservice architectures?

As part of my master's thesis, I am currently working on a framework for building microservice-based service systems. Based on my research, I am able to define important design criteria that the ...
0
votes
1answer
86 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’...
-1
votes
1answer
72 views

How does Matplotlib / other GUIs work to draw the individual pixels?

So I wondered how matplotlib (or equivalents) makes graphics appear on your screen. I found that matplotlib does not do the drawing itself; instead it is built on TKinter, which is built on TK, which ...
1
vote
0answers
40 views

What do the Trapezoid-shaped boxes mean in this schematic diagram of RISC architectures (from Wirth's compiler construction)

I am currently browsing through Niklas Wirth's compiler construction book. He presents a simple RISC architecture as a target for code generation using the following diagram. The symbols/shapes used ...
-3
votes
1answer
86 views

Assumptions versus no assumptions - where do you draw the line? [closed]

In our line of work as software engineers, we can write code that assumes various things outside its scope or architectural boundary, in order to save performance, time, and on defensive coding ...
0
votes
1answer
55 views

REST Service-to-Service communication contract classes

Given two systems A and B that communicate with a Request-Response protocol (REST services). Where should the entities representing the request and response bodies reside? N.B.: The entities above ...
-4
votes
2answers
96 views

Archival-quality future-proof pseudo-CPU architecture

Suppose we maintain a massive electronic library of texts/photos/videos etc., and want to ensure that these files are readable indefinitely long in the future. So we: Keep snapshots of versions of ...
1
vote
1answer
72 views

Mobile authentication approaches, JWTs and refresh tokens

Context I'm developing togther with my dev team a mobile app in a client-server architecture, since there will be a webclient too, allowing some users (admins) to perform certain operations from the ...
0
votes
0answers
49 views

How to model a simple chat system as a microservice architecture?

In an attempt to learn how microservices work, I'm going to attempt to convert a simple monolithic chat server to a microservice architecture. I've created a simple chat system as a monolith, modelled ...
-2
votes
1answer
38 views

What's the difference between and Event Processor and a Microservice

In Event Driven Design, there is the concept of the Event Processor which is the node within the event chain that applies business logic to/from an event message. Usually a single responsibility. in ...
2
votes
4answers
376 views

Alternative to using enum

The project I'm working on has a code dependency on a TeamNames enum. The problem with this is that the project needs to be recompiled and redeployed on any addition/deletion in TeamNames. How can I ...
0
votes
2answers
252 views

Validations and throwing exceptions in DDD?

I have a question regarding validations and exceptions in DDD. I have a ValueObject say, PasswordText which takes a string argument in it's constructor. Checks if the string matches the password ...
0
votes
1answer
107 views

Duplication of data vs loose coupling

Currently, I'm working with a health management application, let's call it application A. It's a partly prebuilt generic application that we are extending on. The main entities are journals, events, ...
0
votes
0answers
34 views

Form Builder architecture (Multiple Tenants)

I am currently working on a multi tenant form-builder architecture. The high level flow of the application is where a user will answer a bunch of form based questions and at the end of questionnaire, ...
0
votes
0answers
25 views

How to test integration with third party libraries on the backend from the frontend?

What is the standard or recommended approach or architecture for testing integration to third party libraries? More specifically, for this post I am only concerned with one of the possible ways of ...
0
votes
1answer
129 views

How to set up 2 versions of Single Page Application and serve the right version to users based on the backend setting?

We develop a Single Page Application (SPA) for enterprise clients. When we deploy a new version of our SPA we would like to upgrade a subset of clients whilst leaving the other clients on the more ...
1
vote
1answer
745 views

Low-level Design of a Bike Rental Service

I'm working on the low-level design of a bike rental service and I was wondering if the solution is good or where it can be improved. Context & Requirements I used an exercise I found online which ...
0
votes
2answers
106 views

How harm it can be to combine an update/create/delete REST request?

Currently I have being request do implement an endpoint that would be responsible to update/create/delete sub-items for a single entity. The entities in case are students in a given classroom and the ...
0
votes
0answers
17 views

Use of API Gateway for on-premises applications doing external calls

Our team had a discussion about the use of an API Gateway when our on-premises applications have to do a external HTTP call. The scenario would be very simple: On-premises application --> API ...
0
votes
1answer
61 views

How to manage this microservices dependency?

I have a bookshelf microservice that manages user books' status (pending, read, reading now...). It exposes some REST endpoints to set book status: PUT /users/{userId}/bookshelf/pending/{bookId} PUT /...
0
votes
0answers
41 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
61 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
88 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
100 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
77 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
338 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
56 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
117 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
102 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
114 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
44 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
256 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
238 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
402 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 ...
2
votes
2answers
445 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
195 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
278 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
296 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
38 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
2
3 4 5
65