All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

java threading model for scale up

I need some advice on the scale-up issue. we have a java application currently it works as below the current system is using the Thread Per Request Model. each client connection (long-running and ...
0
votes
0answers
3 views

Using JWT token to create spring session

I have a web application like this: An angular frontend for client and a spring MVC backend for admin panel. A angular web application requests a JWT token from tomcat/spring MVC. The angular ...
0
votes
0answers
12 views

Can entities in Clean Architecture use boundary objects?

Let's say that we are working on some kind of school management system and we want to drop (remove) a course from a particular student during the enrollment process. We might have an enrollment entity ...
1
vote
1answer
20 views

Dependency Injection: Dealing with late property initialization

I am using some C# pseudo to illustrate here. Below, you will see a Service and a Client (in the context of using DI). The service has a required property that will need to be initialized by the ...
1
vote
4answers
86 views

Architectural problem for class combination (cartesian product) for save format strategy

Hello to everyone and thank you for any suggestion. I have a family of subclasses of Track (Track is abstract). Every concrete Track has a different number and types of fields (attributes) that extend ...
-3
votes
0answers
29 views

Big static web site build system design [closed]

We are running a relatively large size static website, which serves over 200K static web pages. We use Next.js to generate these static pages and we host the generated HTML and asset files in AWS S3. ...
1
vote
2answers
63 views

Using objects to construct nearly the same objects

I am getting worried I have some terrible design pattern here in JS/Node.js/MongoDB. It seems to that to create an object, I need an object that looks like that object. This includes data that comes ...
-3
votes
0answers
40 views

Designing a factory for differently shaped types

I have a .json file on file system, which contains an array with multiple object types, something like: { "data": [ { "type": "type1", ...
0
votes
0answers
45 views

Redis or MongoDB in Memory

I am working on processing of documents and storing their hash in Redis to identify duplicate records and some system files. Recently we migrated to MongoDB from SQL Server as our primary database. So ...
-2
votes
0answers
14 views

Showing form that submits to an authorized endpoint in SPA

Suppose I have a form that when submitted sends data to an endpoint that requires authorization. What should I do before showing such a form? Check a state inside the SPA to see if the user is ...
0
votes
4answers
104 views

Opposite verb to “inherits”

What's the name of the relationship opposite to "inherits"? Subclass inherits from superclass Superclass ______ subclass
-2
votes
0answers
17 views

Problem with creating pyQt5 app

I'm hoping that someone can help me out. I've made a box that contains a raspberry pi and some relays. It takes in readings from pH and ORP sensors and I'm almost at the stage where it's running the ...
0
votes
3answers
132 views

C++: Is a pointer to a vector going to cause memory issues?

I started to write a function which had a pointer to a vector as a parameter so that it could modify that vector to output results (as the actual return value was an error code), when I started to ...
-3
votes
1answer
26 views

How are different resolution settings for videos handled by server and client based on setting and connection speed? [closed]

I was watching youtube and squinted at the text in the video and wondered what happens when I switch from 720p to 1080p. Does the streaming service, Youtube and or any other, just have the files in ...
1
vote
3answers
84 views

Better than ongoing integer and uuid as primary key

I read a lot about using ongoing numbers vs UUIDs as the primary key and had an idea how it might be possible to combine both and profit from their advantages, without their disadvantages. The table ...
-4
votes
0answers
19 views

Is there a serverless platform that allows requests from any hostname?

I have an endpoint (built with Node.js and Express) that returns different results based on the request's hostname and I'm looking for a platform to host it. Ideally it would scale up automatically ...
-3
votes
0answers
27 views

Entities and Relationships between them

I am trying to find out entities and relationships between them for a crowdfunding service. The task is create Rules(Sentences for relationship) and Find needed Entities. Case Study: Project owners (...
20
votes
5answers
946 views

How can there be so much “business logic” for a company that they cannot drop their old COBOL/mainframe code? [closed]

Something which has always confused me is this. I keep hearing about how these big, old corporations which were around in the 1950s (for example) and early on started using COBOL-coded business logic ...
-4
votes
0answers
21 views

MySQL how can you reach an entity that has no relations with any other entity, from another entity? [closed]

Assuming we have these entities: Flight(flightID(PK), from, to, distance) Aircraft (aircraftID(PK), name) Certificate(aircraftID (PK), employeeID(PK)) foreign keys: aircraftID REFERENCES Aircraft(...
-1
votes
1answer
93 views

Why are “fields” are called that?

Those textboxes, datepickers, textareas, etc... or DB fields. Does anyone know the etymology of it? Why those are "fields"? Is it because a field is an open space area that has no trees ...
0
votes
0answers
33 views

JSON Api Relationships and DDD Principles

In my current project we try to use DDD as development process and foundation of our architecture. For the REST-Interfaces it has been decided, that JSON:API is our way to go. Since DDD, REST and JSON:...
2
votes
2answers
56 views

Given a 2D map with some entities on it, should the position be kept inside the map, or the entities?

I've got a 2D map, on which entities interact. Should an entity's position be kept on the map object, or on the entity object itself, or both? Why? What does decide where a property is kept? What ...
0
votes
0answers
41 views

Best choice for a holding large number of objects in java

I have a set of array, containing a large number of objects (products), which has lately grown so large, searching in it takes about a minute, which is considered too long, since one search is ...
0
votes
2answers
56 views

best practice for PUT requests in REST API

What's the best practice around updating information received from the request? Update all the columns with the values received in the request object? What if there are columns that should be updated ...
0
votes
1answer
45 views

What approaches are there for handling elements in contiguous memory while being dependent on other user input

I am creating a vectorized reinforcement learning environment. It handles multiple instances of a board game in synchron. Up until now, the state of the environment was a specific representation of ...
-3
votes
1answer
47 views

Limitations of two-factor authentication [closed]

I have to manage a web application development project in the finance sector. Being on the internet, the application is vulnerable. One of the team members has pointed out a vulnerability in the local ...
0
votes
2answers
52 views

Where to put a deffiniton of an external data provider in a DDD/Onion Architecture application?

Consider that when working on an Application which is modelled using DDD and implemented using Onion Architecture, you come along a following business case: The Application, as one of its features, ...
-1
votes
5answers
280 views

Why would you ever want WET code?

We have all heard of Don't Repeat Yourself and Write Everything Twice, but I've never understood why anyone would prefer the latter of those. Obviously you can go overkill with DRY, with the code ...
-3
votes
2answers
142 views

Is inversion of control the opposite of “tell, don't ask” principle?

First, let me explain what I mean by inversion of control and tell, don't ask in this context. I have 4 classes MailController, UserData, Subscription and MailService. MailController is a consumer of ...
0
votes
0answers
16 views

Why can't Django decide if preloading should be done through selecting or through prefetching?

In Django, one can select_related and prefetch_related. The former expands the DB query by extra fields and is used when there is at most one result ("parent" relationship, for example item....
1
vote
3answers
83 views

Clarifying the steps in a CI/CD, but namely if if unit testing should be done building a Docker image or before

I'm building at a Build and Deployment pipeline and looking for clarification on a couple points. In addition, I'm trying to implement Trunk Based Development with short-lived branches. The process I ...
1
vote
5answers
179 views

OOP applications and Databases

I am having such a hard time with OOP and databases. Both in C++ with SQL and even more so with Node.js and MongoDB. For this question I will use Node/Mongo. Let's say we have a user object. Over time ...
0
votes
1answer
66 views

Wrapping C API with array in C++

I want to wrap a C library, libcookie, in C++. Setting The library has an object-like structure like so struct Cookie; typedef struct Cookie COOKIE; int CookieGetTemperature(COOKIE*); // ... COOKIE* ...
2
votes
5answers
205 views

Can we use Git as an additional tool to better estimate maintenance effort?

I'm working with a codebase that is almost 4y old, just a little under 2000 source files and roughly 100 developers have committed to it. One of our third-party dependencies is not actively maintained ...
-3
votes
0answers
57 views

Python HTTP tunneling

Suppose a conjuncture where is needed to pass a normal TCP/IP traffic through a HTTP server, like the below scheme: Client <> SOCKS5 proxy <> HTTP server <> Remote First, the client ...
1
vote
2answers
78 views

Checking the user in almost all use cases

I have a web application that has Users that belong to Companies. A User can only belong to 1 Company at a time and they can manage their own company information. I'm using java spring and I'm ...
1
vote
2answers
80 views

JS - two array filters vs. one forEach?

I've had a question for a while. I know that the Array prototype method filter is generally preferred over forEach, and I believe it is typically faster at the job as well. But what about if I have ...
0
votes
2answers
42 views

Strategy for Chrome timing out on a Database cleanup job which takes a long time

I have a notifications app which sends users notifications. It uses a .NET core backend, an angular frontend and Cosmos DB. Within this I have an API endpoint function which is linked to a button used ...
-2
votes
1answer
109 views

Why import data from excel to a database [closed]

I have an excel file consisting of Kpi based data. I intend to develop a web based dashboard with its data source being the mentioned excel file. The dashboard only shows certain (filtered) data which ...
-2
votes
0answers
29 views

Forward compatible Json Data Schema design and choice of data store [closed]

Currently I have a static json file with a hierarchical data schema of below format. { "Country1": { "State1": { "City1": { "...
1
vote
1answer
53 views

Clean algorithm for generating Scrabble tile sequences

I am trying to come up with an algorithm that generates every possible combination of Scrabble tile sequence on a player’s rack. I want the sequence to be comprised of n number of indices depending on ...
0
votes
0answers
16 views

How do i structure a serverless application using Azure Durable Functions?

I am trying to work out the best practice for structuring a series of Azure durable functions for reuse across future development work within my organisation. From the doc's it seems like the desired ...
0
votes
0answers
14 views

OIDC Should I authenticate as the resource owner or machine when accessing an centralised authorization service?

We have an existing user authentication service based on casbin (https://github.com/casbin/casbin) which implements RBAC and holds fine grained user permissions. We are looking to expose this user ...
-2
votes
0answers
33 views

Formula Reader and parser java

I have a task im working on which should read formulas from db and interchange the fields in the formula with real values and evaluate them. i will give a descriptive explanation of what ive done and ...
-1
votes
2answers
108 views

How to avoid CRUD and layered architectures in REST backends?

I'm creating a .Net 5 API backend and use EF Core for the database part. The simple CRUD way I know: API layer calling a command or query from the application layer using MediatR Application layer ...
0
votes
0answers
18 views

Set ENV variables in different Environments with Kubernetes (Hooks, CI, …)

I want to port our current Development workflow and Deployment (Multiple Repositories with Node.js and Python Microservices) from Ansible to Kubernetes, however I fail to find good resource about best-...
-2
votes
1answer
38 views

Use 1 to many relationship on same model or split it into two different models?

I'm building a forum application using the Django web framework but I'm not sure how to design the entity relationship diagram when it comes to the Post model. Since one Post can have many replies, ...
0
votes
1answer
60 views

How can message queues improve scalability?

I have read in a DDD book that using message queues between communicating services can make the whole architecture more scalable, amazon's documentation mentions that queues provide granular ...
0
votes
1answer
29 views

What kind of bottlenecks are possible when implementing a distributed workflow using a central point of control?

I was going through https://docs.microsoft.com/en-us/azure/architecture/patterns/choreography, the document mentions in the drawbacks of having a central orchestrator that it can become a performance ...
0
votes
1answer
34 views

How do you set cookies on frontend from the backend?

I'm a little confused about how to handle cookies between frontend and backend. I have a frontend react application a backend node express application. The frontend is hosted on Netlify and the ...

15 30 50 per page
1
2 3 4 5
1182