All Questions

Filter by
Sorted by
Tagged with
-2 votes
0 answers
9 views

Configuration management with support for dynamic config changes in a distributed system

In a distributed system, what are the available options for configuration management of components in the system? The configuration management has following requirements. Ability to define configs ...
0 votes
0 answers
8 views

Preferred Authentication Mechanism for Microservice Architecture

I have been tasked with creating a new microservices architecture that needs to be scalable. I need advice from more experienced software architects. The main issue I am facing is how to handle ...
0 votes
3 answers
95 views

Are "Distributed Enums" an Anti-pattern in non-OOP like they seem to be considered in OOP?

I have recently read about the so-called "distributed enum anti-pattern." In particular, as it relates to using enums in conditional statements. (The idea is apparently that if you were to ...
0 votes
0 answers
19 views

Client or API Gateway to perform authentication on backend?

An system called X wants to consume APIs from the backend called Y. There's a definition from the Systems Architecture Team that states that every request from the X to Y must go through the corporate'...
  • 173
0 votes
1 answer
61 views

Decoupling modules of a monolith

As part of an migration from .NET Framework to .NET Core we're looking to decouple elements of our monolith into more manageable modules. Ideally following a clean architecture/DDD/microservice ...
  • 101
0 votes
1 answer
80 views

Architecture for storing generic data

(I am facing this issue with code written in Swift, but would appreciate any high-level pseudocode solution, just so that I may wrap my head around the architecture) I need to find an architecture ...
  • 117
0 votes
2 answers
50 views

Designing inter class tasking in c#

I'm looking for some advice/recomendations on structuring an application which involved multiple classes that need access to each other for the sole purpose of tasking (i.e. class A needs to pass ...
  • 101
0 votes
0 answers
14 views

OIDC/oAuth, should the federation service or the application itself "add" attributes/claims to the user?

I have a scenario where we use ADFS with OIDC. Once a user signs in the ticket thats "forwarded" down to our application contains some common attributes/claims regarding the user, such as ...
  • 221
0 votes
0 answers
66 views

What is the Best Practice for handling multiple Entities that behave identically?

Because I have multiple entities with unique fields, I need multiple repositories for each one even though each Entity will be handled exactly the same. What is the best way to handle these separate ...
  • 139
0 votes
1 answer
50 views

Should I extract my functions/types to new files in TypeScript?

Basically I have this class file which was getting quite large with functions and type definitions. Is it best practice to keep all the code that works on the same aspect in the same file for "...
  • 11
0 votes
0 answers
19 views

C# Azure Function Durable Function Vs Batch Timer Trigger Function

I have a question related to the best approach when resources are limited, such as on the Azure Function consumption plan. I have an IoT device, and the number of IoT devices is likely to increase to ...
-1 votes
0 answers
57 views

Designing a function in C with: single return, no gotos, no nested if-else [closed]

As there is no one unique solution to this problem, I'd like to ask if this implementation satisfies the standards of some other experienced programmers. I'm kind of intermediate level in C which ...
  • 1
-3 votes
0 answers
44 views

Have I developed the ER diagram correctly? [closed]

Assignment: "You work for an insurance company. Your task is to monitor its financial activities. The company has various branches throughout the country. Each branch is characterized by a name, ...
-1 votes
0 answers
47 views

Is the definition of response time different from os scheduling in real-time systems?

I couldn't find the right place to ask, so I'm asking you a question that's as relevant as possible. I'm learning the OS and the real-time system. The concept of "Response time" in ...
  • 1
0 votes
2 answers
132 views

It is okay to create an interface of interfaces?

Let me first describe the situation I have a component that uses dependency injection through a service locator. In the first scenario (image 1) the component needs a class that implements Interface0, ...
0 votes
0 answers
27 views

Redux Pattern in a distributed system?

I would love an opinion on system design in a distributed system that operates under the same domain. I have a bunch of microservices following the Database per Microservice pattern, and updated via ...
-3 votes
0 answers
24 views

What are some tips for creating effective dashboards and reports in JIRA? [closed]

I'm in my Third Year learning Software Engineering and I am playing around with the JIRA tool in my spare time. I noticed the variety of reports and dashboards available in JIRA and wanted to know any ...
  • 1
-2 votes
4 answers
182 views

How do I find a good balance in the number and sizes of pull requests I raise?

Background I've been working with a team of 6 for the last couple of months doing enterprise software development. About half the team is very new (2-6 months). We loosely follow Kanban and manage/...
-4 votes
0 answers
48 views

python celery with clean architecture

I am learning and trying to develop a python project using clean architecture. Following is the project structure as below: - proj/ - entities/ # contain entities eg User, user.py - usecases/ # ...
  • 1
0 votes
2 answers
131 views

Refactor chunks of code where variables from one chunk are used in others

What is a good pattern to refactor a chunk of code where you can identify smaller chunks, but the results of these smaller chunks are used in other chunks? An example should make things more clear. ...
  • 986
-2 votes
0 answers
71 views

Are there now 64-bit processors that deal with denorms routinely with no exception or interrupt? [closed]

Title says it all. Are there processors with FPUs that deal with denorms arithmetically correctly (don't assume they're zero nor flush them to zero) and don't cause an exception? I would be interested ...
0 votes
2 answers
82 views

Is it needed a unit of work with DDD?

Reading about DDD, i have read that it is needed to have a repository per each aggregate entity. For example, in an ordering system, I should have a repository for the order and another repository ...
-3 votes
1 answer
129 views

Will anything that's written in c/c++ be rerwritten in rust? [closed]

Will anything that's written in c/c++ be rerwritten in rust? for maintainance, even for performance?
0 votes
0 answers
29 views

Kafka : Is sending some payload data (identifier) in headers considered a good practive?

I am wondering about some architectonical decisions in our system. There are situations where we are sending import business events through kafka which should be performed in every case. All the cases ...
  • 1
1 vote
2 answers
76 views

Multi-tenant multi-region SaaS with per-customer subdomain

I am trying to figure out how to design SaaS system that offers subdomain per customer (e.g. <customer>.example.com), where each customer is on specific region. Due to compliance and regulation, ...
  • 159
1 vote
1 answer
43 views

How to improve this synchronous job execution design?

Here is the design step by step: User opens a webpage Inputs few details in the form Click submit Request goes to API server API server creates a pod in Kubernetes Pod executes a script and stores ...
0 votes
0 answers
30 views

How should external api calls in an electron application replaced in design structure?

In this scenario, my renderer process' goal would be to make an http request to an external web server and receive responses. My question is: which options below would be more secure, give a future ...
  • 9
0 votes
3 answers
130 views

Is it only for efficiency, running tests on macOS even if the app will never be deployed to macOS?

I'm using a MacBook at work. Per company policy, no other devices are allowed. I am developing a Go application, the production environment is Linux and will be Linux only. But I run tests locally to ...
  • 11
0 votes
1 answer
48 views

Secondary indexes vs Using elastic search

When does it make sense to put data in elastic search vs creating secondary indexing on Primary datastore? Elastic search with another primary store Pros: Primary datastore can be optimised for read ...
0 votes
3 answers
78 views

A very basic doubt about who should to start an action in DDD (domain-driven design)

When I read about DDD, it is always said that is is about behaviours, said in another way, actions than can be perform. My doubt it is who should to start the actions. Supose I have a bounded context (...
0 votes
1 answer
64 views

Is it safe to make training data and labels as global variables in C?

I'm trying to make this function called walk in C. The idea is that the function takes as parameters a point in space (represented by an array), a function (pointer), and a step size / learning rate ...
1 vote
3 answers
114 views

Is layered architecture style inherently monolithic?

Overall cost and simplicity are the primary strengths of the layered architecture style. Being monolithic in nature, layered architectures don’t have the complexities associated with distributed ...
1 vote
5 answers
328 views

Why do many programming languages lack standard vector types?

Many languages such as C or even C++ or C# or Java have no natively supported vector (SIMD) types or functionality. In such languages, one would have to either use non-standard extensions or third-...
0 votes
2 answers
84 views

Is it a good/bad practice for a service to send events to itself via an external queue?

Imagine there is an Order entity that has a lot of states and conditional transitions between them. At the moment it is stored in a relational DB. There are multiple consumers of Orders that perform a ...
  • 307
-2 votes
0 answers
29 views

Dockerization; licenses of dependencies MIT, GPLv2 [closed]

I created a program with two dependencies DepA and DepB. DepA is published under GNU GENERAL PUBLIC LICENSE Version 2, June 1991 and is called as an external program DepB is published under MIT ...
-1 votes
1 answer
117 views

Avoid use of the visitor pattern in this very common scenario

Let's assume we need to send a message, and to do so we would like our client to be concerned only with constructing the message (DTO) and using a facade service to send it. We already know that we ...
  • 109
0 votes
0 answers
28 views

Enabling file editing on a file stored on a server through custom routes and POST/GET Requests

I am creating a platform which allows multiple users to edit a file simultaneously and I was wondering if using a web server with routes could be the correct architecture for this goal. I am trying to ...
  • 103
-3 votes
0 answers
27 views

Devices and device drivers [closed]

I'm no electronic engineer, but I feel I should be able to get at least a conceptual understanding of how software and hardware components work together to process i/o. The mouse seemed a simple place ...
  • 95
0 votes
0 answers
43 views

Multithreaded processing of single REST requests

Background: We're prodiving an API that provides information about all users within a given group. Our API is a high level fascade over another low-level REST API. To gather those information we first ...
  • 203
-3 votes
0 answers
44 views

System to pay for parking spot [closed]

0 I'm using mobile app to pauy for my parking spot, It works like that: I click: start parking, then every 15 min it charges me (takes money from my prepaid account) and when I'm out of money or paid ...
  • 111
0 votes
1 answer
47 views

How to manage inter team communication while working on same feature in microservice architecture?

We are a team of around 60 software engineers divided into almost 6 teams. We are working on an ecommerce project and following microservice architecture. Each team is responsible for their own ...
0 votes
0 answers
78 views

How to scale WhatsApp clone to +1 billion users using Kafka? [closed]

I am studying system design and currently thinking through the details of a Kafka-based system that supports instant messaging like WhatsApp. Consider the following design: Each user is connected to ...
  • 21
9 votes
5 answers
2k views

How do you fix the wrong-case-sensitivity dictionary setting bug-pattern?

There is a coding anti-pattern I've noticed (while using .Net). You declare a data class, which is supposed to have a dictionary field (or get/set Property), and lets call it 'Properties', for the ...
0 votes
1 answer
42 views

How to improve a monthly usage quota system for an API with growing number of users?

Couple of years ago, I designed an API service which has a limit on the number of requests per month per user. To track the monthly usage of each user, I used a table called monthly_usage. The table ...
0 votes
1 answer
81 views

How to simplify mortgage calculation?

I'm working on standard mortgage calculator feature where user can set some values with sliders or by typing and instantly see all the values. Nothing fancy. But it's not that easy as I thought it to ...
  • 101
-2 votes
0 answers
41 views

Is there a term for an algorithm that cancels a previous async operations upon receiving a new async operation? [closed]

I'm looking for a short term for a very simple concept when upon receiving a new async routine/process/task, the previously running one gets cancelled/aborted, thus the last one is always prioritized. ...
  • 105
1 vote
2 answers
89 views

Wrapping Business Logic In Extension Methods For POCOs

I have recently stumbled upon a use case of extension methods and wanted to gather some design thoughts. The problem: A IEnumerable of a POCO and within that list there should exist a POCO that ...
-1 votes
0 answers
27 views

Creating a big Vue 3 project with Vite and Typescript [closed]

I'm creating a vue projet with vite and typescript. I'm expecting to create some library of component and some others with only reusable utils and functions. I would like to know what are the best way ...
  • 1
0 votes
1 answer
55 views

Handling IO operations through a server and building the UI using a separate framework/application

I am trying to build a file editor, and I wanted to build the UI using Flutter. However I wanted to implement IO operations (reading a file, applying changes, etc) in Rust. The reason I would like to ...
  • 103
-3 votes
0 answers
38 views

Re-architecturing our software component [closed]

We have a single Java component which reads messages from multiple sources, REST, kafka, files and ingest them and saves them into cassandra. The component also hands over the messages to processing ...
  • 95

15 30 50 per page
1
2 3 4 5
1246