All Questions

Filter by
Sorted by
Tagged with
2
votes
3answers
240 views

Is it best practice to always try to return a minimum number of rows from the database?

First-time poster so please be gentle :) I have a rather large table in my database (MySQL in case it matters) that holds lat/lng values of certain points of interest around the world (table name: ...
1
vote
2answers
96 views

Efficient set method in run length encoded C++ map

I have been designing a C++ class that maps an integer to an integer using a vector. Because there is a lot of repetitive data (for example 11115555666222), I am using a compression scheme where I am ...
0
votes
1answer
49 views

Memento Pattern:Philosophy of createMemento() method in Originator class

I've question about the philosophy of createMemento() in Originator class in Memento Pattern. My teacher said: now that Originator class no longer stores Memento objects internally, we should give it ...
0
votes
2answers
47 views

Event Driver Microservice Can Storage Sent Message?

I have an event driven architecutre, with many microserver that publish a lot of message in my event bus. In some case i can't track why some process is blocked, maybe because my Service-A haven't ...
0
votes
1answer
28 views

Interfacing with records on remote DB from localhost Application Logic

There are times when I have to fix/update records on a Production and/or Staging environment for a Web App. These are remote DBs. Rather than push application code to fix the data, I've been "...
2
votes
1answer
152 views

How to decouple messaging middleware from microservices?

We have a bunch of microservices written in different programming languages. These all communicate with each other over RabbitMQ(AMQP) middleware. There are consumers and publishers in each ...
0
votes
2answers
84 views

DDD - How to decouple two often used together aggregate roots

Context I'm currently developing a notification system with DDD which needs to be able to send the same notification to multiple users. For example, a group of party goers might all be notified about ...
0
votes
0answers
10 views

Adding API wrapper to Vue project - any advices or recommendations?

I'm starting a new project that consists of backend (REST Framework - Django) and frontend (Vue app). First I'm trying to figure out the "best" way to handle API requests. For example - not ...
2
votes
3answers
75 views

Parallel process flowchart shape in Draw.io

Our drawing tool is draw.io. Occassionally I've got to draw flow charts with it. In those flow charts I've got to express parallel processes (very similar to this UML example). Wikipedia says about ...
0
votes
1answer
68 views

Detecting whether a background image is “too light” to display white text over

I am building a mobile client app that gathers info about movies/TV shows from a website and displays it in a pretty format. When the user clicks on a show, they are taken to a page with the thumbnail ...
-2
votes
2answers
76 views

PHP Design Pattern, separation of concerns: should the Controller make a new HTTP request to the API?

I'm having a huge doubt on how to connect the front-end of my application to its back-end. So my application has a single entry point where all requests go. The request is dispatched to a controller, ...
-4
votes
3answers
178 views

Confusion with asynchronous programming

I have been reading about the concept but still it doesn't make sense to me. I want to clarify my question by giving an example. First of all, if we have task1 and task2 which have to run in sequence, ...
-2
votes
1answer
26 views

What should be the workflow for test management in JIRA

We are using Jira to track all our tickets and confluence for documentation. We intend to document the test cases covered on Confluence. Here are a couple requirements: Consider a development ticket ...
0
votes
2answers
101 views

Is there any benefit testing only with mocks/fakes/doubles?

Say I want to test the behavior of the GUI while I follow a PassiveView approach. I also use the command pattern to handle the actions of the user. So given a PersonView and a PersonService with a ...
1
vote
2answers
76 views

When is a “port” used in UML component diagram?

I currently stumbled over the the concept of "ports" in UML component diagrams and I'm not entirely sure how they are supposed to be used. Sometimes, ports seem to be used generally as start ...
-2
votes
0answers
16 views

Design for finding sets of Rules based on undetermined keys

I need to be able to find a best fit Rule depending on Keys and Values. So: We have a set of keys and values We need to save a set of Rules based on criteria These Rules may have known keys to search/...
0
votes
0answers
47 views

In a microservices architecture, should each microservice handle its HTTP headers or should a proxy handle them?

In a case where having microservices deployed as containers without any orchestration tool, they need to define some HTTP response headers. I understand a way to achieve it by having each microservice ...
0
votes
1answer
46 views

Storing permanent JWT in HttpOnly + SameSite=Strict + Secure cookie?

I'm wondering what are the nowadays risks of storing a JWT that does not expire in an HttpOnly, SameSite=Strict, and Secure cookie. I understand localStorage is vulnerable to XSS, and that normal ...
0
votes
1answer
32 views

Easily showing and hiding UI options for different releases of a standalone Java Application

I have a very simple standalone java application that allows users to tick which messages they want to transfer and then click go, essentially. We now need to provide different users with a different ...
1
vote
2answers
184 views

C# convention for empty constructor [closed]

I know an empty method without any good reason is a code smell, but it can be required for constructors. What would be a good way to write an empty constructor among the following? class A { ...
-2
votes
2answers
100 views

What happens after the ETL process?

I have thousands of .csv files with the same structure and, in most of the cases, some column values are the same ones recurring. Each file represents a report on some structures, with numeric ...
2
votes
0answers
56 views

Branch Prediction: How does a correlative branch predictor select from the global history?

I am trying to understand how branch prediction works, specifically with regards to correlative branch prediction. I understand that in an (m, n) branch predictor, there are m branch predictors, with ...
-2
votes
0answers
80 views

Why does Hexagonal Architecture allow you to skip the Application Layer?

In Hexagonal Architecture, our Domain Layer core is completely isolated and surrounded by our Application Layer: Why then, is our Domain Layer allowed to talk to our Infrastructure (DAL) Layer ...
0
votes
0answers
37 views

Auth-protecting video streaming using tokens but not directly on the server

I am the developer of a video streaming website and we need to secure our videos using tokens. The issue is that videos are hosted on 100 different servers and each uses a lot of bandwidth every month....
1
vote
1answer
193 views

How to maintain well structured code and latency optimized code together?

I'm working on a c++ data analysis project. My workflow goes like this Analyze the data and build models Optimize the code for latency, to deploy for production goto 1 Step 1 has lots of machine ...
0
votes
0answers
34 views

Pipeline pattern for MVC based GUI application?

I've got an application that uses MVC to run individual, isolated scripts to support our office. There is a root application will open new windows (limit 1 per tool) for each tool opened and each ...
-3
votes
1answer
59 views

How do i decide the compute sizing for a portal [closed]

I am designing the government portal that is gonna provide scholarship to various students under numerous schemes from GOI. In that way around 40 million users would be there to use the portal. how ...
-2
votes
0answers
52 views

High-performance real-time updating

I would like to have a designed software architecture evaluated by you. Maybe someone of you has a better idea or at least suggestions for optimization. Scenario: It is a web application with a REST ...
0
votes
1answer
63 views

Where to put SaveChanges in unit of work?

For the sake of discussion, you can assume I'm using Entity Framework and a mediator pattern implementation in .NET. I'm going back and forth trying to decide how to structure some of my data access ...
1
vote
1answer
87 views

Propogating db queries from a host that cannot initiate communication

We have jobs running on-premises, many of which directly query our (on-prem) database. At the start of these jobs a new record is created in the database, and the record id is returned so that it may ...
2
votes
1answer
125 views

Microservices: CQRS - how does the command side query data?

I’m trying to think what’s the best approach when I need data present in different services in a microservices-based architecture. In an e-commerce context, when a user creates an order the ...
0
votes
2answers
123 views

Architecting project into multiple source control repositories

I'm doing some work with my team to refactor/rearchitect some parts of our existing codebase which consists of two separate Django apps hosted in one common project repository. We're starting work on ...
1
vote
2answers
107 views

How to design asynchronous endpoints in a REST API

Context Hi, in my job we are trying to modify an API endpoint (/resources) to make special queries to it. A resource has a location (long/lat) and we want to make queries based on that location. We ...
-2
votes
0answers
27 views

Manage Single consumer with multiple producers in Python

I have an event bus that collects AI predictions from different sources (~100-200 sources). It means we have around 100-200 different producers. An other service is responsible for retrieving events ...
-4
votes
0answers
34 views

How to distibute X values evenly accross N nodes?

Say there are N nodes/pods (which can change dynamically), and there are a list of X data sources. We need to distribute the responsibility of these X data sources evenly across these N nodes, so that ...
-3
votes
1answer
69 views

Pattern for mass action with pre-checks?

Given a collection of objects and an action id (there is a corresponding "action controller" class, which can be found with the id), what is the best way to organize mass action on the ...
1
vote
1answer
60 views

when and how to use class responsibility collaboration cards vs sequence diagrams?

I've recently come across CRC cards and sequence diagrams at my university. Martin fowler has said that sequence diagrams are interchangeable with CRC cards when you're in the design phase of your ...
2
votes
2answers
170 views

1 Central Development Server vs. Individual Workstations

Alright so here's the situation... All of my coworkers are used to RDP'ing into a Windows server and doing all of their work there. Whether it be coding, SQL work, etc. Multiple developers connecting ...
0
votes
1answer
74 views

Dependencies in microservices configuration

I'm dealing with a system where: A number of around 50 microservices are available Depending on their needs, clients design their deployment choosing which of those microservices they need Most of ...
-1
votes
0answers
75 views

use of decorators in Python to provide default function arguments

Background I have been using Python for a few years now, but I only recently started to consider the use of decorators to reduce redundancy. Specifically, I started to replace default arguments across ...
4
votes
5answers
337 views

Using dedicated functions for opposites/inverse

I have a disagreement with one of my colleagues on whether or not functions should have inverse functions available. I would like to know when/if inverse functions should be used. For example, say we ...
0
votes
1answer
84 views

Using tags instead of different branches

Git flow recommends to have separate branches .i.e. main/master --> production deployable code Development branch gets created from main/master --> active development branch (integration branch) ...
-1
votes
0answers
20 views

How does a wrappanel communicate its size?

I am creating a 2D layout provider. Trying to create a simplified but similar layout dynamic to WPF. I understand that the layout model in WPF works in terms of a measure and arrange pass. In the ...
0
votes
0answers
20 views

Should I create separate package to host web api as windows service in .net core 3.1?

Some background : I have common Web API library which adds Serilogger and Splunk integration/implementation for ILogger along with handling of common services/Middlewares such as Custom Authentication/...
61
votes
9answers
12k views

Is it really possible to decouple the UI from the business logic?

I'm reading about software architectures like Hexagonal architecture, Onion architecture etc. They put a big emphasis on decoupling. The business logic sits at the centre and the UI sits on the ...
-1
votes
2answers
95 views

How to version bug fix of library for earlier release?

I'm kinda new in versioning. In my scenario, for example, our main project is currently developing in 2.1.0 (develop branch), while the library version remain same as 1.5.0 since nothing change (for ...
1
vote
1answer
44 views

Connect private methods to Signals

I've recently been working on a customerproject that makes extensive use of a signals/slots like mechanism. Their approach is to directly connect signals from a larger framework to private methods of ...
0
votes
1answer
41 views

Limiting access to telemetry API only for certain application

Let's consider such an example: I'm an author of application like Google Chrome. I would like to my application sends anonymous telemetry logs to my server. How do I prevent somebody to use my server ...
-3
votes
1answer
55 views

Why sort the points acc to y coordinates in closest point divide and conquer method?

The divide and conquer strategy for closest point problem sorts the points according to x coordinates so that the median could be found. But what does sorting the strip (strip array contains all the ...
2
votes
4answers
279 views

How to compare passwords which is stored in DB in encrypted form in secure way?

Recently In an interview I was asked this question - Question- If are storing passwords in encrypted format in DB and in future when user login into our website how will we perform authentication? Me:...

15 30 50 per page
1
3 4
5
6 7
1182