All Questions
61,435
questions
-3
votes
0
answers
50
views
What does Kubernetes/Docker solve compared to PAAS like Azure Web Apps and Azure SQL?
What does Kubernetes/Docker solve compared PAAS (Platform as a Service)?
I'm not sure how this compared to other stacks, but I am on the C#/Azure stack.
I'm pretty sure the same is valid for the AWS ...
0
votes
0
answers
24
views
Windows 10 IoT - Embedded Subvision System Deployment
I developed a supervision system for machines that use an industrial PC with Windows 10 IoT. To protect and limit the use of the OS, I use UWF and Kiosk mode (Shell mode), but the configuration is ...
-1
votes
4
answers
121
views
How can I ensure same code formatting across IDE?
We are a small team contributing to our startup project, on a daily basis the code changes and multiple PR are raised daily. The general issue we face while reviewing these PRs is the code formatting ...
17
votes
5
answers
3k
views
What Semantic Version increment to use for a filename change?
I have a program that runs on command-line, let's call it myprogram 1.0.1. It's published on GitHub.
Now I discovered that name already exist for a well-know software, so I want to change the name ...
2
votes
3
answers
165
views
Static types and dependencies in trunk-based development
There're certain things in code that can't be conditional. Two very common examples:
static types
dependencies.
You can't naturally enable/disable a feature that implies a new dependency or a new ...
-3
votes
0
answers
37
views
Simple elevator algorithm that also accepts incoming requests [duplicate]
I need to implement a simple system that models the functioning of a single elevator. Now, I am aware of the SCAN algorithm (also called "elevator algorithm") and how it works, but I ...
0
votes
0
answers
72
views
What are the risks of not migrating Winform app from .NET 4.6.1 [closed]
We have a winforms app that has been developed inhouse is currently used by about a team of 20 people. It will never be used by anyone else and is installed locally on their Windows 10 machine and ...
1
vote
1
answer
110
views
The notion of configurable strategies
I'm designing an algorithm that matches entries based on some notion of "proximity" (for the sake of discussion, assume we're matching floats). Furthermore:
The input is a scalar and a ...
-4
votes
0
answers
46
views
What do you wish you did at the beginning to build a sharded system? [closed]
What do you wish you did differently when building a high scalable system? From day 1?
Background:
I am studying system design of large and complicated systems at the scale of Facebook, Instagram and ...
0
votes
2
answers
121
views
Writing tests for API that results depends on table with millions of rows
I think my problem is very common but I couldn't phrase it correctly in the title.
I have a Django API that returns some information about companies (like address, partners, situation, etc) given its ...
0
votes
0
answers
20
views
react native responsive styling for web and desktop
React Native doesn't provide a way to create responsive styling like in css with media queries. This is quite a huge problem when sharing react native code with react native web (and react native for ...
0
votes
1
answer
101
views
Doubt about DDD, entity core and backing field
I was reading the documentation about how to use Entity Core in a DDD way. This is the documentation.
It is said that I can configure EF to can map an internal private field to a private field, the ...
-1
votes
2
answers
111
views
REST API vs upserts and "updeletes"
I am building an API that (I am deliberately simplifying the schema below to only focus on what is questionable):
I have a table that roughly looks like this:
CREATE TABLE IF NOT EXISTS some_table
(
...
-3
votes
0
answers
82
views
Using a hybrid watermarking/fingerprinting approach for identifying GPS geolocation data [closed]
Our backend is made up of thousands of micro-services. My team deals with and owns geolocation data for our entire backend ecosystem. We get different types of geolocation data from customers: GPS, ...
0
votes
0
answers
36
views
Separating Typeorm Entities from Domain Entities [duplicate]
Is it a bad approach to add domain logic inside typeorm entities if following the domain model pattern to organize business logic.
import { Entity, PrimaryGeneratedColumn, Column } from "typeorm&...
2
votes
0
answers
65
views
How to define the data model in an event-based infrastructure
After my team went all-out on the microservice paradigm with an emphasis on message passing, I'm having trouble defining and keeping track of all the events in the system.
I've read some guides on the ...
0
votes
0
answers
27
views
Is the combination of Image Classification and numerical data useful and possible with ML.Net?
Up front, this is my first ever question on StackExchange. So please be gentle with me. It is also my first time working with Machine Learning and ML.Net which means that I'm lacking fundamental ...
-1
votes
0
answers
31
views
Name of stub technique that uses a table for each combination of arguments in the test suite
The first paragraph on this page talks about how building stubs for units that perform complex tasks may not be feasible, and that stub construction could be simplified in such cases by limiting the ...
4
votes
3
answers
1k
views
Error or not error?
I need to implement the following scenarios at the server:
User sent too many answers in a given amount of time, for example, it can't submit more than 3 posts within an hour.
User sent answer with ...
0
votes
0
answers
10
views
Android clean architecture - RemoteMediator with multiple api dependencies and data sources
From the docs, a RemoteMediator used for pagination can have dependency on:
Api Service
Database
Consider the case when you are paginating a list of items, say a list of books for which you have a ...
0
votes
2
answers
58
views
Personal AES keys storage idea not working reason
I went through different ideas about storing AES key for encrypting database columns, I learnt that there are the possible solutions:
put the key in the database
find a Key Management Service to help ...
-3
votes
1
answer
62
views
What difference is there, if any, between a KPI and an SLI? [closed]
We are revisiting how we do observability at my organisation, and I'm reading about Service Level Indicators (SLIs) as a way of measuring how our systems are performing. But what I'm struggling to ...
-3
votes
1
answer
117
views
Is DDD needed in full stack development?
I am a full stack developer who's been learning about Domain-Driven Design in the past couple of days, so I have some question since I have trouble finding place for this pattern in my applications.
I ...
7
votes
7
answers
703
views
Fighting the half-life of code
I am building a small application that supports a research project. My goal is to make the code to be painlessly executable and readable on as many operating systems as long as possible.
My reasoning ...
0
votes
1
answer
71
views
Best Way to name derived classes when extending its functionality C# [closed]
I have just recently joined a new company and One of the classes used to log information has not been written properly. So i have been asked to add new functionality to the logger. So rather than ...
22
votes
11
answers
8k
views
How much time should you spend planning a commit before writing code?
At the moment I'm spending more time planning out a commit than actually writing code when adding a new feature. Less than two hours would be lucky, and sometimes I'd spend a good part of the day ...
0
votes
1
answer
57
views
Difference between Resolvers and Controllers?
I may be overthinking it, but are controllers and resolvers the same thing in web applications? Coming from the MERN stack, everyone used to call these request processing functions "controllers,&...
4
votes
4
answers
363
views
Do Lambdas(AWS) stop making sense after a certain number of functions?
I am working on a project and created multiple lambda functions and now I am thinking about whether I made the correct decision to go this route.
Reasons I chose lambda:
The App will have spiky ...
2
votes
1
answer
83
views
Granularity of API Gateways to Service Balancers
OSS API Gateways typically come bundled with built-in load-balancing capabilities. We see this with Netflix Zuul and Kong.
In a service-oriented architecture, where many microservices are talking to ...
1
vote
3
answers
73
views
Multi type HTML dropdown conversion to the corresponding C# object type
Note: This is a contrived example I came up with to illustrate what I'm after as simply as possible.
I have an HTML report with a single dropdown box at the top that lets the user select (or filter) ...
-2
votes
1
answer
39
views
I have several user stories which will be provided by a new application, where do I detail setting up the new application itself? [duplicate]
We have a feature like "new command-line query tool" and stories like:
As a user, I can do X
As a user, I can do Y
As a user, I can do Z
Where/how do I detail "create the test harness ...
0
votes
0
answers
11
views
Elegant way to go about navigating between components in React
I'm busy creating a navigation flow on the startup page in a SPA, and I'm experimenting with different methods of going about navigating between components.
Here's an image to give you an idea of the ...
4
votes
1
answer
86
views
Service discovery and load balancers with high-frequency health checks
I am trying to understand the advantages of service discovery compared to load-balancing within the context of a microservice mesh where many instances/nodes/VMs/containers of many web services are ...
1
vote
2
answers
58
views
Modules Design and Communication Between Them
I'm trying to design a monolithic application following DDD and clean code. Lets say I have Users, User Types, Products, Product Types and Purchases. I want to implement using different modules.
At ...
-2
votes
3
answers
108
views
Should I do dependency inversion on the same layer level
I'm working on an accounting service. I have to generate invoice for a user and upload it to the file storage. So my service would have to use a service from file storage team. File storage service ...
0
votes
2
answers
75
views
Publish-subscribe inside a single application
I've been using the publish-subscribe pattern for a while for communicating devices and it works really well, making it easy to add extra services without touching the rest. I'm thinking of using it ...
1
vote
0
answers
50
views
Business rule or repository implementation rule in Clean Architecture
I'm studying Clean Architecture with python and got into this "problem" of choosing where to implement a rule (that I considered a Business Rule, maybe I'm wrong)
I have 2 Entities
@...
3
votes
1
answer
125
views
Should repositories return self persisting entities?
In domain driven design
A repository is a collection like "interface" that hides data source access. It furnish add, remove and retrieval method just like a collection would. It does it ...
-2
votes
2
answers
69
views
How to filter and concatenate multiple sql files into one database [closed]
I have an issue where I have multiple databases from previous projects that I would like to combine into one large database. These databases are stored in .sql files. The issue is that I only need ...
0
votes
0
answers
36
views
DDD - Recommended practice for validating commands against entity state?
I have this scenario (simplified for demonstration purposes):
Business entity:
public class Entity : AggregateRoot, IEntity
{
public Guid Id { get; }
public EntityStatus Status { get; } // ...
-3
votes
0
answers
30
views
Serverless architecture for an enterprise app [duplicate]
excited to be here. I'm trying to get some thoughts around serverless architecture that seems to be popular lately. I'm building a new SaaS solution and trying to decide whether serverless is ...
2
votes
3
answers
193
views
Are repositories async?
Repositories in ddd should give the illusion of an in memory
collection.
and
A Repository is essentially a facade for persistence that uses
Collection style semantics (Add, Update, Remove) to supply ...
1
vote
3
answers
96
views
In DDD: is the domain who decides when to persist the data?
I am reading about DDD and in the examples it is common to see how the domain gets the data from database, do the business logic and then persist the data. For example to update a field:
class ...
0
votes
1
answer
42
views
DDD: Service role vs Repository
Context
I'm giving a try at my first backend API which aim to follow some Domain Driven Architecture concepts that I've learned from an implementation in Go in a Udemy course.
The problem is that I ...
0
votes
0
answers
24
views
In Laravel, how do you handle a resource being managed differently depending on a user role while using policies?
I find myself in a situation where I have two roles, "Admin" and a "Organizer". The "Admin" accesses the AdminUserController to update users, while the "Organizer&...
0
votes
0
answers
51
views
How does Spring boot and Postgres handle the concurrent updates?
I want to understand how does Spring Boot and Postgresql DB handle the concurrent requests for updating a value in DB. Consider this example of facebook likes, if there are multiple instances of ...
1
vote
2
answers
63
views
Domain Driven Design - Aggregate Root and Nested Aggregate Invariants
I've come to a bit of an impasse with the best way to implement a DDD problem, and am hoping for some advice from those with more experience, please.
I have a RecipeCollection, which has a collection ...
1
vote
1
answer
33
views
In a C4 container diagram, should I draw my event message broker or can I define direct relations?
I have a C4 container diagram of a system, in which most of the components communicate with MQTT. The MQTT container is SOUP. Is it necessary that I draw the MQTT container or can I simply draw direct ...
2
votes
2
answers
130
views
High level 'implementation' of a use case in a layered/DDD architecture
I am trying to understand layered architectures and apply some DDD fundamentals to improve my architecture. I am finding that determining "what" an application service actually is, what its ...
0
votes
1
answer
68
views
Handling a numerical value that may be specific or a range in a REST API
Let's say I have a REST API that needs to return the width of an object, but that width may either be a specific value or a range of values. What would be the best practice for designing the API to ...