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.
3,638 questions
1
vote
3
answers
386
views
UML Sequence Diagram: User interaction with a nested Form Component vs Page container
I have a Next.js application where a Page (page.tsx) renders a nested Form Component (AddStaff.tsx). When a user fills out the form and clicks 'Submit', who is the direct actor in a Sequence Diagram?
...
-1
votes
2
answers
110
views
Best Practices for Secure Web App Admin Console
Query:
For a Web app using React/NextJS/Supabase, hosted on Vercel, what design pattern follows architectural and security best practices when designing an admin console? The console must serve as a ...
2
votes
2
answers
323
views
UML Use Case Diagram: Should different external APIs be modeled as separate actors? [duplicate]
I’m modeling a use case diagram for a real estate search application.
In my system, I use two different external services for geolocation features:
OpenStreetMap (used in the frontend to display maps)
...
-1
votes
0
answers
53
views
Node.js worker pools & NUMA: Balancing numactl compute binding with NAS first-touch data locality in a distributed scheduler
Background
I am building DFPS 2.0 (Distributed File Processing System), a distributed job orchestration engine written in Node.js. The system has two coordinator layers:
Main Coordinator (MC) — ...
2
votes
2
answers
255
views
Ideas on how to implement a simple and performant conveyor belt system for a 2D automation game?
Im trying to make a simple 2d automation/factory game, and was wondering on how to design my conveyor belt system. I want it to be simple as possible.
My current idea is to organize every connected ...
3
votes
1
answer
113
views
Architectural patterns for multiplexing multi-protocol TCP and routing connectionless UDP behind a strict single-IP NAT
Context and Problem Statement
I am designing a routing architecture for a bare-metal edge host residing behind a restrictive NAT router (a single public IPv4 address). This scenario is common in ...
0
votes
2
answers
265
views
How to catch up with a fast evolving codebase with AI First Software development?
After a couple of months using AI tools for programming, and improving how to do it, I started feeling a bit left behind in my codebase. Hence came back to Stackoverflow :)
Like I manage to do a half ...
10
votes
6
answers
1k
views
What are the key architectural differences between microservices and modular monoliths, and when should each be used?
What is the difference in design (architecture) between microservices and modular monoliths?
1
vote
3
answers
585
views
How Messengers like Telegram handles big chats
I would like to ask a genuine question about how real-world apps like Telegram can handle big chats (they have 200k users per chat limit). Why am I asking?
Components
MessageApi - for simplicity, ...
0
votes
3
answers
145
views
Proper way to handle \n and string termination in a C multi-threaded TCP server using recv
I am developing a multi-threaded TCP server in C for a simple tris game. I am using pthread to handle multiple clients. When a client sends a command like "CREATE" or "JOIN", I use ...
0
votes
3
answers
205
views
User input validation: which app layer should do it? [duplicate]
Which application layer(s) should be responsible for user input validation? I think there are two schools of thought:
The frontend should make no assumptions as to what constitutes valid data, the ...
0
votes
1
answer
238
views
Why are modern AI systems (like Gemini or Claude Code) still using UUIDv4 instead of the more index-friendly UUIDv7 for chat messages? [closed]
Given that these AI tools often handle massive streams of messages and require low-latency retrieval for long context windows, why isn't UUIDv7 the "default" choice in their public APIs?
Is ...
2
votes
2
answers
191
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 ...
0
votes
1
answer
246
views
Does modern isolation techniques help reduce contention for highly contended counter updates?
We maintain counters in a relational database where each incoming request increments or decrements a counter, subject to a maximum limit.
Throughput is 300 requests per second, and many (or all) ...
3
votes
3
answers
220
views
Data modelling for multi-dimensional data
Entities -
Offer entity - is discount, start and endTime.
id - offer_id
discount - 50
startTime - 1731921333
endTime - 17391888313
Payment method - A bunch of prepaid payment options for purchase, e....