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
2 answers
156 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 ...
user avatar
0 votes
0 answers
26 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,...
user avatar
0 votes
0 answers
72 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, ...
user avatar
0 votes
0 answers
49 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 ...
user avatar
-1 votes
1 answer
49 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 ...
user avatar
0 votes
4 answers
197 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 ...
user avatar
  • 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 ...
user avatar
0 votes
1 answer
119 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. ...
user avatar
1 vote
1 answer
34 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 ...
user avatar
  • 13
0 votes
2 answers
182 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 ...
user avatar
-2 votes
1 answer
83 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 ...
user avatar
  • 11
0 votes
1 answer
103 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. ...
user avatar
  • 101
1 vote
3 answers
557 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 ...
user avatar
  • 119
-1 votes
2 answers
104 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 ...
user avatar
0 votes
1 answer
72 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 ...
user avatar
-1 votes
1 answer
53 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 ...
user avatar
0 votes
0 answers
76 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 ...
user avatar
3 votes
2 answers
552 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 ...
user avatar
  • 119
-5 votes
2 answers
81 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 (...
user avatar
  • 1
1 vote
2 answers
140 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 ...
user avatar
  • 325
0 votes
1 answer
72 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 ...
user avatar
  • 101
0 votes
0 answers
48 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 ...
user avatar
0 votes
1 answer
53 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 (...
user avatar
-3 votes
1 answer
120 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 ...
user avatar
  • 9
2 votes
3 answers
463 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 ...
user avatar
  • 309
1 vote
1 answer
159 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 ...
user avatar
  • 309
2 votes
1 answer
120 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 ...
user avatar
2 votes
2 answers
288 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 ...
user avatar
0 votes
1 answer
58 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-...
user avatar
  • 23
1 vote
1 answer
80 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 ...
user avatar
  • 203
4 votes
3 answers
260 views

Class Constructor that Takes Two Arguments of the Same Interface - But Order Matters

I'm getting ready to release a feature to production tomorrow & feel I have misdesigned said feature. I'll try to explain my scenario clearly. I'm looking for alternative design suggestions to ...
user avatar
-1 votes
1 answer
49 views

What is the name of component handling the HTTP requests from client in more complex infrastractures that just "client-server"? [closed]

Although the splitting of web application/ web sites to front-end (client) and back-end (server) is popular, this binary division is frequently pretty far from actual complexity of architecture: The ...
user avatar
2 votes
1 answer
263 views

Why is the 4+1 architecture model view named "4+1"?

Why are use-cases counted separately from the other views in the 4+1 architecture? How are use-cases different from others views?
user avatar
  • 139
1 vote
3 answers
98 views

Is it okay for development infrastructure to depend on/communicate with staging infrastructure?

We have a few apps that communicate with each other. I work on the core backend project X. X needs to make requests to a cloud native project Y in order to process some information. Now, locally I don'...
user avatar
  • 121
12 votes
5 answers
6k views

What is the best practice about microservice architecture for consuming many stored procedures in the same database?

I have to build a micro service for my company, the backend is an Oracle database, but the micro service must consume five (5) stored procedures that already exist in the database (as shown in the ...
user avatar
-1 votes
2 answers
60 views

Methods to model mutations performed by functions

Given a set of interfaces, objects implementing those interfaces, and functions that use those objects, what methods exist to model mutations performed by the functions? For example, given: A Pet ...
user avatar
1 vote
3 answers
132 views

How to split out shared authorization logic across spring microservices

Currently working on a project where we have multiple services that all need to consume the same authorization service when their endpoints are hit. Right now we have the authorization boilerplate ...
user avatar
  • 143
0 votes
1 answer
24 views

Modularized authentication providers for Spring application

At our company, we have multiple products which share authentication settings. In particular, we use Spring LDAP, but since our use case and configuration is more complex, we would like to use ...
user avatar
  • 300
-1 votes
1 answer
93 views

Microservice decomposition into reusable microservice from a set of monolithic applications

So for my Masterthesis i have to decompose a set of monolithic industrial applications into microservices. The aim is to decompose the monoliths in to services that are as much reusable as possible. I ...
user avatar
  • 1
16 votes
4 answers
6k views

I can't really tell the difference between Hexagonal and Layered Architecture

So, in the hexagonal architecture layer, the application layer has incoming ports (usecases) that's called from incoming adapters, implemented by services, that uses outcoming ports that is ...
user avatar
0 votes
1 answer
70 views

Microservices: Non-query calls from an API Gateway in the API Composition fashion

In a microservice architecture, it is common for an API Gateway to perform API Composition (providing CQRS is not used) for queries to multiple services to combine data to make it ready for a front ...
user avatar
2 votes
2 answers
87 views

Replacing service implementation based on environment variables

I have previously asked a question on this forum linked here. In short, I wanted to not call 3rd party APIs when developing locally. Based on the wonderful answers received I have opted for the ...
user avatar
  • 161
1 vote
1 answer
205 views

Circular references with generic classes

I'm trying to create an interaction system for a game I'm developing with Unity and C# and I've been struggling with it for a while now. It consists of interactors and interactables. The idea is that ...
user avatar
0 votes
2 answers
373 views

When updating a model on a RESTful API, should there be an update endpoint per field? or one endpoint for the model?

For a RESTful API, consider a model schema as follows: MyCoolObject { field_a field_b field_c } Is it better to create one update endpoint to update one or many fields on the model? Or create ...
user avatar
1 vote
0 answers
35 views

How to handle storing of arbitrary data in an application enablement platform

I'm working on an AEP in the IoT space, where we've created a few domain-specific entities to allow users to model their data. Each entity has both a type and instances of that entity. These are: ...
user avatar
  • 259
6 votes
5 answers
362 views

Instability metric vs Dependency Injection

Below is an excerpt of Fundamentals of Software Architecture, page 65, which I am reading: The instability metric determines the volatility of a code base. A code base that exhibits high degrees of ...
user avatar
  • 303
0 votes
3 answers
788 views

Mapping to and from domain entities

I am in the process of implementing onion / clean architecture, and would like to understand better how and when to map to my domain entities. So if we take a specific example where we have a Post and ...
user avatar
  • 161
2 votes
1 answer
90 views

Modelling multi-device manufacture machinery software

We are building a multi-device (different vendors, different types) manufacture machinery where these device work together orchestrated by our software and operated by a human being to create various ...
user avatar
0 votes
2 answers
102 views

How to solve an issue when a decorator needs variables from the base class?

I have a service class that does some magic. I want to introduce a new type of functionality - raise an event. I am absolutely sure that decorator pattern is great for this scenario. The problem is ...
user avatar
  • 451
-3 votes
1 answer
50 views

Is it possible to add a unique identifier to the shared Data via bittorrent (P2P)?

I know that P2P sharing is copying the exact content between the peers. Everyone has the same data. Let's assume the content is very important and I don't want anyone to distribute outside the group. ...
user avatar
  • 1

1
2
3 4 5
67