All Questions

Filter by
Sorted by
Tagged with
0
votes
3answers
102 views

Cyclic dependencies in microservices

Just wanted to know if cyclic dependency is something one should avoid in mecroservices design. For example, let's say we have a simple web store that sells fruit. We have Account Service - where ...
1
vote
0answers
124 views
+50

What can I do to make adding new concrete classes (of abstract/interface classes) easier across the code base?

A real (but simplified) example from the program that I'm currently working on. We have an abstract Request class and two classes that extend it: FooRequest and BarRequest. They both have dao's used ...
1
vote
1answer
106 views

declare 2 classes for nullable / not nullable objects?

Let's say I have an which is loosely can be represented as: public class AnObject{ public AnObject(String name, String value, UUID id) { this.name = Objects.requireNonNull(...
33
votes
5answers
6k views

Microservices and stored procedures

Are stored procedures considered bad practice in a microservice architecture? Here are my thoughts: most books on microservices recommend one database per microservice. Stored procedures typically ...
-2
votes
0answers
31 views

Suggestions on system design for data scraping [closed]

I will need to scrap data from different property listing sites and be able to do search by name and location. I do not have much experience in designing the whole system. My initial thought is I ...
0
votes
0answers
21 views

Methods for storing data pre-registration in a web app

I have a web app - it's more complicated than a todo list but for simplicity sake let us assume it is a todo list. The user has the choice to sign up and create an account thus allowing them to store ...
-4
votes
0answers
42 views

Design for auto-scaling in AWS Fargate containers [closed]

We have 20 docker containers in our application and we have deployed all the containers as AWS Fargate docker containers and it is running successfully. Now we were discussing the auto-scaling ...
-1
votes
2answers
212 views

Are pre-commit or pre-push hooks that run lint and unit test scripts worth it? [on hold]

I guess the argument for pre-commit hooks that lint and run unit tests would be that every single commit is clean. The argument against them is that they take a lot of time to run, which can add up ...
-3
votes
1answer
72 views

Predicting Cost of Change [closed]

I have read from many different software architecture books about the "cost of change" and how as developers we need to be wary of this notion and design our software to allow the most commonly ...
-4
votes
0answers
46 views

Designing first ever NoSQL database (MongoDB). Got questions around a simple example [on hold]

I have many years of experience with RDBMS.I am relatively new to NoSQL. And in current project that I am doing, I have to use MongoDB (As suggested by my client). In this there are tens of thousands ...
-4
votes
0answers
46 views

Time complexity of closest pair algorithm [closed]

How is the following expression for the calculation of time complexity correct? 2T(n/2) + O(n) = O(nlogn)
3
votes
1answer
97 views

Managing error code and error message mapping

As part of a game engine I am writing in cython, one of the challenges I am facing is creating a consistent interface for error handling that works at the C and python levels of my code. I am ...
3
votes
3answers
202 views

How to prevent bugs in business-level configurations with similar discipline as in source code?

We have a system that allows our clients to coordinate people (shoppers) so that they can delivery groceries within 45 minutes from the order creation. Each client has a set of stores where the ...
0
votes
1answer
61 views

How to manage breaking updates in an API & database

So I have been working on my mobile app for a while and it is live and in production. Because we released the app prematurely and are continuously improving current features and making them more ...
2
votes
3answers
109 views

Is the observable pattern the right tool for this scenario?

