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
1 vote
0 answers
70 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 ...
user avatar
  • 2,988
-3 votes
1 answer
103 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 ...
user avatar
0 votes
1 answer
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 ...
user avatar
  • 161
-4 votes
2 answers
101 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 ...
user avatar
1 vote
1 answer
99 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 ...
user avatar
-2 votes
1 answer
44 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 ...
user avatar
2 votes
4 answers
543 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 ...
user avatar
  • 23
2 votes
2 answers
532 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 ...
user avatar
0 votes
2 answers
358 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, ...
user avatar
  • 111
0 votes
0 answers
50 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, ...
user avatar
  • 101
0 votes
0 answers
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 ...
user avatar
  • 101
0 votes
1 answer
197 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 ...
user avatar
1 vote
1 answer
2k 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 ...
user avatar
0 votes
2 answers
231 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 ...
user avatar
  • 101
0 votes
0 answers
22 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 ...
user avatar
1 vote
2 answers
109 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 /...
user avatar
  • 717
0 votes
0 answers
44 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 ...
user avatar
  • 111
0 votes
1 answer
70 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 ...
user avatar
-1 votes
2 answers
93 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. ...
user avatar
  • 1,349
0 votes
3 answers
106 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 ...
user avatar
  • 109
0 votes
2 answers
90 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 ...
user avatar
  • 157
-1 votes
1 answer
131 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 ...
user avatar
-1 votes
2 answers
694 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 ...
user avatar
-2 votes
1 answer
63 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 ...
user avatar
  • 107
3 votes
3 answers
147 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. ...
user avatar
0 votes
2 answers
147 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 ...
user avatar
-1 votes
1 answer
316 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 ...
user avatar
1 vote
1 answer
95 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 ...
user avatar
3 votes
4 answers
369 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 ...
user avatar
  • 695
2 votes
2 answers
670 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 ...
user avatar
0 votes
2 answers
1k 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 ...
user avatar
  • 101
3 votes
2 answers
892 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 ...
user avatar
  • 151
0 votes
4 answers
237 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 ...
user avatar
  • 17
3 votes
3 answers
461 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
1 answer
70 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 ...
user avatar
1 vote
3 answers
540 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 ...
user avatar
  • 23
0 votes
0 answers
41 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 ...
user avatar
-1 votes
2 answers
310 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 ...
user avatar
  • 19
1 vote
0 answers
54 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 ...
user avatar
  • 11
-1 votes
5 answers
129 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 ...
user avatar
  • 1
2 votes
2 answers
268 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 ...
user avatar
  • 461
0 votes
1 answer
133 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 ...
user avatar
0 votes
2 answers
460 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 ...
user avatar
1 vote
2 answers
55 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, ...
user avatar
  • 27
1 vote
3 answers
203 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 ...
user avatar
3 votes
2 answers
2k 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 ...
user avatar
-2 votes
1 answer
73 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 ...
user avatar
  • 162
1 vote
2 answers
147 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? -- ...
user avatar
  • 1,349
2 votes
1 answer
838 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....
user avatar
0 votes
1 answer
176 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 ...
user avatar
  • 1,329

1 2 3
4
5
67