Questions tagged [design]

Questions about problem solving and planning for a solution through software design.

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

Implementing SSO for a mobile app connecting to SharePoint

I am currently designing an architecture for a mobile app that renders content from an On-Premises SharePoint Server. The SP-Server sits inside the LAN and is not directly exposed to the internet. ...
2
votes
2answers
143 views
+100

Architecture for collecting metrics from process

I have a class that oversees some process. At it's core, there is a process method which collects data and processes it. There are a bunch of methods for retrieving the results of the previous ...
4
votes
1answer
2k views

How to handle shared data across microservices?

At my work we have a typical microservice architecture, but one of the issues we are running into is sharing data across multiple services. We have certain data that is used by multiple services and ...
-4
votes
0answers
49 views

Best location for global constants and enums [on hold]

Before I get into the meat of this, I want to stress that I inherited this project, and the project structure wasn't my doing. Currently we have several Constants and Enum files, and there is tons of ...
2
votes
2answers
61 views

Use surrogate key or accountno field as primary key

I am in the process of designing a simple portfolio management system for financial advisors. The central table here is an 'tb_account' table that holds the various accounts an advisor manages. I ...
0
votes
1answer
45 views

Multithreading with duplicate matrixes? [critique/insight wanted]

I'm working on a video streaming project for drones with opencv where I want to apply multiple stacked image manipulations on a 2D input matrix. I was advised to make all manipulations calls non-...
0
votes
2answers
32 views

Data Collection Web Application Architecture

I am building a Data Collection Web Application with Flask and MySQL Database. It is basically a creating a Bill Of Materials for the organization for a new product. Bill of Material in a form looks ...
1
vote
2answers
915 views

MVC - Database search logic in View or Model

Special Note: I asked a very similar question on Stack Overflow, but I have since decided the problem should be solved from a design standpoint rather than an implementation standpoint. I have ...
0
votes
0answers
7 views

Storing partial data in a redux store, how should be this done?

In my app I have some data to be fetched from the server (a list of recipes). In certain views, only a preview of the recipe is shown--this includes fields like title, rating, and an image of the ...
1
vote
2answers
89 views

How do I recover from failed writes?

I'm writing logic for a patchable game, and patching involves modifying multiple files. type UpdateInfo { file string data []byte at int64 } func AtomicUpdate(ui <-chan UpdateInfo) ...
0
votes
1answer
83 views

Custom ACL Implementation

I have been trying to figure out an ACL solution for my application which should manage API endpoint's access rights dynamically. Some said that I have an option of Spring Security ACL. I checked it ...
4
votes
1answer
232 views

How to set up a sql database to cater for user records, group records and default records?

Outline I have an application that loads data from a database. I'm not talking about client data here though, I'm talking about application configuration. The database will therefore come with some ...
3
votes
2answers
140 views

Is recommendable set as final as classes by default in a SDK?

I am working on the development of an SDK in Android with Java, In general the user doesn't need to inherit any class of the SDK, so the question is if it is a good practice put by default all classes ...
4
votes
1answer
355 views

Plugin framework for extensible software

I need to make a web app which provides the feature to install/uninstall plugins. Think of something like Eclipse IDE like software. The only difference is you cannot restart it like Eclipse to apply ...
8
votes
5answers
4k views

Two Database Architecture : Operational and Historical

I thought about an uncommon database structure and wonder if anyone has seen it in use before. It's basically using 2 databases: First database hold only the data that is currently valid Second ...
0
votes
0answers
34 views

Where to put property change callback code so I can handle the previous value of the property without using something different than BindableBase?

I have this uncompilable code below, it uses the code in this answer. In it gv means "the old value of a group's name", where a group is a group of clocks, and a clock is a timer or alarm. It ...
1
vote
1answer
74 views

How can I implement maker-checker principle?

