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
1answer
25 views

Design approach where to persist autocompletion suggestions

I am currently planning a movie recommendation application. Within this context, the user can fill out a form including different information (e.g. title, description, etc.). The new entry gets then ...
0
votes
0answers
23 views

Different Modules with the same Package

I'm working on a Java project that has several modules and each of them have identical package names inside. Module UnitTest contains a package com.srt.liberman that contains a Class ProcessorTest ...
3
votes
4answers
212 views

Do I have LocalDTOs? If yes, what is a good approach to keep encapsulation of the domain model?

LocalDTO term refers to Fowler's article. Say I have a domain entity Person: public class Person { private String id; private String name; private int age; } This entity has its own ...
4
votes
1answer
115 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
84 views

Should micro services follow HTTP verbs precisely?

I'm concerned with the practices on my team regarding following REST and HTTP verbs precisely. For example, when we hit a get endpoint for a resource/resources that doesn't exist, we return a 404. ...
0
votes
1answer
103 views

Application settings in relational database

There is an application of ours which has some experimental features. We want to enable it when user wants to enable. So they will change it in the UI and we are saving those to DB. So we added those ...
-3
votes
1answer
79 views

Disk Based Java Map Implementation on top of MongoDB? [closed]

Currently, I am working on a system (a hotel automation software) that loads all the data on its startup from the MongoDB to the Java Hashmap. While saving data it updates both the HashMap and the ...
1
vote
1answer
130 views

What is the MVVM way of loading images in list in Android?

Scenario: A very simple android app needed to be developed. It has just one screen with a list of items. Each item has a label and an icon. We fetch the item list from the server, and the server ...
-1
votes
0answers
58 views

Frequent simultaneous updates to Elasticsearch documents in soft real-time

I'm evaluating Apache Flink to run several jobs in order to create/update Elasticsearch documents. Basically, the data is received through several channels, usually Kafka topics. Every channel is ...
-1
votes
0answers
31 views

Efficient way to publish offline data to backend server

I am working on app that primarily used in offline condition. User generate data offline and later I schedule a periodic worker that sends the data to backend server My publishes looks like the ...
-3
votes
0answers
18 views

Need help to understand how to implement an architecture pattern on Laravel [closed]

I'm a new developer still on a beginner-amateur level studying for university. I've worked on some test projects using Laravel framework. From a coding perspective my skills are decent for my level ...
2
votes
1answer
214 views

Dynamic Object Abilities When Saving State

I have n classes that extends from a State class, the purpose of the State class is to manage the state of the extended classes. For each class we need to save it in the database, remove it and select ...
-1
votes
0answers
38 views

When to prefer PWA to Flutter? (Web App) [closed]

As all devs, we always try to deliver the best at the lowest cost. I don't know flutter very well but theoretically, it can host a PWA application giving the flexibility to tune the most complex ...
-1
votes
0answers
59 views

Clean Architecture - is it the front-end Controller responsibility to pass te Presenter in parameter to the Use Case Input port?

In a use cases–oriented architecture, such as Uncle Bob's Clean Architecture, if we do use a Presenter, should the front-end Controller (that already transmits the RequestModel to the IMyUseCase (via ...
2
votes
0answers
86 views

Cohesion and coupling possible combination in software

I know what we mean by cohesion and coupling in software. And generally the best practice is to achieve high cohesion with low coupling. It seems to me though that they are inter-related. I.e. you ...
0
votes
1answer
71 views

Managing multiple state machines interacting with each others in ES5 Javascript

I have multiple state machines (7) managed by a "main" function. Because of system constraint this will be run on an old qtweb browser with ES5/IE11-like behaviour. So no promises etc. I'm ...
2
votes
0answers
36 views

Software design for an Angular highlight&comment tool

We're building a new feature for an online editor that the user will not edit the document, but will be able to highlight & propose edits on the document. Very similar to google documents' ...
0
votes
2answers
247 views

Application Horizontal and Vertical Scaling

I'm hoping the experienced Java developers here can share some insight about this problem we have been trying to solve for so many months. We're currently building a Java web application that uses ...
3
votes
1answer
121 views

API Design for Error Handling

I'm working on a semi-complex web API, the high level design so far looks like this: |--------| |------------| |------------| | |--| | | | | core | | | | ...
0
votes
1answer
137 views

How to let backend APIs communicate with each other?

I'm building a complicated frontend-backend application of which both the frontend and backend should be highly scalable and reusable. To serve these two requirements, I'm splitting the backend into ...
7
votes
3answers
438 views

Functional architecture with lots of I/O

I'm learning about "Functional Core, Imperative Shell" as espoused by Gary Bernhardt in his talk about "Boundaries". In reality, it seems like these ideas have been known for a ...
22
votes
3answers
28k views

What exactly is a multi-tenant application?

According to the definition available online, "Multi-tenancy is an architecture in which a single instance of a software application serves multiple customers". It means I have a Restaurant ...
2
votes
3answers
422 views

OOP: Concerns about extensible design based on Interfaces

Introduction to my problem I'm trying to design a very simple video game where there are several Animals players (they all inherit from Animal): Cat Dog Rabbit There are also some performable ...
-1
votes
0answers
41 views

Is combining multiple event handlers the right approach for data scraping? [closed]

I have a scraper that is scraping over logs. Some logs have data that I want to process. If certain conditions are met I want to send the extracted data to a webserver. To separate concerns I went for ...
-1
votes
2answers
231 views

Make a monolithic architecture into something modular

Currently my architecture is a monolithic block that handles a really specific duty. Now it needs to be generalized. Right now it handles a request and all processes (1 or many) associated to it. ...
3
votes
1answer
299 views

Where should I implement Ports with Hexagonal Architecture?

