All Questions

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

Microservice and Stored Procedures

My question are stored procedures considered bad practice in microservice architecture? Here are my thoughts: * most books on microservices recommend one database per microservice. Stored procedures ...
-1
votes
0answers
12 views

Suggestions on system design for data scraping

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
1answer
10 views

File handling Android

I'm newbie in Android development and doing on my first Android project and faced with .txt file handling. I succesfully created a txt file on Android Emulator, which is stored in: /storage/emulated/0/...
0
votes
0answers
9 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 ...
-2
votes
0answers
11 views

Design for auto-scaling in AWS Fargate containers

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 ...
0
votes
1answer
35 views

Are pre-commit or pre-push hooks worth it?

I guess the argument for pre-commit hooks 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 if you commit often. The ...
-4
votes
0answers
25 views

Support for partial file downloads using HTTP / REST [on hold]

I have a client/server architecture in which the client needs to periodically download large files from the server. Let's say the client downloads 9Gb of a 10Gb file and then temporarily loses ...
-5
votes
0answers
34 views

Where can I find practice questions and solutions to questions like these? [on hold]

I'm taking an ITEE exam and have reviewed a lot of past exams. I'm ok in most areas because these exams are very broad including product management, software testing, memory architecture etc. But ...
-3
votes
1answer
43 views

Predicting Cost of Change

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
35 views

Designing first ever NoSQL database (MongoDB). Got questions around a simple example

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
37 views

Time complexity of closest pair algorithm [on hold]

How is the following expression for the calculation of time complexity correct? 2T(n/2) + O(n) = O(nlogn)
3
votes
1answer
69 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
114 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
47 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
56 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
2answers
64 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 ...
0
votes
1answer
30 views

How to connect IOT devices to Android App(initial connection)

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
40 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
36 views

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

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
111 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
1answer
103 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
0answers
14 views

PHP - Return array of file names from multiple folders

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
48 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
26 views

Request for some memcached data and statistics [on hold]

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 ...
-2
votes
0answers
32 views

Microservices choreography pitfalls [on hold]

I'm designing a system using event collaboration patterns, trying to avoid REST calls for microservices intercommunication. You can find the attached diagram. While analyzing the following use case (...
0
votes
1answer
81 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
91 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
45 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 ...
0
votes
0answers
21 views

MySQL error.log file size suddenly increasing rapidly [on hold]

I have a scenario where /var/log/mysql/error.log size increases suddenly to 16 GB when a fresh start is done. As a result it is taking high pull time. I found a solution in log-rotation which can be ...
5
votes
2answers
109 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 ...
0
votes
0answers
25 views

controllers in different assembly

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 ...
-3
votes
0answers
58 views

Heavy Calculation on Client Side or Server Side [on hold]

I have a moderate web application which is Angular 8 on client side(TypeScript) and Web services(Java 8) on server side. I have a dilemma: 1.On one hand, I want to keep my server side agnostic and ...
0
votes
1answer
40 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 ...
3
votes
1answer
184 views

Guard block moved to the bottom

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 ...
-3
votes
0answers
31 views

What is a name for an endpoint for determining if a client should be able to use a service (not auth, but rather audience partitioning)? [on hold]

I am working on breaking a monolith into sperate web apps. The monolith app is very complex. The monolith already has a sorta dumb router that we can patch to make smarter. Our MVP app isn't going ...
1
vote
1answer
19 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
2answers
150 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
71 views

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

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 ...
1
vote
3answers
95 views

Modern methods to run a Console Application on schedule

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
504 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 ...
3
votes
6answers
379 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 ...
-2
votes
0answers
22 views

IPC Bus interconnection: what is this called? [on hold]

We're running a system consisting of a number of components. These communicate through a (proprietary) bus (say XBus) and we would like to 'implant' our components into another system running, say, ...
-4
votes
1answer
83 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
68 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
73 views

Appropriate design pattern for developing rules and outcomes

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
70 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? [on hold]

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
29 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 ...

15 30 50 per page