Questions tagged [design]
Questions about problem solving and planning for a solution through software design.
5,268 questions
-1
votes
1
answer
157
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
170
views
Where to initialize clients in C server?
I’m writing a multiplayer server in C using sockets and pthreads.
The project is separated by responsibility:
server.c/.h → networking (socket, bind, listen, accept, thread creation)
player.c/.h → ...
1
vote
1
answer
226
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 ...
2
votes
1
answer
261
views
Is it okay to mix OOP and modular approaches when building a backend with TypeScript/JavaScript?
I’m designing a backend in TypeScript (could also apply to JavaScript), and I’m wondering about the architectural approach.
Is it better to stick to a single paradigm (e.g., fully object-oriented or ...
0
votes
2
answers
93
views
How can I efficiently handle click events and sequentially related operations (like user–URL deactivation) in a scalable URL shortener?
I am learning backend development by building a simple URL shortener project. My goal is to learn backend concepts and try to do things in simple but better ways, keeping scalability and reliability ...
2
votes
3
answers
259
views
Single or multiple use cases for alternative actions in the same flow?
I’m modeling a use case diagram for an online marketplace system.
In one of my use cases, the seller can perform three different actions:
Accept an offer → closes the negotiation,
Reject an offer → ...
3
votes
3
answers
359
views
How do you abstract a platform library like SDL from the graphics api?
I'm creating a basic 3D game in C++ with SDL2 and OpenGL3, and one of my learning goals for this project is to design my code around the ability to swap out SDL or OpenGL. However, the problem I'm ...
6
votes
5
answers
3k
views
System Design for low latency reliable online chess game
I want to build a low-latency chess backend (something similar to live chess on chess.com or basically any other online real-time chess), but there are a couple of questions I am unable to get answers ...
1
vote
2
answers
269
views
How to Handle Data Persistence In Domain Driven Design
I am currently reading about domain-driven design and n-tier architecture with a service layer, and comparing them to try to understand how each architecture is executed.
For n-tiers (specifically 3-...
6
votes
6
answers
870
views
Good way to represent connectivity between nodes of tree (outside of tree hierarchy)?
I have a set of data carrier objects represented using vertices in a strict tree hierarchy. I also have the following requirements:
some vertices should be "linked" to other vertices ...
1
vote
3
answers
141
views
How should we design an IoT platform that handles dynamic device schemas and time-series ingestion at scale (100K writes/min)? [closed]
We��re a small dev team (3 full-stack web devs + 1 mobile dev) working on a B2B IoT monitoring platform for an industrial energy component manufacturer. Think: batteries, inverters, chargers. We have 3 ...
2
votes
3
answers
298
views
Design Question - Storing timeseries in a key-value store
I'm looking for a sanity check my thinking around the memory layout of a key-value store.
We have a system that periodically polls and monitors on host-level jobs. On every poll, a given job emit can ...
0
votes
0
answers
62
views
Extending a complex codebase without breaking things [duplicate]
I have to extend a complex piece software and I wonder if I should make the changes directly "where they belong", or if I should try to not touch existing stuff and "plug-in" the ...
2
votes
2
answers
208
views
How to Build a Polite, Per-Domain Rate-Limited Web Crawler with Airflow and Celery?
I'm designing a "polite" web crawler using Airflow with the Celery Executor, PostgreSQL for metadata and actual content used by the crawler, and Redis as the Celery broker. My goal is to ...
1
vote
4
answers
591
views
How can I get started on refactoring my code base?
https://github.com/Darkroman/PK-Battle-Simulator/
Over some time I made a fully working (text based) Pokemon Battle Simulator in C++ as I was learning the language on my off time. At the moment I have ...