Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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
3 votes
4 answers
212 views

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

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
-5 votes
0 answers
31 views

How to share code base in Node.js server with multiples tenants and custom functionalities [closed]

I have web application node.js + vue.js. It currently has 2 tenants for each client and in future potentially there will be more clients and tenants. Each tenant has customized some functionalities on ...
cargt4's user avatar
  • 9
0 votes
1 answer
73 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
-3 votes
1 answer
42 views

Software design with operation on time interval [closed]

I have a question about some design patterns or modelling archtypes that for sure are widely used but I'm not sure where to look for good solutions and designs. I will describe the problem using well ...
Snorlax's user avatar
  • 111
0 votes
3 answers
91 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
104 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
92 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
45 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
73 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
246 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
166 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
104 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
223 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,883
0 votes
1 answer
123 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
9 votes
8 answers
6k views

What is the advantage of log file rotation?

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
46 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
57 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
70 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
134 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
62 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,611
0 votes
0 answers
45 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
32 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
146 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
728 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
45 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
2 votes
2 answers
217 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
  • 23
1 vote
3 answers
178 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
48 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
131 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
172 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
184 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
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,699
0 votes
2 answers
125 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
  • 109
-3 votes
1 answer
146 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
  • 387
1 vote
1 answer
95 views

Deterministic behavior using RTOS with preemption

Consider an application with a fixed amount of tasks computation per cycle (let's say 100ms) that's usually done with manual scheduling. With 100 sub-cycles of 1ms, knowing and cutting each ...
iFlo's user avatar
  • 119
0 votes
2 answers
83 views

How-to concept: Recognize features of an image and draw against

Might be silly, but I'm looking for a way to programmatically enrich images of vehicles with some technical, length measurements. Images will always: have a white background have the same angle (side ...
single_thread's user avatar
0 votes
1 answer
68 views

What will the best way to manage access to the app projects Git repositories with shared service classes within one solution?

I have been programming in C#/.Net and other languages as a hobby for over 6 years, so I do not have adequate knowledge about application architecture, hence my request for advice. The current ...
bakunet's user avatar
  • 103
0 votes
0 answers
86 views

How can I better design systems and components in ECS?

I'm working on a game from scratch in C++ which is based on an Entity Component System and I've ran into a bit of a problem with the way I've been designing my systems and components. I find myself ...
Konjointed's user avatar
0 votes
1 answer
88 views

Independent micro services or merging micro services together

I am trying to understand when does it make sense to have independent layers versus merging layers together. For example, let's say there is a wallet service where you can keep money in separate ...
best wishes's user avatar
2 votes
2 answers
511 views

Is this architecture overkill? What is a good way to architect this software?

I have an algorithm I am trying to implement that has steps 1 to 5. There are several different ways I could implement each step. Each calculation step is essentially just an astronomy calculation, ...
Hunter's user avatar
  • 187
1 vote
1 answer
128 views

Best Approach for Implementing User Watch Time Tracking

I am currently developing a feature for my web application that tracks the amount of time a user spends on a specific page. Our backend is built with Django, and the frontend is using React and ...
scaryhamid's user avatar
0 votes
1 answer
79 views

architecture design: In Pub Sub, how are publishing and subscription servers connected?

I was reading Google's Architectural overview of Pub/Sub and I was curious how publisher and subscription servers were connected. From what I understand: When a message is published, it is stored, ...
Thomas's user avatar
  • 129
1 vote
2 answers
164 views

Using Fargate (serverless compute) to replace leadership election

I currently have a solution that requires leadership election for HA. It processes files as they arrive in an SFTP server, and Subscribe to an Active MQ feed; and therefore we don't want multiple ...
simonalexander2005's user avatar
1 vote
1 answer
130 views

App that can be deployed both as monolith and microservices?

We have a monolith C++ application and I consider doing some major refactorings. Since we're not completely ready to go full "microservices only" (maybe in about two years time), I want to ...
glades's user avatar
  • 419
1 vote
3 answers
165 views

In domain-driven design, what is the relationship between the business functions of a system and the subdomains?

Suppose an organization is developing an enterprise assistance and management platform with instant messaging, video conferencing, file cloud, online documentation, process approval, and more. The ...
Ares's user avatar
  • 39
-2 votes
1 answer
126 views

Success Metrics of system that is time-based

We have a internal system (lets call it system B) that responds "No" as a response to a request from external-facing system (lets call system A) based on elapse of 48 hours from earlier ...
learningMyWayThru's user avatar
0 votes
0 answers
27 views

Sharing data through multiple environments (dev/test/stage/prod) for one usecase

I am looking for a concept that handles the needs of some data to be distributed in several environments (lets say we have dev, test, stage and prod). Example: We are setting up planned outages of ...
libik's user avatar
  • 320
5 votes
5 answers
2k views

How to think when grouping functionality into modules

What are some commonly used strategies when it comes to divide software into modules, other than there should not be any cyclic dependency between any modules? Some ways I think of Group everything ...
user877329's user avatar
1 vote
1 answer
133 views

Should domain services in a domain-driven design invoke the data warehouse interface?

From what I've read, domain services typically don't import or rely on Repository directly in theory,The responsibilities of domain services focus on handling business logic and coordinating ...
Ares's user avatar
  • 39

1
2 3 4 5
71