I am looking into ways for implementing maker checker principle for various classes over our company repository. Basically the rules are as follows: An entity is an object to be seen on a website (e....
1
vote
0answers
24 views

How to avoid coupling of domain objects with UI data in a store-based Angular app?

The state of my TypeScript/Angular app contains objects from the UI layer and from the business domain layer. I'm exploring store-based solutions (eg ngrx, ngxs) to keep this state in memory. As ...
-2
votes
1answer
47 views

OOP classes hierachies for aiding static checking justified?

upfront I develop software for big data applications of which use is beyond my control (it ends up with a user), but I am not a trained software developer. So I apologize for any wrong terminology. ...
-1
votes
1answer
47 views

Is it okay to group multiple actions in a single http request

I have a view which displays a list of items related to one thing, it allows creation, removal of, and updates to these items. All changes only persists when the user hits save. Is it okay to group ...
0
votes
1answer
57 views

Designing a system which can use business rules to determine whether there is a difference between two versions of an entity

I'm trying to design a system which can determine whether there is a difference between a field or not given two objects. In my tool, we get multiple versions of the same title, with minor ...
-1
votes
1answer
60 views

How much front-end design must be done before every Sprint in Scrum?

I'm a front-end developer working as a member of an agile team. I have no clue how much of UI/UX must be done before every sprint and how much of it I can postpone for later.
-3
votes
0answers
41 views

Caching middle man service for outbound requests [closed]

I have various services in my application that make external requests to web to scrape some data, as in Service A makes a requests to imdb.com/query and service B makes to reddit.com/query. I want to ...
-1
votes
1answer
22 views

Changelog for configuration data [on hold]

I've been wrestling with the idea of adding a changelog to our configuration data repositories, specifically chef objects. I haven't found a consensus on whether keeping a changelog for ...
2
votes
2answers
125 views

Field variable VS method variable

hey i have a difficult question. class DatabaseHelper { Database db; String defaultShema; public DatabaseHelper(Database db, String defaultSheme) { this.db = db; this....
3
votes
2answers
240 views

Should I provide partialed functions based on API call in Clojure?

I am designing a library to wrap an API with Clojure. The API requires user credentials to authenticate user related calls. My first approach was to have functions that do each task the API can do: (...
-2
votes
0answers
19 views

Which design mode should I choose/ or how to design the long time serial tasks when there are multi serial tasks need to complete?

I have a project, the function is: Install OS to a Server; if 1. complete, then log in to the Server; if 2. complete, then config the OS; if 3. complete, then change the server's switch for change ...
0
votes
1answer
73 views

How do I save user data in a file and populate the GUI/Software based on that file?

So I'm developing a GUI that consists of many widgets such as checkbox, buttons, radio-buttons, combo-box using Python Qt5. This GUI is to perform some calcualtion based on user choices. I'm trying to ...
4
votes
1answer
396 views

How do I design concurrent scalable system with guaranteed ordering? How about Akka?

I have designed a simple PoC system that processes a feed of prices that tick. It consumes a stream of "Ticker, Price" objects off JMS and updates a map, so that the map simply contains the latest ...
0
votes
1answer
33 views

Design Java Testing class for hierarchical objects

Consider the following POJO structure in my main code. I want to create some testing framework for this kind of hierarchical classes, where the calling test method can specify if they want to modify a ...
-3
votes
0answers
51 views

Design / style a code sequence of many checks on imput parameters, trying to avoid a long chain of “if … else if … else if”

In the entry point of a workflow (a REST service written in java) I need to make several checks to the entry parameters, and return specific error messages depending on what check failed (return on ...
12
votes
8answers
3k views

Object-Oriented Class Design

I was wondering about good object oriented class design. In particular, I have a hard time deciding between these options: static vs instance method method with no parameters or return value vs ...
4
votes
3answers
2k views

Designing a Feed and Notification system in MongoDB

I'm developing a NodeJS API that will be consumed, for now, by an Android app. I need 2 important things here: a News Feed and a Notification system. And I need it to be scalable. I'm using ...
0
votes
2answers
154 views

Is there a better way to use Lazy<T> than what I'm doing?

I recently started trying to use the Lazy class to implement lazy loading. However, I'm finding that doing so does not seem to have any advantages over simply implementing it myself via a null-...
25
votes
4answers
31k views

How do you handle multiple users editing the same piece of data in a webapp?

There's a project I'm working on that is looking to produce a web application that will manage a task list between multiple users. This is a master task list whose task items get distributed by an ...
1
vote
1answer
56 views

DTO Design in Depth

I'm extending an existing application, which has an attempt at a logical tier design, using DTOs, a Services layer (business logic), and a DAL. However, as I'm investigating more about DTOs, my ...
-1
votes
1answer
21 views

User list and roles integration

I work for a brand new start-up who wants to roll out a product. One of the task for me is to integrate the existing user and role details of the client company and integrate it with our company ...
1
vote
1answer
60 views

Message passing interface between protocol layers

Let's imagine a custom network application having 3 protocol layers. Layer A is the top-level protocol and layer C is the lower level protocol. Each layer has its distinct functionalities. These ...
3
votes
4answers
169 views

How to Handle Item Prices Change for Reporting

I am building a Point of sales software with Sql Server 2008-R2. I am now confused about how to handle multiple items with prices change. Let us say price of Pepsi is $2.0 on 10-09-2019 but today it'...
2
votes
0answers
21 views

Do I need a queue manager over the database generating execution requests?

I am developing a multi-user application where a user interacts with the UI and submits execution requests (ER). Each user can submit multiple ERs one after the other and multiple users may submit ERs ...
3
votes
2answers
543 views

Method naming: to vs as vs get

Do the words to, as and get have any special meaning when used in method names? Examples to new Integer(4).toString() get Integer.getInteger("system.unknown.property",4) as Arrays.asList(...
10
votes
6answers
693 views

What is the best definition for Dependency Injection?

Every time someone reaches me and asks me to define the Dependency Injection in a conceptual way and explain the real pros and cons of using DI in software design. I confess that I have some ...
0
votes
1answer
20 views

Application which checks urls from different locations

I'm building an application which monitors uptime of hosts/ip addresses. I'm using Laravel + VueJS. So the app should check lots of urls every minute and get & store in db http responses. I've ...
4
votes
3answers
444 views

Are arrays -as data structures- suitable for constructors?

My question comes from this other question. The first time I read the question, I understood (maybe worngly) that the OP was asking for a different way to initialize the object in such a way that it ...
0
votes
0answers
26 views

Options for Building Image Library for Products

I'm not even sure how to word this question. Background I'm building a platform for product businesses to use that will take online orders from their customers. It's a fairly simple concept, but ...
-2
votes
1answer
62 views

Why does putty store sessions in the registry? [closed]

I recently wanted to copy my putty config from one laptop to another. I figured there would be a directory somewhere which stored the IP addresses etc as some form of text file. I was surprised to ...
1
vote
2answers
158 views

Querying Active Directory from SQL Server

We always used C# to query Active Directory, recently we need to add a patch to some code and it would be easier for us to query Active Directory straight from SQL DB as then we won't need to make ...
-1
votes
1answer
155 views

Design Unstoppable Service

I have developed a Windows Service to prevent user from using the camera on group of computers. However, I am trying to find a way to ensure the service is never deleted. I tried CanStop in .NET ...
18
votes
7answers
29k views

Ways to have a history of changes of database entries

What are ways to allow the versioning of database entries (data)? Think of the content-managment-systems abilities to revert back changes of articles. What are their pros/cons?
4
votes
4answers
1k views

Idempotency and concurrency in a REST web service

Is concurrency and idempotency mutually exclusive for a REST web service or can it be done so a service can be both concurrent and idempotent? Using a optimistic lock methodology like using Version ...