Questions tagged [design]
Questions about problem solving and planning for a solution through software design.
5,250 questions
5
votes
3
answers
348
views
When is multiple validation layers of protection necessary?
I'm having a hard time of understanding at what point is multiple layers of validation protection necessary rather than a single point of failure and if the performance hit is a concern
Lets say you ...
5
votes
3
answers
499
views
Reliability vs Fault Tolerance
I am confused with the following terms: Reliability and Fault Tolerance
According to Designing Data Intensive Applications book, the definition of Reliability is:
The system should continue to work ...
3
votes
2
answers
133
views
UML class diagram for RBAC. I don't know if the permissions and roles are properly set
I am trying to create a UML class diagram using RBAC. I am new to this language and trying to make sense of it. I am attempting to showcase permissions to specific roles. I am not sure whether that is ...
4
votes
4
answers
258
views
how can CQRS improve performence when we have to duplicate the writes
I was reading about CQRS, and from what I understand, it separates reading from writing by using two databases: one for queries (reading) and another for commands (writing). However, I don’t quite get ...
-1
votes
1
answer
158
views
Designing a third-party web solution [closed]
I'm building a third-party solution for web applications, which consists of:
A client-side library
A web server library
A third-party service
I'm getting blocked on some architecture decisions, ...
2
votes
0
answers
223
views
How to encapsulate functions inside a library
I'm working on a project that uses an in-house library, which is also used by other projects.
There are some classes and methods in other classes that are not used outside the library itself, is there ...
5
votes
4
answers
921
views
Is the SRP of SOLID (or any) principle relevant to the grouping of packages?
Specific example question:
I am writing multiple different software packages, in different repos, that each do different things. Many of these packages produce something that we want to visualise/plot....
2
votes
5
answers
253
views
Refactoring object of large set of properties
I have a class that looks like:
class Vehicle:
coordinates: GeoCoordinates
speed: float
rpm: float
egt: float
// 100+ other parameters
A repertoire of concrete classes that use ...
1
vote
1
answer
256
views
3rd party REST API calls in repository pattern
For a long time, I’ve been using Repository pattern to abstract data access logic from actual business logic, always using SQL or noSQL databases as my data source.
But how much valid is it, to ...
8
votes
9
answers
6k
views
Does it make sense to keep two different versions of code?
I am developing projects for my private use and have been wondering how I should design my projects. I always try to keep the code as efficient and concise as possible and as readable as possible. ...
0
votes
0
answers
63
views
Data duplication or async on-demand oriented communication on microservices
In our current microservice, we store the data that doesn't belong to us and we persist them all through external events. And we use these duplicate data (that doesn't belong to us) in our actual ...
1
vote
3
answers
322
views
Is Feeding a Watchdog Timer from an Interrupt Service Routine a Bad Practice?
In an embedded system, I require a watchdog to be able to pass ESD qualifications. Having no experience with watchdogs, I went through this Memfault article. I liked the events "registration"...
1
vote
1
answer
310
views
Does my code follow DDD principles?
I'm trying to model P2P crypto trading using DDD and I'm having trouble modeling the lifecycle of sell orders. Lifecycle:
Some trader-seller creates an order.
Some trader-buyer responds to it.
Buyer ...
4
votes
7
answers
2k
views
Should there be one-to-one relationship between DAOs and tables?
Should there be a one-to-one relationship between DAOs and tables? For example, should only one DAO communicate with a given table?
Our data layer is kind of flawed, e.g. we have a MAN table that ...
4
votes
2
answers
278
views
How to untangle bounded contexts after a team ownership reorganization?
This is inspired by Eric Evans' presentation about bounded contexts when doing Domain driven design.
In his presentation he presents a case where a bank has initially 2 teams that manage 2 bounded ...