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

Orchestrator or coordination pattern in Azure?

I am designing a background web job in Azure that, given a list of users it retrieves from a database, makes calls to a separate messaging microservice (for each record) that will end up sending N ...
0
votes
0answers
34 views

How to reuse business logics and resources of different mvc projects from new project

This new project is kind of fast walk through of previous controllers's jobs but some extra steps in between, sort of working as a wizard. The thing is, it seems make good sense to create this wizard ...
0
votes
1answer
85 views

Best way to scale a service that fetches data and has a REST API to query it

I have been developing a service that fetches data and also has a REST API to query the fetched data. the problem i have is, when this service starts it is starting the data fetching process, and this ...
-4
votes
1answer
72 views

How to create an Event-Driven Architecture with many external sources

I work for this Accounting company - as a Product Owner - that uses several external services (one for Contract management, another one for Accounting Demands management, a third one for Financial ...
0
votes
1answer
100 views

Managing consistency in distributed database

I have question regarding system design. Lets say I want to design a Flight booking system ( such as American Airlines). So, consistency when booking a ticket is very important. This booking system is ...
1
vote
1answer
135 views

How to exchange rectangular arrays via HTTP efficiently and without tightly coupling requesters to responders?

Suppose a user defines input arrays on a JavaScript frontend. These are sent to a Python backend via the REST API. The backend computes a result for every combination of each array's elements. It ...
-3
votes
1answer
288 views

How to implement time triggered batch processing in a K8s/Java Spring Boot environment?

Environment: Kubernetes Cluster with Spring Boot microservices. One microservice contains a database with a date in one column of a read-only table. Problem/Requirement: When the date is reached, an ...
2
votes
1answer
126 views

How to model Business Objects depending on use cases?

I'm having trouble modeling the Business Objects of my application. In my domain I have substantially a list of bills of orders, and for every bill I have the pallet that contains the materials to ...
2
votes
4answers
133 views

Onion Architecture PopUpService

Assuming this type of architecture, whether you call it clean, ddd, onion, or hexagonal, where the dependencies point inward and the application logic is meant to be heavily decoupled from the UI / ...
0
votes
1answer
98 views

How do proto models in gRPC fit into Clean Architecture

I know they say that clean architecture are guidelines, and individual projects will affect implementation, but is there a general thought on the correct implementation? A lot of times I see DTO ...
-6
votes
1answer
37 views

How would you build a simple bidding system with countdown?

So I'd like to build a simple website where there's a given amount, let's say $1. If someone pays that amount a 24 hour countdown starts. Within this window, people can outbid the previous amount and ...
1
vote
0answers
45 views

Stuck on approach on how to serve a lot of data to users with a lot of possible combinations

So, I'm making an application which monitors specific things that happen within the area of a user. And I'm really stuck at the approach on how to serve specific real-time data to my users. I am using ...
0
votes
2answers
67 views

Structuring optional REST resource hierarchy

I am designing a REST service with multiple end points which will be servicing the following hierarchy: Department has many Category Groups Category Group has many Category(-ies) Category has many Sub-...
-2
votes
1answer
104 views

How to do achieve parallelism in a console application

I have a .net web application, let's say A and a .net console application, let's say B.In A, I have a queue with multiple jobs to be done by B.Once I select the jobs from A, a queue gets created. Each ...
2
votes
2answers
135 views

API architecture design for fast reads of text file with 150m unique labels

Assume a text file with 150m unique records. Each record has two columns: (1) string and (2) integer. The string is a unique label, and the integer is the label's value. The only query will return the ...
2
votes
4answers
156 views

Where do these queries fit into a good architecture?

I've been thinking about a problem for a while and I don't really feel that I've nailed how to approach this. I'm trying to work with DDD as much as possible but some presentation scenarios do not ...
3
votes
1answer
161 views

Integrating TeX into a Java desktop application

Looking to integrate TeX equations in a TeX-agnostic fashion, suitable for either ConTeXt or LaTeX, into a Java-based desktop Markdown editor. The possibilities are numerous, but I'm not sure what ...
1
vote
1answer
149 views

How to create lots of web projects that are copies of each other (90%) but also have some unique elements (10%) in each? And that also support updates

I have a web project in. Say, it's in Rails, or any other well web framework. And I plan to be creating copies of it and running them all. Let's say, it's a blog. Each blog will be deployed on its own ...
0
votes
1answer
48 views

Structure and placement of a exporting module

Its an infrastructure monitoring application. We have a spring boot (2.x) based Service Oriented Architecture (SOA) with multiple modules in our project and the center point is a REST services module ...
-4
votes
1answer
159 views

Do these two design philosophy conflict with each other?

With few years of C programming, I noticed there are two major types of design choices for data organization. I offer an analogy below. First: height folder: Andy.txt, Bruce.txt, Chris.txt and Tina....
0
votes
3answers
78 views

When to set constants during DI setup and when expect them on the fly as parameters?

Let's assume you have a project (e.g. .NET Core) using dependency injection. A database repository relies on a database connection string. public abstract class BaseRepository { // use this when ...
0
votes
0answers
19 views

Managing groups “profiles”

Rights management in our applications is based on the RBAC standard. Groups are stored in our authentication service and transmitted through the jwt token. Each application then has a mapping of these ...
1
vote
1answer
89 views

Architecting multiple codebases calling our public API + private API for first-party applications

Currently, we have the issue where we have two codebases (API & Website) calling the same database (along with some duplicate business logic) and we want to streamline this so all requests are ...
2
votes
1answer
146 views

Event Sourcing/CQRS for Self-Related Entities

I'm building a platform that has an entity named content. There's a clear boundary around what defines content except that it can have relationships with other content entities. Up until now, there's ...
0
votes
1answer
158 views

Is it ok to Inject a whole object instead of only the dependencies

I'm working with the Dependency Injection Pattern in Unity3D (an engine which uses MonoBehavior, a class that doesn't have a constructor, as the base class for all of its game components), and I ended ...
1
vote
2answers
130 views

