Questions tagged [architectural-patterns]
An architectural pattern is a general reusable solution related to the high level structure of software systems. For reusable solutions having a more specific scope (e.g. individual classes/components and their interactions), prefer the tag 'design-patterns'.
431 questions
2
votes
3
answers
327
views
Should I use namespace imports or named imports for my services?
I'm refactoring a express backend and dividing everything into controller, service and repository.
I find that using:
import * as UserService from "./userService";
let {user} = await ...
0
votes
1
answer
251
views
How should I implement System Design patterns in general and when to use these patterns in every aspect?
I have been learning a lot of new things lately, DevOps, Cloud Computing, Monitoring, and Security. I have been facing my problems dead on, but System Design seems to be a bit complicated. I have ...
1
vote
2
answers
191
views
Should unused user-uploaded resources (e.g. images) be deleted from storage?
An example web application X allows its clients to upload various resources, e.g. images. These uploaded resources can also be removed by the user at a later time.
My question is this: what are the ...
4
votes
4
answers
255
views
How to structure dependent, cached property evaluation without coupling data and logic?
I am building a desktop application that performs ship stability and hydrostatics simulations by using a 3D model designed by the user in a CAD program, using that program's API. When simulation is ...
0
votes
1
answer
268
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 ...
2
votes
2
answers
192
views
Architecture for shared UI components in a large frontend monorepo
I’m working on a very large frontend project organized as a single monorepository.
We have a components/ directory that contains 30+ shared UI components. These components are used across a large ...
3
votes
3
answers
2k
views
Undo/Redo with Command Pattern and Object Destruction
I'm developing a Command Pattern with Undo/Redo support. The environment is Unity C# but should be mostly language-agnostic.
My initial commands comprise of adding and removing objects to and from a ...
2
votes
1
answer
294
views
How should domain models be designed — rich domain models with encapsulated logic vs. anemic models with separate service/util layers?
I'm learning Domain-Driven Design (DDD) and studying different architecture patterns, and I’ve come across two seemingly conflicting design philosophies around domain modeling.
1. Rich Domain Model ...
3
votes
0
answers
155
views
How to implement introspection of user-defined data in my software renderer
I am in the process of writing my own software renderer. I am currently working on setting up a shader system that allows users of the renderer to create their own Vertex Shader and Fragment Shader. ...
1
vote
1
answer
105
views
Patterns for background apps using system tray and dialogs
I've had reasons to design an application that should 1) run in the background to show status and notifications, with 2) dialogs showing details and configuring the app through more powerful widgets. ...
0
votes
1
answer
151
views
Should board class handle LEDs/alarms when entering Maintenance mode, or should this be handled externally via events?
I'm designing a system that manages multiple hardware boards. Each board has a class that provides core functionality, such as:
Device enumeration
Capability enumeration (power management, polling, ...
1
vote
3
answers
227
views
Ensuring proper initialization order in event-driven C++ applications
I'm working on a C++ system where I have a concept of a "Board" object. Each board can have services attached (e.g. UpdateService, LoggingService, etc.).
I'm trying to design how these ...
0
votes
2
answers
363
views
Relationship between monolithic architecture and n-tier
I am confused about the relationship between monolithic and n-tier architecture (I have only analyzed 1, 2, 3 levels and tiers).
Since n-tier architecture divides the application into logical layers (...
5
votes
2
answers
2k
views
In a python project, when should you use __init__.py, __main__.py, and just normal .py?
Say I am making a pdf editor app with the following structure:
├── main.py
├── 📂 drawing_functions/
├── 📂 util/
├── 📂 GUI/
└── 📂 document_handling/
Each of these folders have a collection of ...
1
vote
4
answers
276
views
Can we consider each microservice as a “small monolith” application? [closed]
I'm just getting started with software architectural patterns.
I first analyzed the difference between monolithic architecture and microservice architecture and I had a doubt.
Below I report the ...