32,173 questions
Advice
0
votes
3
replies
41
views
Where should a beginner start with System Design and Pattern Recognition?
I am a software developer and I’m starting to learn System Design and Pattern Recognition concepts.
I want to understand:
how to approach system design problems step by step.
what fundamentals I ...
Best practices
1
vote
2
replies
78
views
Is it best practice to pass the JWT token from the API Gateway and build the SecurityContext in each microservice?
I started working on a new project based on a microservices architecture. The requirement is to access user details on every request across all microservices in order to validate certain conditions ...
Best practices
0
votes
0
replies
74
views
Design pattern for keeping two mutable object views in sync
I have been working on a game engine and have come upon a design that is challenging for me to implement. In particular, I need two mutable objects, that themselves contain mutable properties, to ...
Best practices
0
votes
2
replies
29
views
Team scale - define architectural principles for project
I want to enforce team to follow architectural standards for new project.
Once architectural standards in place, during code push in gitlab, if the standards are violated then it will notify us.
What ...
Best practices
0
votes
5
replies
97
views
Best practices for architecting a Go CLI with ~100 commands and many flags, how to organize commands/flags?
I'm designing a CLI tool in Go that will expose roughly 100 commands. Each command has its own set of flags, and there are also several global flags. My main goals are maintainability, testability, ...
-3
votes
1
answer
35
views
What to do for context with multiple families of strategy pattern [closed]
most examples show a single context with a single family of strategy, but what is the correct design for a context with multiple separate families of strategy e.g.
setValidationStrategy(...
Best practices
0
votes
0
replies
56
views
Is it Adapter or Strategy? I find it hard to differentiate it sometimes
Imagine you have an app that must ‘draw’ shapes based on the shape’s name and color.
You are asked to support different ways of ‘drawing’ the shape using that name and color. For example, drawing to ...
0
votes
1
answer
66
views
How to use WTForms (.py package) to present information from database and modify it? [closed]
Context: I am trying to build a web application to manage employee information cards. So you can click on an employee card and view information like name, age, department etc. and then also modify the ...
Advice
0
votes
3
replies
60
views
How to make Super Admin logic
i am building a restaurant management system in MERN stack for my internship. i have a problem on how to implement the super admin logic where he can do everything what other employee can do with ...
Best practices
0
votes
1
replies
53
views
How should I use redis client in Nuxt
I'm trying to use redis in my Nuxt app. But I'm not sure what's the best practice to use it. Such as where should I create the redis client, how should I share the redis client instance.
I tried the ...
1
vote
1
answer
82
views
Implementation of the (modular) visitor design pattern
I am creating a QueryBuilder, so I though that it w'd be amazing to serialize objects to tokens, and have an AST within the QueryBuilder. So I immediatly though about the Visitor Design Pattern.
Here'...
Advice
1
vote
0
replies
45
views
What is the best pattern for triggering N sub-workflows in parallel and resuming main workflow when all complete?
I need to trigger a dynamic number of sub-workflows in parallel (around 100)
and wait for ALL of them to complete before continuing the main workflow.
I’ve implemented a solution but I’m wondering if ...
Best practices
0
votes
1
replies
59
views
Efficient designs to handle different kinds of request from a client in a server
I'm making a program where a server listens for requests from a client. My problem arises when the client sends a request and the server has to determine which kind of request it is in order to handle ...
0
votes
1
answer
135
views
How can I implement consistent typed error propagation in C# without scattering try/catch across layers?
I have a C# application with multiple layers (controllers, services, domain logic, and background workers). Error handling has become inconsistent because many methods contain their own try/catch ...
Best practices
0
votes
0
replies
58
views
What's the best practice of distributed transaction implementation for java/spring based service
I am going to try to implement such thing and thinking about the best practice. Of caurse I know about some patterns like SAGA with transaction outbox but I never used it in practice. Is there any ...