All Questions
61,098
questions
-2
votes
0
answers
60
views
Best way to deal with long background jobs when deploying web app? [closed]
I've deployed a Next.js application to Vercel using the free tier, and everything is working well. However, I have a couple of background jobs that take a long time to execute (going forward probably ...
10
votes
7
answers
8k
views
What is the best way to record in git which commit is currently deployed to which environment?
We run a deployment pipeline where we build a versioned binary, tag the commit it was built from with the same version as the binary, and then can deploy the binary into arbitrary environments (...
0
votes
1
answer
42
views
How to properly isolate tests for dataframes with grouping?
I have the following problem:
I would like to test complex business logic for each test case completely separately, i.e. all tests should run in parallel. I don't want the test for customer #43 to ...
0
votes
2
answers
236
views
How much should developers be concerned about budget?
In an agile organization, how much (if at all) should developers be concerned about the budget allocated to a project?
My opinion is that they should not be particularly concerned, because:
a ...
-2
votes
3
answers
149
views
How do I describe a hierarchical relationship between software objects? [closed]
I'm trying to express a particular relationship between two software resources available in an API. The relationship is such that one of the resources is the "main" or "original" ...
-2
votes
1
answer
59
views
Is it appropriate (RESTful) to have a resource that is an aggregation of another resource?
Let's say you have a resource KeyValuePair
type KeyValuePair = {
id: string;
key: string;
value: unknown;
}
and we can CRUD this resource via a /keyvaluepairs endpoint.
Now - lets we have ...
0
votes
0
answers
46
views
How to authenticate client and user
I could use some feedback on designing a solution for handling two OAuth flows in a single request.
I have an API that currently supports OAuth2.0 (for users).
It was requested that we should be able ...
0
votes
0
answers
36
views
WPF Best way to create viewmodel from another viewmodel
Often I want to open a new window from within some view.
I see opening a window as view logic. So I don't want code in my viewmodel that creates/opens/changes windows or anything else that interacts ...
0
votes
0
answers
11
views
Any good pattern to deploy and maintain multiple helm-released API version routes along with Istio Virtual Service routing?
I am deploying multiple API versions (helm chart) from automated pipeline and I want to deploy an Istio virtual service to establish routing to those version (/v1, /v2, etc.). Each of these API helm ...
1
vote
3
answers
119
views
In RESTful APIs, what's the proper way to have different resource properties based on user authorization?
I'm struggling with defining proper endpoints for a RESTful API, given the following requirements:
We have an existing /customers endpoint, which when called with the GET verb, returns a list of ...
0
votes
0
answers
46
views
Should authorization be implemented within each service or in a central location?
For example, let's say we are building a service to manage employees for a retail corporation:
POST employees
GET employees
GET employees/{id}
PUT employees/{id}
DELETE employees/{id}
You would want ...
-2
votes
0
answers
28
views
In Microservices environment, if there are multiple services tied up together in a Chaining manner then how below scenarios will be covered
If Microservice 1 ---> calls Microservice 2---> calls Microservice 3 and so on…
1. What should be the transaction rollback approach if let says the call between Microservice 2 and Microservice 3 ...
0
votes
0
answers
71
views
Replacing TLD in image urls without changing the data
I have a flutter app which uses firebase/gcp as a backend.
Files can be uploaded and stored on google cloud storage.
In flutter I am using an UploadImage and UploadVideo model to store information ...
2
votes
4
answers
164
views
Which approach can be used to verify that information has not been manipulated after it has been recorded?
I am looking for an approach to verify that some information has not been modified after a certain point in time.
Let's assume a data provider records a data set at time X and provides it to a data ...
-2
votes
0
answers
42
views
How do large storage cloud solutions store their data? [closed]
I was wondering how file upload services / cloud storage solutions actually store their data. Multiple customers from different companies using the same website (E.g. Facebook) and uploading images, ...
0
votes
1
answer
81
views
Alternatives to DDD - Complicated and cumbersome business logic/process
We have inherited a legacy MS CRM 4.0 application and the business wants it re-written to an as vanilla as possible .NET web application. The business wants to go down this route vs another off-the-...
0
votes
2
answers
43
views
Is it safe for container orchestration to replace unhealthy containers?
I'm new to docker and I'm reading a book which says:
Docker can't safely replaced an unhealthy container. Docker could remove that container and start a new one from the same setup, but maybe your ...
0
votes
4
answers
127
views
How do I do a roadmap if I am working with Scrum?
My team is working with the Scrum framework. We have done a draft product backlog with enough detail for the first sprints.
However the upper management wants a development roadmap. How does this need ...
0
votes
3
answers
57
views
UML - State Machine Diagrams: Mapping States which can be transitioned to from anywhere
I am trying to model a case management system in a UML State Machine Diagram. It is an approval style process and the case can enter a withdrawn state at any time if it is no longer required. This ...
1
vote
1
answer
249
views
Is the use of a catch block as a "rollback mechanism" a bad thing?
I have a service that performs a series of actions based on user information (name, address, etc), one of the problems is that the User entity comes from a legacy third party API (as a repository) ...
0
votes
1
answer
86
views
Plugin architecture vs Interface Segragation Principle (SOLID) [closed]
Uncle Bob's Interface Segragation Principle (ISP) tells us that many client-specific interfaces are better than one general-purpose interface. But plugin architecture in common case suppose to have ...
0
votes
1
answer
282
views
How do you reduce security risks when using NPM packages in commercial Web development?
This is a question for software engineers who are tasked with managing the development cycle for a Web application using NPM packages for deployment on a customer's Intranet or the Internet.
This is ...
0
votes
2
answers
75
views
Is it a good idea to use database sequential id as a key in external key-value storage?
I use Postgres database to store user information. Some of that information is sensitive so it was decided to store that information in Vault. The user table in Postgres has id's generated by a ...
-3
votes
0
answers
26
views
What are the existing roles in the WebE process model?
I am learning about the WebE (Web Engineering) process model at university. I'm currently doing an activity where I need to create a mind map on this model. However, I can't find any sources that tell ...
1
vote
1
answer
157
views
The difference between Repository and DAO
I am learning Domain Driven Design and I cannot understand the difference between Repository and DAO. It seems to me that they are similar. Their roles and functionalities are the same, but why they ...
0
votes
2
answers
51
views
How do event sourcing services recreate the state of an entity?
I'm reading about event sourcing and have a question regarding the recreation of an entity state.
For a simple scenario, lets say we have Order events such as OrderCreated / OrderUpdated / ...
0
votes
1
answer
36
views
Should Functional Testing of an application be part of an application project/build or a seperate project ran independetly
Let's take an application that provides a REST API. As part of the build process, both unit tests and integration tests are run against it.
At some point we want to spin this application up properly, ...
-3
votes
0
answers
69
views
Utilizing OOP principles effectively to implement a graph algorithms demo application
I am currently working on writing a C++ app whose purpose it is to essentially "demo" various graph algorithms. At the moment, I have a very bare-bones Graph class working (which utilizes ...
3
votes
3
answers
227
views
In testing is making asserts in cleanup bad?
As a learning excercise, I decided to take a hand on Test Driven Development.
Now I decided that there is a test I want to make; check if database connection doesn't leave any unsaved changes.
The two ...
1
vote
1
answer
72
views
Using protobuf to store large array of doubles
For my job, I'm working on a project that involves working with robot sensor data. We've been using protobuf to serialize and transfer data. I'm trying to set up a new protobuf type but this data ...
-1
votes
0
answers
26
views
What is a common practice to refer to other datas within a data oriented design?
This question has been in my mind for a while now, especially in the context of high performance, interactive 3d applications. Just want to find out what is the general practices in DoD for ...
0
votes
1
answer
52
views
How can one combine two system architectures, say client-server and repository architecture?
I have a situation where I think it would be best to combine two architectures but I am not sure if this is possible or that it is a good thing to do.
By combining them I mean taking certain parts of ...
33
votes
7
answers
7k
views
Why do modern operating systems *ever* have perceptible input (keyboard/mouse) lag?
Sometimes computers stutter a bit when they're working hard, to the point where the mouse location freezes for a fraction of a second, or stutters intermittently for a few seconds. This sometimes ...
1
vote
1
answer
73
views
Domain Driven Design and Systems Analysts
DDD targets software with complex domains, which is usually the case with enterprise information systems. Traditionally, in the organizations developing this kind of software, there is a "systems ...
-3
votes
0
answers
36
views
"Domain" vs "organization" SSL certificate?
I am setting up a VM (running Ubuntu) that we will use for multiple things. We will host a database on it and also add some applications that receive data. One specific example of what we are going to ...
1
vote
4
answers
126
views
Is a flag for analytics a functional requirement?
Refined description
Because of great contributions, the description mutated as follows:
My application's purpose is to register customers into a system.
The requirement is: enable traceability for ...
0
votes
1
answer
101
views
REST API Design: Should we have separate endpoints for same resource if the system uses both ElasticSearch and MySQL?
Suppose we have a resource which uses either MySQL or ElasticSearch, depending on whether the query params require full-text search or not.
For example the possible query filters are:
fk_id which is a ...
1
vote
0
answers
29
views
Backend Design: System requires both ElasticSearch and MySQL. In which scenario we fetch data from MySQL or ElasticSearch?
So, one of the backend system, having 5 resource types (tables) and some foreign keys as well, requires full text support for two of the tables.
Also, for some use-cases, we require inner-joins for ...
0
votes
3
answers
120
views
How to model Product and Material relationship using DDD
I'm still learning DDD and trying to model in my domain layer a Product that is made by none or many Materials in different quantities.
Initially I create two aggregates, Product and Material and one ...
1
vote
1
answer
58
views
Would invisible custom elements make sense?
The use case I was thinking about was something like this.
I want to make a calendar for a month as a custom element, and I don't think passing up all the event data as JSON or something is the best ...
0
votes
0
answers
11
views
Using SchemaRegistry for JSONSchema for a protobuf field
Currently, I am working with an upstream service which uses the protobuf serialization to publish events to pulsar where they are consumed by a downstream service.
Going forward, we have decided to ...
0
votes
0
answers
15
views
Effective cache solution to have the newest data in React Native
Goal
We have an app with different articles. I want to cache an article when the user has read it, but make sure that I display the latest data. I came up with this hook:
React.useEffect(() => {
...
0
votes
0
answers
84
views
How to update complex entities in DDD
let's say I have the following aggregate:
class Road:
company_id: int # another aggregate
name: str
stops: List[Stop]
def add_stop(stop: Stop):
stops.append(stop)
class Stop:
...
3
votes
2
answers
352
views
Testing interaction with proprietary software without a license
First a bit of context:
My company develops a software and middlewares to make our software interacts with other software.
One of a client has a proprietary software we should interact with, he gave ...
0
votes
1
answer
35
views
Store UUID Reference vs. storing string in Mongodb
I am trying to store user preference for notifications.
One way to do is store types of notification in separate collection and store UUID of that notification type in user table.
e.g. notification-...
0
votes
0
answers
49
views
Cloud solution to parse and process 1M+ rows
We are writing a service that can parse a CSV file containing over 1M+ rows. Each row needs insertion (or update) data of a DB record. We are currently using DynamoDB.
What AWS services are best ...
0
votes
0
answers
54
views
Domain-driven Design: Aggregate root property is a collection of other independent aggregate roots
In my domain model I've got two principal entities: User and Event, both which I've decided to make aggregate roots. Users and Events have a one-to-many relationship wherein Users can create several ...
-2
votes
0
answers
27
views
Saga Choreography in Request - Reply MQ
Preface
I'm Currently working on a project of the following architecture:
API Gateway
RabbitMQ
Using the SAGA pattern.
our language of choice is PHP.
What we want to do:
A route receives a request.
...
1
vote
2
answers
244
views
Repository w/ MVVM Pattern: Data Format Check, Where/When, Best Practice?
TL; DR
Where/When to check data format in MVVM + Repository Pattern is the best practice? Any suggestion or theory?
The Scene
Our team is working on an Android Project. We have a MVVM+repo structure:
...
0
votes
1
answer
110
views
How to deal with lacking domain knowledge in a new software development project? [closed]
In my formal employment in software engineering/development, I've noticed a pattern. When I understand the domain reasonably well for what I am developing for, I can be much more effective by at least ...