Confusion about layered architecture

Given a layered architecture consisting of presentation layer business logic layer data (access) layer and a SPA web application communicating through REST endpoints with the backend (eg Angular and ...
-1
votes
1answer
65 views

Making a GUI for receiving/checking user input - how to arrange GUI and validation checks

Sorry if my question sounds general, I'm new to GUI and frontend/backend ideas and all that (mostly I just do scripts for math hw and such) but I make it more specific here. I have a program that runs ...
0
votes
1answer
250 views

Extract Exception handling MVVM

I noticed a pattern in my code, where im repeating a solid amount of code. Let's say my application has 2 layers. UI and Services. I have a FileService class, that has a CopyTo method. Now there are 2 ...
-2
votes
2answers
92 views

Caching expensive sql queries on first page load

I have a web application with an express/node backend using typeorm and PostgreSQL. The home page in my app is a query with lots of inner joins that shows the user a complex report. This query takes ...
3
votes
3answers
307 views

Why not use SQL to query an API instead of GraphQL?

nalzok posted an interesting question over a year ago: "Why not use SQL instead of GraphQL?". Respondents seem to suggest three main problems: One should not directly expose one's database ...
2
votes
3answers
395 views

How to architecture the big files download?

I have a website where new requirement came up where user can download a zip file of 500MB from the server. I am expecting max 10 concurrent users(CU) will be performing this activity . Webservers ...
0
votes
1answer
29 views

Remotely monitoring bash terminal progress

I'm thinking of creating a system which would help me transfer the output of my bash terminal to an app in a remote device(like my Android smartphone). I was thinking of tackling this problem as just ...
3
votes
1answer
103 views

Monolith to microservices - Staging / UAT environments

In our organization we're looking to adopt a service oriented architecture where new requirements (that are natural bounded contexts) are being built as separate services that integrate into the main ...
4
votes
1answer
288 views

Where should I place more complex business logic related to what a Web API does but consumed by a single client?

I have been debating with my colleagues about the following and we still did not reach consensus. The architecture is as follows: medium size monolith application for intranet usage a small ...
-2
votes
1answer
43 views

A Recipe for Handling an AWS Network Request from Start to Finish at Global Scale

I have been reading the AWS documentation for a solid 2 weeks, and configuring a terraform system to deploy a multi-region network. I have it mostly wired up, but I am not sure I have accounted for ...
2
votes
0answers
22 views

In a multi-region network, how do you organize requests through VPNs for atomic database transaction requirements?

I am trying to setup a multi-region (global) AWS system, where each region (which has multiple availability zones) has its own VPC. In theory these VPCs all use different portions of the private IP ...
3
votes
1answer
339 views

How to handle complex business logic permissions in the database?

I have a system in development and part of the system is how permissions are handled, business logic rules for this are very complex so after lots of trials, we couldn't fit them directly in the ...
1
vote
3answers
391 views

Do adapters get only called by usecases?

Suppose we have a layered architecture like onion architecture or clean architecture with three modules representing each layer: domain.py usecase.py databaseadapter.py The domain layer contains the ...
6
votes
6answers
533 views

How is design using C different from C++?

A employer is looking for C programmers, and I'm told they say that ... Good C design isn't the same as good C++ design ... and so they're looking for candidates experienced with C and not only C++. ...
2
votes
1answer
120 views

What architecture/design pattern for sharing data between several people, without centralization?

Let's say my software lets you place a square on the map and say "This is a good place to find Pokemon". I need this data to go to my gym leader's map, and to my friend's copy of Pokemon Go (...
1
vote
1answer
116 views

Pipeline design pattern and immutability

I'm developing a backend service that is supposed to process items in a pipeline-fashion. Each stage is essentially a Function<IN, OUT>. So the current stage's input is the previous stage's ...
0
votes
0answers
41 views

Architecture pattern for website service that automatically generates Bootstrap templates

I am working on a web app that will automatically generate Bootstrap sites given a bounded set of parameters. I need help with regards to architectural decisions, as over time, I have made very naive ...
1
vote
2answers
225 views

How do atomic updates work at scale?

I am working on a weird ID system where I generate all the IDs in advance and need to atomically pop() one from the database, so no ID is read twice at the same time (and so used more than once). This ...
3
votes
1answer
146 views

Where should complicated queries be in the Repository, Domain Service, or App Service?

We have a complicated query in Entity Framework which filters on the grandchild and selects parent attribute. Our current architecture goes from Data Entity --> Domain --> Dto Would this kind of ...
0
votes
3answers
135 views

How to choose between these different options for communicating between objects?

I have a few objects that should communicate between each other. I also want to have my code unit tested. I am questioning how I should handle their communication: Should I make one instantiate the ...
0
votes
0answers
83 views

Is Repository Project useful in C#?

Our company is against the Generic Repository and Unit of Work in C#, which makes sense. Since Entity Framework Core already completes those functions. However, I'm reading articles that a Repository ...
1
vote
1answer
108 views

Where to place the business logic for an external application that is tightly coupled with an internal application and how to adapt the architecture?

I and a colleague had a rather strange discussion with our boss related to the architecture of the applications we are currently developing. The C4 (second level) diagram of the existing architecture ...
2
votes
1answer
89 views

Converter implementation in Python: class versus module?

I've written a little library that uses the builtin ast library to convert between functions, docstrings, argparse .add_argument, classes, and [soon] more. Stubs look something like this, with ir ...
0
votes
0answers
36 views

Decouple presentation agnostic parts of the composition root from the application's entry point

Disclaimer: The technology I had in mind when thinking about and formulating this was .NET Core MVC. I was also thinking about using e.g. Simple Injector to integrate with .NET Core. That way, I don't ...
1
vote
2answers
197 views

Remove all side-effects from business logic

I'm looking for feedback for a design pattern that aims to remove all side-effects from business logic. I'm using PHP but the pattern can be applied to any OOP language. The point is to enforce pure ...

1 2
3
4 5
61