Suppose I have a Player that wants to build a Tower in the Board of a tabletop game. My first approach to this would have been something like: function onConfirm() { player.consumeResources(); ...
1
vote
3answers
130 views

How to model a Struct with a limited set of values that behaves like an enum?

I have a general organization problem with my code. I'm modeling DNA, and I've created a Nucleobase struct to store the "letter" of the DNA. For ease of use, I would prefer the following functionality ...
1
vote
2answers
50 views

How to connect IOT devices to Android App(initial connection) [closed]

Background I am starting a new project, and I want custom IOT sensors for an app I am writing. I want to keep everything as simplistic as possible so the IOT devices wont be running any major software ...
0
votes
1answer
45 views

In clojure, how to structure a simple reverse file search function to make it unit testable

I have the following pair of functions used for searching upwards for a configuration file: (defn has-config? [path] contains? (set (.list path)) "my-config") (defn find-config-path [path] (cond ...
-4
votes
1answer
46 views

How to detect that internal hard disk is removed and which files were copied? [closed]

Its easy to steal internal hdd, which do not generate sound signals to aware the owner while removing and allows Thief to copy the data. Is there any way by which these thieves acts can be traced.
4
votes
2answers
229 views

C# How to combine types I don't have access to?

I have been developing a library with the help of another library. So what I have set up here is two classes sub-classing the library's classes for additional functionality. The problem comes in when ...
3
votes
2answers
158 views

Most efficient way to return results to a web page with a sorting algorithm

Recently, I've been building a search page where the user can input their search criteria and the server side will use a scoring and sorting algorithm to return the 'best' results first. The current ...
0
votes
1answer
41 views

PHP - Return array of file names from multiple folders [on hold]

I have below two folders Table and Text, which contains below files: Rules - Table - regexTextReplace.php - textReplace.php - Text - regexTextReplace.php - textReplace.php - ...
4
votes
1answer
65 views

is there a unified term for the open-source and managed services in our HLD?

I'm preparing a session on our product's HLD (High-Level Design) for newbies. It's a microservices-based system that includes several self-managed open-source projects & other managed services (e....
-5
votes
0answers
30 views

Request for some memcached data and statistics [closed]

I am currently working on a project to optimize memcached's memory storage algorithm using machine learning. Since I do not own/use any large memcached servers, would anyone be willing to share the ...
0
votes
1answer
93 views

Do I have do use HashTables/Maps/Hashmaps in this algorithm?

I am doing the Ransom Note algorithm in Hackerrank. The thing is I am not using maps and all the tests pass except for three which execution time takes a lot more. (Kotlin language) I have two ...
1
vote
2answers
109 views

Create a column mostly with null data SQL like

In postgresql I have a table with a list of cities. One row for city. Around 15000 rows. A column is CITY_NAME, now I have to add an english translation of the city name. The problem is that only 10 ...
1
vote
1answer
52 views

Message Queue with multiple consumers locking synchronous on a field

We have a system where multiple consumers get messages out of a queue (currently implemented with a database). The messages have an order field. All messages of one particular order should be ...
5
votes
2answers
180 views

What could be a good pattern for a code base that does a lot of A/B testing?

I develop in an environment where we tend to do a lot of A/B testing. I am curious to learn from others on how A/B testing code is managed in your code base? Do you mix your A/B testing code with ...
0
votes
0answers
12 views

Consume uploaded file by a cloudfroundry task

My app on cloud foundry runs CPU intensive jobs. A job is a simplified ETL process on flat files or data from an odata service. Today the app is hosted on cloud foundry and is monolithic. Also the ...
-1
votes
0answers
30 views

controllers in different assembly [on hold]

I have seen many solutions with the Controllers in a separate assembly, basically Startup and program in one project and the Controllers in another. What are there advantages of doing this? Is this ...
0
votes
1answer
52 views

How to keep state alive between deployments

In our history, when we did a new release (deployment) any user who was "logged in" was logged out and that was obviously not ideal. Then I switched platform from a custom stack to a cloud provider ...
2
votes
1answer
221 views

Guard block moved to the bottom [on hold]

Sometimes it is a good idea to have a guard block: https://softwareengineering.stackexchange.com/a/157413 https://en.wikipedia.org/wiki/Guard_(computer_science) Guard block guards against special ...
0
votes
0answers
18 views

Real mode flat model [migrated]

I am interested in old Intel processors. I'll try to be as concise as possible. 1) In real mode flat model, does the CPU and operating system see all 1MB but only programs see 64KB or the operating ...
1
vote
1answer
22 views

Multi-client application (Symfony 4 Rest API) : how to manage customization?

I am working on a Symfony 4 rest API application which will be use by multiple client(about 20 different clients). Each client has his specific needs so I have to fork the web application for each ...
3
votes
3answers
232 views

Why are test frameworks like JUnit or TestNG not more “object-oriented”?

By "more object-oriented", I mean, it appears to me testing frameworks like TestNG and JUnit could encourage testers to write implementations of Test and TestSuite interfaces. The current approach ...
4
votes
3answers
83 views

Do user stories need to be Independent and Valuable or Independently Valuable? [duplicate]

I am trying to split down user stories for a brand new system. This system will record weight readings from a balance connected to a serial port. Due to regulatory data integrity requirements - the ...
0
votes
3answers
110 views

Modern methods to run a Console Application on schedule [on hold]

I've got a console application which pretty much interacts and prepares some data in a SQL Server Database, exports a table, encodes, gzips and uploads to an AWS S3 bucket. The application is complete ...
11
votes
4answers
544 views

How to review sql changes more effectively? [duplicate]

From my experience, sql code changes almost always tend to be NOT incremental: someone creates a new stored procedure, or modifies an entire embedded sql query for optimization purposes, or creates a ...
2
votes
6answers
454 views

What SOLID principles am I breaking with this code?

With the below pseudo code? Am I breaking any SOLID principles? interface i_pet string get_name() string get_species() color get_fur_color() end interface interface i_cat implements i_pet end ...
-4
votes
1answer
95 views

Is it really good idea to disable warning of C or Cpp? [duplicate]

When we are working on a big project of C or CPP, we are getting some warning. Therefore, we try to remove that warning because when we see compiler warnings that they make us feel dirty. When we ...
1
vote
2answers
72 views

How do I maintain post deployment older versions of my code on GitLab?

My project is moving from TFS version controlling to GitLab. This is how we used to go about TFS: Each production release will be a version branch. For example, 2.0 for release 1, 2.1 for next and 2....
1
vote
1answer
88 views

Appropriate design pattern for developing rules and outcomes [duplicate]

In the exercice i´m developing bellow, i´m applying the chain of responsibility pattern. The pattern works correctly but i don´t think it's the best approach. I think the rule design pattern should be ...
2
votes
2answers
76 views

Server-side script to handle many near-simultaneous incoming XMLHttpRequests

I am building my own analytics platform, which I want to work like this... A JS script in each of my webpages collects data about users' clicking behaviours and sends that data to a PHP (or other ...
-2
votes
1answer
24 views

Recurrence of splitting a matrix array? [closed]

If we have a matrix of nxn, what is the recurrence of splitting it into 4 equal parts of size (n/2)*(n/2)? I thought it would be 4T(n/4) since we are splitting it into a 1/4 of the original size, but ...
-2
votes
1answer
34 views

buffering messages and send after reconnect

I'm looking for a solution for this, buffering messages in an array and send them after web-socket reconnect. I can check the socket client and push messages to an array when connection is lost and ...
0
votes
1answer
41 views

Architecture for business functions impacting several Dataobjects/database tables

I am trying to create an example project Web API to see how "clean" I can remake the Delphi(Pascal) API we are developing on my job. I have created a solution which as of now contains 3 different ...
1
vote
2answers
91 views

Should backlog items be assigned to the scrum master?

I am having a debate with someone at work, think I know the answer, but I would like to hear what other people think. If anything, this will confirm that I am right, or show me a better way to ...
2
votes
1answer
32 views

How specific should administrative compensating events be in a CQRS/ES system?

Are there any best practices around how specific to make events that are generated administratively, say to clean up after one-off operational issues? For example: Say you have a credit card ...
37
votes
8answers
9k views

How can I discourage sharing internal API keys within a company?

We’re working on a new service – this service will potentially be called directly from applications on user devices. These applications will be developed and supported by multiple development teams ...
-1
votes
2answers
69 views

Hiding other configuration values from the consumer of an API

Let's assume we have a required attribute foo for an API call. This can have valid values of 1 and 2 which denote some valid option in the system. Since this field accepts an integer, if we provide ...

15 30 50 per page