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
1answer
49 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 ...
0
votes
1answer
88 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
0answers
28 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 ...
-6
votes
0answers
56 views

How connect with a platform without API? [closed]

I know some systems called ATS that offers posting your jobs in many other sites like indeed, many of these sites not has an API, how the ATS publish in this sites? Also these sites obtain the data of ...
-4
votes
1answer
135 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
76 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 ...
0
votes
1answer
71 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 ...
-1
votes
0answers
21 views

Patterns for updates for other rows on a create of entity for an user?

Consider an entity that can have multiple rows for each user and it has a property that should be true for only one row for a given user. I am on the NoSQL database (AWS DynamoDB) On my service layer -...
2
votes
1answer
104 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
135 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
113 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
57 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 ...
-2
votes
0answers
15 views

Periodic jobs in express api

I want some advice about project structure and architecture. Context: I've been looking into building a news aggregate; postgres->expressjs+typescript->React (at this scope). For the moment I'm ...
0
votes
1answer
58 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 ...
-6
votes
1answer
98 views

Which software architecture style can be applied for sequential execution problem? [closed]

I have a problem scenario in which a list containing activities to be performed is prepared before hand for future execution. Activities in the list need to be executed sequentially. The activities ...
-2
votes
2answers
82 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
249 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 ...
1
vote
3answers
211 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
28 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
76 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 ...
2
votes
1answer
109 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
35 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
20 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
207 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
344 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 ...
5
votes
6answers
408 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
103 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
73 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
15 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
159 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
134 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
128 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
78 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
votes
0answers
30 views

How to let SaaS clients use their own domain in my application?

We recently developed an application and went through the hassle of dynamic subdomain provisioning, and we finally had it working. Now a lot of our users are asking us if they can use their own domain ...
1
vote
1answer
64 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
81 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 ...
-4
votes
0answers
48 views

Creating a browser within a browser with WebGL

I have taken a strong interest in WebGL over the last few days and have a few questions around it. I recently realised the canvas in Figma (https://www.figma.com/) uses WebGL, and Lucidchart uses ...
-5
votes
0answers
29 views

How would I setup this website/e-commerce architecture?

I hope you can give me a couple of advice in how to setup the following in a good way. I currently have some thoughts but need your help to guide me. I'm doing some research for a new project. It will ...
0
votes
0answers
32 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
175 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 ...
0
votes
1answer
59 views

Gracefully handling failures in sequence of requests

I am designing architecture for service like pastebin.com. I plan to store user data on S3 storage and metadata with my own server.SO whenever user requests for some paste creation there are two steps ...
3
votes
1answer
144 views

Business logic on the client side of a modern web app

If we look at the typical software architecture guide, it will have the domain layer, application services, and UI, where domain layer contains the business logic. This is a nice clean separation ...
0
votes
0answers
46 views

Is queue is the right choice for server request retries

I have server A that received millions of requests per day and for every request it notifies server B about it. sometimes server B is down (maintenance, bugs etc..) so requests from server A got lost. ...
-2
votes
0answers
24 views

Handling authorization in layered architectures

I'm trying to learn more about software architecture design patterns, but I'm having some problems with repeating patterns across my application. I will use JS to describe my issue in code ( sorry ...
0
votes
1answer
50 views

Architecture Layers - Interface project at the top

We have structured our application with typical layers. UI, Database access, services, Helpers etc. However, at the very top we have a project called "Interfaces" which contains the ...
-2
votes
2answers
67 views

Inter-microservice communication with gRPC without hard-coding service endpoints

I'm building a microservices architecture that requires microservices to communicate with each other. Searching Google has led me to believe that gRPC is the preferred method for achieving this. ...
0
votes
1answer
58 views

Design review for a Cache aside system

I am maintaining a system where a list of string ids are stored against a container (using the term here as a generic entity) object. The database used is MySQL and the table structure looks like this....
0
votes
0answers
25 views

How to integrate App package into web and desktop apps using Typescript and React?

I'm building an application that will be served via browser and on desktop via ElectronJS. I'm using Typescript and React. I have separated the whole app in the following packages: ui: it has all the ...
1
vote
1answer
107 views

client-server API architecture

Premise: Language/Framework: C# / .NET + Core I provide a desktop, multi-platform client-server API for HW control related purposes. The "Server" is communicating with multiple HW components....

1
2 3 4 5
59