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
votes
0answers
28 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
9 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
0answers
19 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 ...
-5
votes
1answer
75 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
70 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 ...
2
votes
3answers
190 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
1answer
77 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
27 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
60 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 ...
1
vote
0answers
61 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
34 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
16 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
119 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
326 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
315 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
95 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
votes
0answers
32 views

Approach for starting applications on remote computers [closed]

We have a simulator application that has multiple computers involved in the simulation. Some of these computers just display graphics and don't have a mouse/keyboard attached. Others the user ...
1
vote
1answer
69 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
14 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
150 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
128 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
124 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
75 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
29 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
61 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
0answers
58 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
46 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
28 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
174 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
136 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
45 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
22 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
45 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
66 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
22 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
103 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....
-3
votes
0answers
19 views

Designing Shopify-like Saas product in Elixir Phoenix

Ok, so I want to develop an ed tech Saas product that is similar to Shopify regarding features like every user having their own separate site (in Shopify it is a storefront). I have no idea where to ...
0
votes
2answers
66 views

Model for anonymous surveys preventing duplicate votes

I am working on an anonymous survey module in ERP-system and I am thinking if there is a common approach to implement such systems to make them "truly" (I do understand that there still will ...
0
votes
0answers
65 views

Is a lot of Wiring code a sign of over engineering or bad design?

We have a classic wpf line of business software at work. Put in a lot of data, save it, calculate some things, put out some useful data etc. Visually we have a dockable pane setup, like visual studio ...
-4
votes
0answers
49 views

Circular dependency between applications

Current architecture is as follows, Client application -> Rest Service "A1" in Application A -> GRPC service "B" Application B Now the GRPC service "B" in ...
0
votes
3answers
78 views

Sharing user related data in microservices

I'm having a problem choosing the right approach to sharing some user related data throughout my microservices-based application. Imagine the following scenario: Users microservice handles creation of ...
0
votes
0answers
21 views

Architecture for Data Pipeline (ETL) on GCP

I want to create a Data Pipeline on GCP, after a lot of research I decedide to use Pub/Sub to send the data and Dataflow (Apache Beam) to subscribe to that Topic in Pub/Sub and save the data in the ...
0
votes
1answer
61 views

Preferred architecture for tree stuctured data (Angular/Typescript)

After reading some of "Clean Architecture" I got the idea that perhaps I should reconsider the way I have architected a chart of accounts/accounts object in an accounting program. I have ...
-4
votes
1answer
93 views

Where on the 64bit memory of a PC would one byte end up?

I have a simple question I think. A typical pc with ram has a 64bit databus between the cpu and ram. Let's say the ram starts at address 0, and I write i byte to address 0. Now my question is, would ...
2
votes
1answer
46 views

How to store a branching linked list in a database

I am trying to model an HVAC system for simulation purposes, which will consist of a series of components linked together by airflow and electrical flow paths. I'm trying to figure out how to best ...
-2
votes
1answer
82 views

Trick or technique to allocating variables given only one “memory store”?

I have a problem where I am using a Uint32Array in JavaScript as a store: const store = new Uint32Array(1 << 16) I am going to use this store like a runtime environment. Basically, everything ...
1
vote
1answer
66 views

Should I deploy redundant SQL database servers in a cloud environment?

As a System Architect I need to deploy a resillient database server in an isolated private cloud. The cloud is OpenStack with Ceph backend and the Database is SQL. Is a single database server VM with ...

1
2 3 4 5
59