Skip to main content

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
-4 votes
0 answers
38 views

Architecture for AI-like dictionary definition search in database of dictionary definitions? [closed]

What is the general approach for implementing NLP/AI-like search against a database of dictionary definitions in multiple languages? Say I have 20 languages (from Sanskrit, Chinese, Hebrew, to Turkish,...
Lance's user avatar
  • 2,605
-3 votes
0 answers
44 views

Confusion regarding content in pictures for branching micro-operation [closed]

Picture 1 About branching micro-operation. Picture 2 Reference architecture for micro-operations. Confusion: MAR <- IR (address) & DR <- PC (Both micro-operations can be performed in ...
Amar Singh Sidhu's user avatar
1 vote
1 answer
81 views

Need help on Clean Architecture with Service/Manager/Controller

I am developing an Android application trying to comply with Uncle Bob's clean architecture. User interface has a text and a button. Button triggers a usecase (TextToSpeechUseCase) from viewmodel. ...
iAmTryingToBeAnAndroidDev's user avatar
1 vote
3 answers
135 views

How to tackle synchronizing large amounts of data across services in an efficient way?

I am working at a retailer with a deep catalog of products and we are taking stock of our architecture. Currently, we use microservices, but all product information goes to a service that is getting ...
SeeIfIDont's user avatar
-3 votes
0 answers
54 views

How to architect/design an "achievement" system in, for example, a web shop [closed]

Imagine you have a webshop page with its own database, but you also want to add the feature that the user gets achievements for certain actions, e.g. first buy, buy 10 items, buy an item in discount, ...
Manuelarte's user avatar
0 votes
3 answers
177 views

Adding a CLI to a Windows service

I have a Windows service that I would like to extend and add a CLI to it similar to docker or Elastic Agent, so I have a question about what kind of approach I should use for the *.exe to communicate ...
t3chb0t's user avatar
  • 2,580
1 vote
1 answer
142 views

REST API with swappable backends

What would be the best way to have a single REST API but with multiple "backends" (Not sure if this is the correct terminology)? Currently we have a basket/cart API that handles product ...
gsck's user avatar
  • 137
11 votes
7 answers
4k views

How to maintain dependencies shared among microservices?

There is a dependency jar containing tons of service classes mostly used to retrieve data from database, and this jar is used among several different micro services in one cluster. There is a big ...
Rui's user avatar
  • 1,865
1 vote
2 answers
257 views

How to Handle Large File Uploads in Angular and Hibernate Without Exceeding HTTP Request Size Limit?

Description I am working on an application using Angular (front-end) and Hibernate (back-end). My use case involves uploading multiple images, which I convert to base64 format and send as JSON with ...
Alejandro Corral's user avatar
1 vote
1 answer
87 views

Is providing a method of a domain entity with a data/ service provider object a bad design?

I have an entity called User, and it has a method to change the user's email address. I'm using a strongly typed object for representing the email address. public class User: BaseEntity { // Some ...
Critical Failure- Core Dumped's user avatar
-4 votes
1 answer
122 views

Architecture of a scientific software [closed]

First things first, I was not sure it was the right place to seek advice and feedback about software architecture, but this post on meta.stackexchange conviced me to do so. I hope my question finds an ...
Nicolas C.'s user avatar
0 votes
2 answers
151 views

Is it a good idea to have a fork of a library's public repo in my solution?

My company's project uses an open source library, of which I have made a fork for some customizations. My idea is to clone this fork into my solution and to keep pushing my changes into it, as well as ...
Frank Z.'s user avatar
3 votes
2 answers
143 views

Simplifying model interface while using diff undo-redo?

Introduction & context I am working (hobby) on a CAD/CAM (mostly CAM) solution. It is a desktop application in C++, Qt, OpenGL, JavaScript and CMake. General Undo/Redo strategies Most desktop ...
Adrian Maire's user avatar
-2 votes
1 answer
107 views

What are the CPU architectures for the most common general purpose devices (i.e., Android, Windows/Linux PC, RaspberryPi etc.)? [closed]

Wikipedia lists over 45 different Instruction Set Architectures. I would bet that most of those are listed for legacy purposes, but I barely have any knowledge on the subject (I'm not even sure if ...
Fabio Freitas's user avatar
-2 votes
2 answers
164 views

When should I think about two databases (the first for reads, the second for writes) in CQRS?

I am not asking what are advantages of two databases - the first for reads and the second for writes. I am asking WHEN I should have two databases for reads and writes? Probably there is no simple ...
Aleksander Chelpski's user avatar
1 vote
4 answers
226 views

How to decide between keeping data within the code or in a database

As an example, we have an entity called Invoice which has bills of purchased services. public class Invoice { private readonly List<Bill> _serviceBills; public string InvoiceId { get; } ...
Critical Failure- Core Dumped's user avatar
-1 votes
0 answers
29 views

What approaches from the PNPM package manager are unnecessary to implement for a new programming language from scratch?

I asked this question about PNPM architecture internals a while back, PNPM is the latest rendition of a Node.js package manager which solves a lot of the pain points of Yarn and NPM, but has to hack ...
Lance's user avatar
  • 2,605
3 votes
4 answers
359 views

Encryption of PII data in database logic in store procedures and desktop application [closed]

I have an old desktop application (Delphi) with logic in stored procedures (Oracle). The application is storing some personal data including salaries. I want to encrypt data so someone with db access ...
cargt3's user avatar
  • 39
0 votes
1 answer
125 views

How to model two bounded contexts with tight coupling between them

Context Hello, at my company we have been working with DDD for some time now. We have a monolith and some services. The bounded contexts in the monolith use HTTP calls to communicate between them or ...
Antonio Gamiz Delgado's user avatar
0 votes
3 answers
240 views

Backend to client communication: WebSocket or Message Queue?

I have a hobby project, for simplicity imagine a poker game, consisting of a backend (Spring) and a client application (Flutter) where the client can join rooms in which he can take a seat. The client ...
mvi's user avatar
  • 9
1 vote
1 answer
122 views

Do you re-include system headers in the implementation files?

Here's a scenario: suppose you have #include <unordered_map> in the header and you don't declare it anywhere in the implementation file but you use it, maybe mp[whatever] = some; should you re-...
user129393192's user avatar
-3 votes
1 answer
111 views

Is it a bad idea to use NodeJS + Python for back end development?

I'm working on a platform that consumes and transforms data to make reports and visualize those reports in a client app. The team has experience with NodeJS and NestJS, and some of us have experience ...
Mats's user avatar
  • 1
0 votes
0 answers
60 views

How handle foreign keys in bounded contexts inside a monolith?

in my company we have a Django monolithic application. To be clear, we are not looking into moving to micro-services. For the past few months, I have reading and implementing a DDD architecture inside ...
Antonio Gamiz Delgado's user avatar
0 votes
1 answer
82 views

Referencing objects created during seeding by ID

I'm building a software that allows users to extract analytics from a data source. A subset of data periodically is extracted from the data source and stored in a separate database for ease of access (...
Marceli Wac's user avatar
1 vote
1 answer
269 views

How small is too small for a library or package?

Background I came across this question about whether few big libraries, or many small libraries is better. I tend to agree with the accepted answer, that many small libraries is better. However, since ...
Tyler's user avatar
  • 31
0 votes
2 answers
192 views

Advice for database design and approach

I ask this to learn from experienced DB designers/architects. I need a high-level overview, I'm not interested in the specific tools for now. Rather, I'd like opinions on how you would approach this ...
terauser's user avatar
0 votes
2 answers
120 views

What is a good architecture / design pattern for giving multiple shared attributes in different combinations?

I have a need for many different objects to have various combinations of attributes. For a demonstrative example, a flaming dog would have a dog attribute, a flame attribute, and a tail attribute, ...
Fred Etingen's user avatar
-2 votes
2 answers
241 views

Avoiding `.env` in revision control while still being able to open source on a whim

From the 12-factors, III Config: A litmus test for whether an app has all config correctly factored out of the code is whether the codebase could be made open source at any moment, without ...
nicholaswmin's user avatar
  • 1,905
0 votes
1 answer
140 views

Is it good practice for object APIs to be required to be called in sequence to gather information?

I had this discussion with someone and it ended ambiguously. Suppose you have a class that needs to Parse a file to gather some information. It can expose this information to you after the fact. ...
user129393192's user avatar
10 votes
8 answers
6k views

What is the advantage of log file rotation based on file size?

I understand that log file rotation is changing the log file you used when (1) one gets big enough or (2) at EOD, but I'm not sure I understand the reason for (1). I have never had any issues with ...
user129393192's user avatar
4 votes
4 answers
2k views

Does the signature of a method create a dependency between the implementation of that method, and the code that invokes it?

I am reading Ousterhout's A Philosophy of Software Design. In Section 2.3, Outserhout writes: The signature of a method creates a dependency between the implementation of that method and the code ...
user3899725's user avatar
-1 votes
1 answer
50 views

Ensuring unique indexes on nosql datastores [closed]

I am building a User Service. User would be able to register with emailId or phone no. Upon successful registration, they can choose a username (which should be unique) It is easy to do on SQL ...
best wishes's user avatar
0 votes
1 answer
65 views

Designing a restful API for a desktop application to facilitate communication with other APIs

Just for some context, I am a CS student in my second-year who is working on a C++ desktop application (using the Qt framework) made by an engineering professor. The application is an educational tool ...
Johnny's user avatar
  • 1
0 votes
1 answer
72 views

How to architect an in-app search solution that accounts for access to data?

I have a lot of data that I would like to enable end-users to search on. I plan to use ElasticSearch (but am open to other technologies). This would also be an AWS native solution. For simplicity, let'...
alex's user avatar
  • 101
0 votes
1 answer
155 views

Architecture to show real time Google Calendar data (without polling) on a client

I have a Flutter app with a Firebase Firestore database. I want to integrate my app with Google Calendar, and I need the app to have real-time access to the calendar data. Moreover, my app needs to ...
Anakhand's user avatar
  • 149
1 vote
1 answer
69 views

How to reuse parts of a Trie data structure (like a Trie DAG)?

I am playing around with a cross-language spell-check sort of thing, and am still in the prototyping/ideation phases. Basically I have thought of something like a Trie data structure, but I keep ...
Lance's user avatar
  • 2,605
0 votes
0 answers
49 views

Distributed caching system that scales and enables real-time UI updates?

I have a NextJS app for which I want to cache data from our backend APIs to reduce the load when we have high volumes of concurrent users scrolling through (or search) years-worth of historical data. ...
xeno9's user avatar
  • 9
0 votes
0 answers
37 views

Separation of Students and Users in NestJS Microservice architecture

I need help with the architecture pattern I should use in a NestJS project. So I am using a command/query approach for developing my RestAPIs. Right now it's a Monolith and not a microservice ...
Shantanu Tomar's user avatar
0 votes
2 answers
149 views

Allow-Rendering-Prevent-Download Architecture

I am trying to devise a simple system that, with the use of tokens, allows a specific file to be rendered in the client's browser, yet prevents the user agent from being able to download the file. ...
oldboy's user avatar
  • 103
5 votes
1 answer
801 views

What is the difference between Hexagonal Architecture and Anti Corruption Layer Pattern?

I tried searching the web but can't understand the difference/boundary between hexagonal(ports and adapter) architecture and ACL Pattern. While hexagonal architecture talks about creating ports(...
iAmLearning's user avatar
0 votes
1 answer
51 views

Where to store config when using a external binary in a web service?

I'm making a vpn service that can be controlled through admin web page. So I have a web page that consists of front-end page and a backend API + DB. In this admin web page, I can execute a vpn binary ...
Guest-01's user avatar
  • 121
1 vote
2 answers
274 views

Combining Command and Visitor design patterns

Designing the architecture of a personal project, I've come up with the idea of using the combination of these two patterns to solve an architectural issue. In an MVC context, I need to implement ...
Gareg's user avatar
  • 21
1 vote
3 answers
201 views

What aspects of system architecture are relevant to a Product Manager who wants to learn about it?

I have been asked to give a 45 minute talk on my team's system architecture to an incoming product manager (PM). Well, this PM's "mentor" highly recommended asking for one. I'm comfortable ...
Andrew Cheong's user avatar
0 votes
1 answer
51 views

Ideal design for reusing data across different environments

We have 3 subscriptions in our Azure management group: DEV, TEST & PROD We use Azure Maps to get weather insights data via some Databricks jobs In order to roll things off quickly, we replicated ...
HelmBurger's user avatar
0 votes
3 answers
142 views

Events data ownership in microservices

Imagin I have two microservices that need to send email to a customer about some important account realted things that happened. For example, Billing service would like to send an email when a card ...
Michael's user avatar
  • 147
0 votes
2 answers
179 views

Fault tolerance in aggregated distributed state

I have a scheduling system that is horizontally scaled, and stores shared state in a redis key. The purpose of the system is to implement something similar to classic rate limiting, but a bit ...
NadavShmayo's user avatar
0 votes
2 answers
190 views

Source Control Design for Proprietary Logic which includes Obfuscation

Problem: There are proprietary algorithms that developers who are actively working on a project will need to call but they should not see the underlying logic. They need to be stored in an area of ...
Rudazzle's user avatar
  • 111
6 votes
2 answers
4k views

How to easily avoid circular dependencies

In a legacy project's service layer, there are tens of service classes and among them there is one service, UtilityService using 2 other services: class UtilityService{ private UserService ...
Rui's user avatar
  • 1,865
1 vote
2 answers
173 views

Synchronize data between old on premise application and new cloud system

Scenario/Context There is an old monolithic desktop application (running locally) which uses ODBC to connect to SQL database (on premise). This desktop application should be replaced with a new web ...
Malte G's user avatar
  • 119
-3 votes
1 answer
163 views

How should I architect a cricket scoring app?

Cricket scoring is complex and I want to build an app in part to practice good design principles/patterns and develop a clean solution. A few high level classes I have in mind are: Match | Innings | ...
zadane's user avatar
  • 397

1
2 3 4 5
71