I have been doing some research on the Hexagonal/Ports & Adapters architecture. For the most part, it makes a lot of sense. My initial understanding was that "Driver Ports" were to be implemented ...
32
votes
4answers
96k views

Distinction between API and frontend-backend

I'm trying to write a "standard" business website. By "standard", I mean this site runs the usual HTML5, CSS and JavaScript for the front-end, a back-end (to process stuff), and ...
3
votes
1answer
112 views

Command pattern and object model integration

In a document editor application, is it better to implement the command pattern as a layer on top of the object model, or to deeply integrate it into the object model? If commands are a layer on top, ...
3
votes
5answers
815 views

How to resolve cyclic dependencies in Event-driven systems?

Consider two services (bounded contexts by DDD): Sales Billing Sales is responsible for creating orders and Billing for handling payments. Sales tracks orders and Billing holds payments: Sales ...
0
votes
2answers
64 views

Integration pattern: API vs events

I need to design the architecture of a CRM "platform" that integrates 5-6 legacy CRMs. One important feature is to show customer records stored in other CRMs in one single dashboard. The ...
0
votes
1answer
77 views

Confusion in UML 2 state chart design for a CAN bus data logging sensor

I have the following requirement to design behavior of a software component for logging sensor, which writes data to SD card a: Datalogging sensor can write data to a FAT16-formatted SD card that is ...
0
votes
2answers
100 views

What is the difference between business capability and subdomain Decomposition in microservices?

I want to understand the difference between business capability and subdomain Decomposition for mircorservices. subdomain The subdomain decomposition corresponds to Domain-Driven Design (DDD) ...
-1
votes
2answers
3k views

CQRS and GraphQL

Context Domain I have a CQRS domain with requests, authorizers, handlers, response objects, entities, filters, pagination. It only depends on: external services (email, other APIs, etc...) a ...
13
votes
3answers
12k views

best way to install local package into docker image

I have a python package that I wrote and I want to use it within multiple docker builds. However, I can't just install my local package situated outside of Dockerfile folder. And I don't want to ...
-1
votes
2answers
130 views

Multiplayer game architecture, should clients also maintain a Players list locally?

I am creating a multiplayer game and was wondering if only the server knows about the actual players in the game, or is this list sent to the clients too? So for example the server knows about each ...
0
votes
1answer
82 views

SQL Foreign Key Relationships and External Data

I work for a company that wants an external system built outside of their core system. I can't share an SQL database, and can't store data in their database. So I am forced to maintain my own SQL ...
2
votes
1answer
171 views

Microservices: Is the Saga Pattern correctly applied here?

I'm trying to understand and learn how to build microservice messages the best and came up with this task for myself: Services given: Accounts Service Token Service Email Service When a user ...
0
votes
1answer
42 views

RESTful web APIs using MVVM architecture

As the title implies, I would like to know if it is possible to create RESTful web APIs using MVVM architecture? Or we can use just MVC pattern to create web APIs?
0
votes
2answers
374 views

What layer do third party API request/response models go in and what do you call them?

I have a RESTful API service that has three layers: Application/Domain, Infrastructure, and Presentation. Application/Domain contain my interfaces and models. I currently have three different types of ...
-2
votes
2answers
104 views

How widespread is the use of hexagonal architecture (ports and adapters architecture)? [closed]

We are discussing the adoption of hexagonal architecture (ports and adapters architecture) in our team. Sometimes I use the rate of adoption as one rough metric about how beneficial a certain practice ...
1
vote
2answers
161 views

Minimizing queries on a database

I am working with a large dataset (~5GB) stored in a Google BigQuery database. My goal is to create a web app which works a little bit like an Excel spreadsheet where users start off by seeing the ...
0
votes
1answer
700 views

What is the correct architecture for 4 MVVM synchronized collections related to groups and filters inside a WPF application?

I have a small architectural problem with MVVM. In this question I will note Model through M and ViewModel through VM. I have 4 collections that must be synchronized, and the items in them must have ...
3
votes
1answer
514 views

Microservices and Modular based front end

I'm a software developer, and the kind of developer we call "front end developer". I'm working on stuff like Angular JS, Angular 2 and others. I wanted to know how we can organize our front end code ...
2
votes
3answers
151 views

What methods are available to implement feature flags or "loadouts" for C++ projects?

I'm looking for a system to be able to configure my C++ project to compile some sections of codes and not others depending on what target hardware I'm compiling for. The area of development is ...
0
votes
2answers
176 views

Collect Data of different Modules inside a Monolith

During my first attempt of implementing a project with the "Clean Architecture" I try to implementation a job portal where I came across a problem concerning the communication between (...
0
votes
1answer
170 views

How can users be notified of changes during collaborative editing in a system like Google Docs?

"Designing Google Docs" is a popular system design interview question, and there are plenty of articles on it on the web. However, those mostly touch on merging changes, but don't explain ...
1
vote
0answers
54 views

System Design: Chat application in a distributed system context

I am currently working on a side project so I can learn new technologies and understand how the components fit together. For this project, I decided that I wanted to work on Chat Applications in the ...
1
vote
1answer
115 views

Component based architectures in JS / PHP: what indicators suggest that a UI element ought to be written as an importable component?

N.B. Several months after initially asking this question (and not coming up with any satisfactory answers) I am now learning to use HTML Custom Elements / WebComponents. It seems the same question ...
7
votes
1answer
4k views

Handle localization in microservices architecture

I'm developing a multi culture application with different microservices, The microservices communicate with each others with integrations event, so when a new record is inserted the owner of the data ...
4
votes
3answers
5k views

Designing a Feed and Notification system in MongoDB

I'm developing a NodeJS API that will be consumed, for now, by an Android app. I need 2 important things here: a News Feed and a Notification system. And I need it to be scalable. I'm using ...

1
2 3 4 5
65