Questions tagged [strategy]
A strategy is a general approach used to achieve goals, to address similar needs, or to solve a family of issues.
86 questions
3 votes
2 answers
561 views
What is the difference between Leaky bucket and Token bucket approach during rate limiting?
I am researching rate limiting and encountered those two strategies: leaky bucket and token bucket. After reading several articles these strategies seem the same too me, but all articles are ...
0 votes
1 answer
234 views
How to effectively bootstrap SQL database with millions of records, when you are almost guaranteed to make mistakes?
I am playing with a side project which, for purposes of this question, is a multi-language dictionary, including 100+ languages, each with 100k+ entries, where each entry can have 1-5+ pronunciations, ...
1 vote
2 answers
154 views
Integration testing strategy for a volatile domain
Imagine following scenario: Our team is working on a mobile project in biometrics. The team delivers a client facing SDK. Our work relies on another internal team, that is delivering algorithms in a ...
2 votes
2 answers
196 views
Proving two XML schema's are functionally equivalent
I work for a standards organization that publishes an exchange standard using XSD files. These XSD files are being generated from a model with a tool, and now we want to change to a new tool. Because ...
2 votes
3 answers
1k views
Is my git branch strategy best practice?
We are a small software team with 6 members. We are working on different software projects in our company. Before I joined the team no version control system was used. It was/is my task to reorganize ...
1 vote
1 answer
3k views
Branching strategy for developing multiple features at the same time
We are doing a mobile app development and currently, we have Dev - UAT - Staging - Main branches. We branch from the Main branch as feature/fA for feature development. We do our development in that ...
1 vote
2 answers
237 views
How can I enable user data sovereignty in a B2B SaaS application?
We develop a SaaS solution that processes customer ERP data and provides analyses from it in a front-end. The software is a standard solution and should require as little customization as possible for ...
0 votes
2 answers
439 views
Coffee machine strategy pattern implementation
I came across an article about LSP https://stackify.com/solid-design-liskov-substitution-principle/ . It seems that a strategy pattern could be implemented here but I cannot see how to implement it. ...
-3 votes
1 answer
343 views
Combining Strategies (Design Patterns) [closed]
If I have two boolean variables B1 and B2 whose value combinations cover four independent behavior functions (MFF, MFT, MTF, MTT), then how many concrete strategy (design pattern) classes should I ...
2 votes
1 answer
257 views
How to implement Gang of Four's Lexi's Compositor-Composition?
I'm studying Design Patterns book and I was trying to understand the Composition principle in Lexi's Compositor-Composition as explained in figure 2.5, as well as how to implement it. Where the ...
0 votes
3 answers
148 views
Strategy & Architectural Decision: Customer data migration between two companies
Asked this originally here, and didn't receive any answer so far, hence posting here too. Let's say company A acquired company B in a certain region. This means, A and B were competitors in that ...
-4 votes
5 answers
3k views
Disadvantage of the strategy pattern and how to overcome it
An often quoted disadvantage of the strategy pattern is: The application must be aware of all the strategies to select the right one for the right situation Why is this a disadvantage and what can ...
7 votes
2 answers
479 views
The "real and effective" GIT CI/CD strategy
I've started in this new company a few weeks ago, this is the CTO CI strategy: Current: Developer team has the repo prod/master and they merge everything into master (no branching strategy). Once the ...
0 votes
1 answer
1k views
Discount calculation pattern
I am implementing a discount calculation model. One item PER order. I do have a Product class: public class Product { public string Name { get; set; } public Size Size { get; set; } public ...
2 votes
3 answers
1k views
Reconciling MVC with a strategy pattern
I am working on a Rails application which employs a classic MVC as its fundamental structure. In that structure the controller is supposed to be responsible for "which view to render when". Now after ...