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
47 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
1answer
392 views

Architecture to share logic across MPA and SPA applications

What in your opinion is good practice to handle the case where I want to have re-usable and shared logic that collects and returns my data from the database? For example I have Multi Page ...
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 ...
3
votes
2answers
602 views

Why using ViewModel when using also Repository?

I read this guide about recommended app architecture for Android. Here is a graphical summery: The role of ViewModel is clear, but I don't understand why we need it if we use Repository. The purpose ...
2
votes
2answers
6k views

How To Design Time Slot Based App

I have got a responsibility of designing an app which allocates time slots for doctors booking. The scenario is like, there'll be entry for doctors and their time slot for each days. For E.g. ...
1
vote
2answers
382 views

What does it mean for two components to be connected?

It is my impression that in software engineering, a connection can mean many things depending on context and the level of abstraction at which some system is considered. I'm surprised no one has asked ...
-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 ...
-1
votes
4answers
121 views

Why use grid in frontend project for frontend project?

I am working on the architecture of a new website. I am confused about whether I use grid (like Sussy grid or Bootstrap grid) for my project or not. As I have worked on some websites in the past and ...
-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....
1
vote
1answer
247 views

Azure Service Fabric - Designing a Calculation Engine

Suppose I have the following devices: Device A Device B Device C (...) Also, for each device, I have the following measurements: Measurement 1 Measurement 2 (...) Each measurement event includes a ...
3
votes
1answer
155 views

How to keep inter-service authorization maintainable?

In our environment (as in many others), it is often the case that one microservice must call another in order to accomplish a task. In our environment, authentication is clear enough - we have a ...
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
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
vote
3answers
630 views

Where to apply multi-tenant logic (ASP.Net Core)?

I'm developing a multi-teant SaaS application in ASP.NET core mvc and I was wondering what the general approach is to applying tenant logic in a shared database scenario (TenantId for each entity). ...
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 ...
0
votes
1answer
134 views

Integrating with real-time data from multiple devices with accelerometer

I am designing a MVP for a simple gamification system for a trampoline park(s). External company is providing bracelets for customers, then collecting this data in their own web app, where they ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
-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 -...
-1
votes
1answer
164 views

Data propagation across components

I frequently have relatively contained components (services) that do specialized things. These are also almost always immutable to make changing them less error prone. Note the below is within one ...
8
votes
2answers
1k views

“Implementing DDD” by Vernon: value object or not?

On page 382 of this book there is a passage talking about using value objects in aggregates, under the (entity) root. There is an example of Product that, besides other values, contains a Set<...
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 ...
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 ...
3
votes
1answer
86 views

Separation of concerns and other best practices across Controllers, Services, Providers and Stores in ASP.NET when building a REST web api

I am traditionally a desktop app developer, but circumstance has thrust me into the role of doing web client and corresponding REST api logic for a project I am involved in. Unfortunately, I'm a one-...
-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 ...
-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 ...
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 ...
-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 ...
0
votes
1answer
204 views

Android project, clean architecture and modular approach

I have this project with MVVM and clean architecture well implemented but I've decided to split it into modules. Right now I have: apimodule apimodule: with the retrofit dependencies app: with the ...
13
votes
4answers
14k views

Are there advantages to hard-coding data values into a program?

I'm a self-taught, novice-ish coder, so I apologize if I don't nail the programmer lingo. I'm working on a project in which I am providing data, which will be continually updated, to developers who ...
0
votes
1answer
95 views

How do you name “*_statuses” for multipe tables so that there'll be some pattern in the names of the statuses?

I have the following entities in database that have a corresponding table "entityN_statuses" associated with each of them: * products * refunds * payments * users * etc... The &...
1
vote
1answer
67 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 ...
2
votes
1answer
53 views

ReactJS with Elasticsearch App Architecture

I want some advice regarding my architecture and hosting options. I'm attempting to build an e-commerce site for e-books. It will use nestJS for the backend and ReactJS+Typescript for the frontend. ...
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
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 ...
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
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 ...
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 (...
0
votes
2answers
95 views

Event Carried State Transfer and initial state synchronization

I'm exploring Event Carried State Transfer patter, I understand how it works, but there is one problem I don't know how to solve. So, in ECST, a service can listen to events and then build a private ...
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 ...
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 ...
2
votes
3answers
10k views

Making all angular services extend a single base service

In Typescript/Angular 6 (2+), is it considered a good practice to have a base abstract http service from which derives all the application services? for example: //import the angular Http ...etc ...

1
2 3 4 5
59