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
2 answers
143 views

Should domain know about exceptions thrown from outer layer?

Let's take a hypothetical system, a state based, exceptions thrown from persistence layer or other outer layer, should propagate to ui layer through domain layer. Domain need not know about this ...
0 votes
0 answers
24 views

Mapping data that were input to one module, to input to of module

Lets say we have typical trivial CRUD app: user sends data controller catch the request and map it controller sends data to service for processing structure: - api - request - ...
  • 231
0 votes
1 answer
445 views

What are the best practices in public API vs internal only API being on the same service

I wanted to understand what are the best industry practices and the pros-cons in the following 2 choices: A single service that serves internal only API and public API, vs 2 separate services - one ...
  • 101
0 votes
2 answers
147 views

Microservices that needs to change row in shared DB

I have an application that can be reduced/simplify to this flow: user sends request to app A app A inserts info about the request and user into DB ( marked as "B in progress" and "C in ...
  • 231
0 votes
0 answers
92 views

Querying data from multiple microservices

I'm trying to design an application that uses the microservices architecture. The service would have an api gateway, a user service and then a seperate service for each analytic source. For example, ...
  • 101
0 votes
2 answers
256 views

Microservices - create post for logged in user

I am working on a small project with microservices architecture in Spring Boot. As to not make unnecessary calls to users-microservice, I have duplicated some necessary User data (id, name, summary, ...
  • 1
0 votes
1 answer
83 views

Are Microservices Architecture and a Single Customer View able to co-exist?

Given the microservices pattern is the decomposition of software by business capability with ownership of state, and a single customer view is an aggregated, central, "single" data store of ...
  • 109
1 vote
1 answer
106 views

Side effect as a common object seems like a bad pattern

Given an auction system, there are several ways to apply a discount to the transaction's final amount, e.g. Special discount for a given seller discount for a given buyer Discount for a specific ...
-3 votes
1 answer
80 views

Technical Debt in frontend development [closed]

I have recently joined in a new company as a frontend developer and I got access to their current repository which is made in ReactJS. I can see that current team is not very experienced in reactJS ...
  • 1
-2 votes
1 answer
451 views

Best way of handling concurrent requests

I am working on an Authentication system (java based) that will authenticate users and create a session for them. This session is valid for 5 hours. I do not want the same user to have multiple ...
  • 97
-1 votes
1 answer
45 views

Dashboard based on 3rd party application - duplicate data to local db or should I view the third party as my database?

I am currently building a web based solution based on an application used in my organization. The application have an integration (SOAP-based API). To keep things simple, I want to build a analytics ...
0 votes
1 answer
164 views

Blazor Application separation of concerns

I am building a cross-platform application and have planned to use Blazor. I have made similar applications in the past but using ASP.Net Core for the back-end and Angular for the front-end. I always ...
0 votes
1 answer
80 views

Designing a scheduled based system using Node.js

Just for the example: I have a system which needs to fetch social media timeline on a specific time interval based on user preferences. Let's say we have user A, B, C, and so on. Let's say again we ...
  • 101
0 votes
1 answer
110 views

Serverside validation in a web application

Suppose I have a web application that processes a request as follows. A user fills in a form and submits it. (e.g., to register as a new user for my application) The request is passed to the ...
  • 113
0 votes
1 answer
162 views

Best practices to deal with realtime data in REST API, Postgres and Redis

Overview Today we have a monolithic service that deals with realtime time data. The monolithic are composed by follow stack: Django + AuroraDB Cluster (Postgres AWS) + Varnish cache and cloudfront at ...
0 votes
0 answers
74 views

Doubts designing an old system using DDD

We have the following system: References that identify a product and have a family which identifies a group in which the reference belongs. Families that are a way to group references, for example, if ...
  • 33
0 votes
0 answers
52 views

Should authorization be implemented within each service or in a central location?

For example, let's say we are building a service to manage employees for a retail corporation: POST employees GET employees GET employees/{id} PUT employees/{id} DELETE employees/{id} You would want ...
  • 109
1 vote
1 answer
373 views

Alternatives to DDD - Complicated and cumbersome business logic/process

We have inherited a legacy MS CRM 4.0 application and the business wants it re-written to an as vanilla as possible .NET web application. The business wants to go down this route vs another off-the-...
  • 163
1 vote
1 answer
95 views

What is a common practice to refer to other datas within a data oriented design?

This question has been in my mind for a while now, especially in the context of high performance, interactive 3d applications. Just want to find out what is the general practices in DoD for ...
  • 179
1 vote
1 answer
195 views

How can one combine two system architectures, say client-server and repository architecture?

I have a situation where I think it would be best to combine two architectures but I am not sure if this is possible or that it is a good thing to do. By combining them I mean taking certain parts of ...
0 votes
2 answers
263 views

Best pattern/practice to execute a multi-step code generation process

I am working on a project that generates an API with the possibility of doing CRUD operations based on a high-level description of the resources that the user would like to have in an application. In ...
0 votes
0 answers
94 views

Azure - Event Grid Topic and Service Bus

Our system currently needs to expose multiple events to other systems like Azure Power Apps, Logic Apps, Azure DevOps or any other Custom app. We are mostly an Azure shop so were looking at Event Grid,...
0 votes
0 answers
157 views

Using NoSQL (vs SQL) Database for Metadata in a highly scalable System like Facebook

If you are required to build a highly scalable system like Facebook would you prefer to use NoSQL database or a SQL database for the metadata. I would use a SQL database for metadata i.e User Info, ...
0 votes
0 answers
72 views

gRPC streaming proxy | Architectural decision

I'm building microservices app that supposed to launch tests in separate containers. I also want to stream log messages to frontend and store them in database and I don't know what solution would be ...
-1 votes
1 answer
73 views

What is the best way of sorting a list based on the relevance from another service?

I have a product listing service, and it will give a list of products for the logged-in users, and the list is paginated, with ten products per page. I implemented this pagination using MySQL LIMIT ...
0 votes
4 answers
252 views

QR order - how to prevent customers from placing an order when they're not on premise [closed]

From my understanding, a QR code is just a static link which get opened up when I scan the code with my phone's camera. Once opened, a customer can keep the browser tab even after he leaves the ...
  • 245
0 votes
6 answers
255 views

How do I stop constant doubts on my code when programming? [closed]

I often find myself ovewhelmed by questions, I'll explain my self in a practical example detailing how I think about my tasks. I'm often critized on how I approach the problems, and the general ...
0 votes
1 answer
158 views

Architecture solution for scalable crawling

I have the following requirements: a list of queries (rather long list ~ 100K - 1M items or even more) that I need to perform in a certain period of time and the execution time must be predictable. ...
1 vote
1 answer
38 views

Guideline choosing between reporting solution or application front-end

I am working in the data department of a middle-sized logistics company who is shifting from an 'old-school' on-premise BI data warehouse to a more 'modern' cloud-based data lake approach. Another ...
  • 13
0 votes
2 answers
923 views

Where should helper classes/methods for transforming business data for the View be located

I have inherited a badly architected and organised ASP.NET MVC application, which is an online booking system for healthcare providers. It seems to have been designed with very few object oriented ...
-2 votes
1 answer
90 views

Are there real examples of using reflection design pattern to achieve partial deployment? [closed]

This site mentions such thing: http://software-pattern.org/Reflection. It says that it is possible to replace part of the application behaviour dynamically. Does it mean that we can achieve partial ...
  • 11
0 votes
1 answer
106 views

When to Push or Publish

I'm in the process of redesigning our entire process control system (a daunting task, really!), and want to make the right decisions to how each system in the ecosystem communicates with each other. ...
  • 101
2 votes
3 answers
2k views

Synchronous vs Asynchronous Event Driven Architecture

I have been searching extensively about the difference between synchronous and asynchronous patterns and how this relates to event driven architecture. On its face it is quite obvious, I simply ...
  • 149
-1 votes
2 answers
109 views

Can I use a static Service class if I'm not using DI?

I had to create an ASMX web service for my company. Even though ASMX is old, I tired to do everything according to modern standards. So I have a UI layer (web service layer), business layer (service ...
0 votes
1 answer
82 views

What considerations need to be made for choosing DBs in the OLAP portion of a scaling software system?

I'm trying to learn about the different types of database architectures and how their differences influence which one or combination of should be used in software system. I understand that OLTPs ...
-1 votes
1 answer
57 views

Navigating a many-to-many relationship and determining price from a bulk API Call

I think it will help to give a little context, not only about the DB architecture but the actual product. I am building a business where we will be selling pallets of liquidated merchandise. Think a ...
0 votes
0 answers
115 views

How to model an event-driven system for replays

Let's say I have a system to which I can upload documents via an API. There are three services: the UploadService - responsible for providing a HTTP endpoint the StorageService - responsible for ...
4 votes
2 answers
1k views

Real time chat at scale

I have been looking at different solutions for large scale chatting solutions. I feel as if I understand 90 % of it but am turning to this forum to tie the knot. I imagine running a bunch of message ...
  • 149
-5 votes
2 answers
84 views

The advice I've found is to use LTS tools for work, instead can start on a new version if I know the next LTS will come out before project completion? [closed]

I've had this idea because I've recently had to upgrade a large enterprise project (due to security vulnerabilities) that was completed and not touched for years before I joined, and both the backend (...
  • 1
1 vote
2 answers
150 views

Maintainably converting flowchart ideas to an architecture

My team is communicating proposals for the interaction of several processes as a flowchart. I've been drafting a codebase architecture we can use as a starting point. There are two ways intended ...
  • 325
0 votes
1 answer
80 views

Best way to calculate profit/loss with historical data

Problem I need to build a profit/loss graph for a mobile app. The api from which I can get the historical price data only allows me to retrieve 1 item at a time. If the user has 500 items that would ...
  • 101
0 votes
0 answers
77 views

How can microservice based applications use Service Mesh and Event Driven Architecture together?

I came across some applications where they claim they use Event Driven Architecture to communicate between microservices (Kafka as event broker) and also a Service Mesh (LinkerD) There are a couple of ...
0 votes
1 answer
56 views

Design a non replayable endpoint for a service

I am trying something out in Springboot and stuck with a weird issue where I want to send some data from my frontend (react app) to backend (SpringBoot) and make that request non replay able by users (...
-3 votes
1 answer
161 views

How much access should a developer have to a Staging database [closed]

We want our developers to be able to diagnose production issues in staging. For the sake of this, we are planning to make an exact replica of production into staging. We are thinking however, if we ...
  • 9
2 votes
3 answers
920 views

In vertical slice architecture, how can I deal with entities/repositories that are used in multiple slices?

I'm trying to group the components of my system by funtionality. This is the analysis class diagram of my system model. A service class that involves a Post entity might necessarily interact ...
  • 311
2 votes
1 answer
280 views

How to define vertical slice in a system whose horizontal slices are defined by Java modules?

For the project I'm working on I was thinking to create a Java Module for each layer of my system: servlet-presentation defines the implementation of the presentation layer. It is composed by Java ...
  • 311
2 votes
1 answer
129 views

Data Ingest Architecture Advice

I have a requirement where we need to collect N different events and store them for analysis. I am having trouble coming up with a general architecture for this. FINAL REQUIREMENTS The end goal of the ...
3 votes
2 answers
361 views

Design of a modular application

I'm developing an application (Java) in a modular architecture. I have two approaches in mind and I'm not sure which one will be "better code" in case of maintenance and conventions. I have ...
0 votes
1 answer
63 views

Architecture for SaaS that can run in my company's cloud or in clients' networks [closed]

I am working on a portable SaaS web application that has these requirements: The application can run as a cloud service hosted by my organization. Clients can run the application in their own on-...
  • 23
1 vote
1 answer
169 views

"Protect" published events using auth, Event driven architecture

I have a system that publishes events to a message broker, lets call that system A. I also have system B and system C that subscribes to the "events"/messages. My payload/message looks like ...
  • 223

1 2
3
4 5
68