All Questions

0
votes
1answer
42 views

Architecture for message processing with scheduling, at scale

I have to design the architecture of a system that processes messages in a distributed manner. If this were the only requirement, I would use a message queue like Kafka and distribute the work with ...
1
vote
1answer
45 views

Is the sequence diagram for the pull model for observer pattern the same as push model?

I've been looking at examples of sequence diagrams for observer pattern but most implement push model where the subject updates the observers. In a pull model how would it be different because ...
0
votes
4answers
112 views

Can systems have only one use case?

I'm building a news aggregation system that collects news articles from several websites, then classifies them into categories, tags them with keywords and saves them to a database. All actions are ...
2
votes
1answer
89 views

Blue-Green Deployment - What about data updates?

A lot of articles online give very simple examples on Blue-Green deployments. However, how would data update be handled? Say I have a column called Category with values (A, B, C, D). In my next ...
0
votes
0answers
12 views

Implementing multiple session support in a chatbot

I am currently implementing a Chatbot purely in python. In my current implementation, each time the user starts a new chat from a session, another Chatbot instance is launched and hence the Chatbot ...
0
votes
1answer
76 views

Determine if action is possible depending on many objects and notify state changes

In the game I'm developing I need to determine if an action is possible. Whether the action is possible is dependent on a number of factors spread across many objects (ActionDeterminers) in the game. ...
0
votes
0answers
81 views

Tradeoffs between Testability and Performance when filtering using SQL vs LINQ

My team has recently decided to adopt the CQRS pattern similar to the one used in the famous Microsoft EShopsOnContainers repository. In this solution, the queries are made in Query classes using ...
1
vote
1answer
52 views

Simple Audit Logging Design

I have a C# MVC application. One of the requirements of the application is to maintain an audit log of everything that happens to a particular 'entity' page. To make the example concrete, lets say ...
0
votes
0answers
53 views

How to cope with terminal operations in a fluent API?

I am trying to polish my data-mapping library and struggle with my fluent API design as it feels clumsy in some basic use-cases. The library focuses on defining mapping objects from one type into ...
0
votes
0answers
24 views

Do I need provide translation for an UI library

I have a library for a lockscreen in Android, that includes diferent dilogs for fingerprints, texts and all that stuff. My question is: What the best practice to provide localization. Should I have ...
0
votes
1answer
46 views

Using the same entity for different use cases

Suppose I have a User entity with name and age attributes. A User can own Boxes. A Box has the name and color attributes. Business rules dictate that one User can own at most 5 boxes. So, in this case,...
0
votes
0answers
20 views

Seperation of concerns: Submitting a form to create an email, store it and send it

Context I have a workflow that has an email form. The requirements are the following: A user completes the form that contains email fields and submits it. If everything goes well then an email model ...
0
votes
0answers
25 views

Best practice for deploying VUI program in multiple locations? [on hold]

Don't know if this belongs here... But I've written a custom Alexa for Business Skill for my organization. They are happy with how it works at "hq". But now we are moving into developing the same ...
-2
votes
0answers
31 views

Is wrapping Selenium WebDriver Methods makes it asynchronous? [closed]

As I know async/await keywords are converted in simple words in task.ContinueWith("All code after await operator") with AsyncStateMachine and so on. But I don't know details in what level calling ...
0
votes
0answers
35 views

Real-time application and RDBMS bottleneck

I'm currently developing a real-time application using .NET Core 2.2. Many IOT devices (could be up to 100) are concurrently sending messages via MQTT. These messages are parsed, elaborated to extract ...
0
votes
2answers
208 views

What arguments in favor of automatic, mandatory, uniform code formatting in a software project? [closed]

I am the manager of a small team of software engineers. I am looking for arguments in favor of automatic, mandatory code formatting. For me it is natural, it goes with the Quality Assurance process ...
0
votes
0answers
19 views

How to access legacy service from behind a reverse proxy

I have a set of services running in Docker containers and are all behind a reverse proxy. Some of those need to contact other non Docker services hosted on different machines. At the moment, Docker ...
1
vote
2answers
85 views

Can strict assertions at application startup omit or replace integration tests?

I wrote a startup-pipeline where definitions are passed via environment variables and are used together with (unit-tested) methods to create suite of several publications (for subscriptions) by some ...
1
vote
2answers
114 views

Interface with similar methods

I'm currently taking over a project that has a common pattern of interfaces like this: public interface EmailService { void sendInvitationEmail(Payload payload); void sendNotificationEmailToAdmin(...
0
votes
0answers
8 views

Is it good or common practice to have base fragments when developing android mobile application?

I'm creating a mobile app for a software design unit that I'm taking. Since I had multiple activities with similar layouts for the fragments(all implements recycler view) I created an abstract base ...
1
vote
1answer
24 views

At what size array in Swift would you consider switching to CoreData?

I've developed a reading tracking app in Swift and for simplicity's sake I used arrays for my model. It stores some data about the books a user reads and a small image of the cover. I save them to ...
-2
votes
0answers
25 views

Web Application to save code snippets in database [closed]

I am designing a web application where the user can enter the code. I am coding my server side in nodejs and using MongoDB as my database. I want to save the code entered by user in my database and ...
0
votes
1answer
56 views

DDD persistence through non-orm tools in java

So our domain model drove our database and ORMs worked for DDD implementations. Now the tables have been altered a lot and as a consequence ORM impedence is too much in our domain model to use ...
7
votes
6answers
3k views

Why do programming languages not let you use a try block without a catch block? [closed]

Why do languages demand catch blocks when they aren't needed? The compiler or parser complains with this code: try { const utils = require("applicationutils"); } But it is OK with this code: ...
-1
votes
0answers
32 views

RealTime Parallel DSP (Digital Signal Processing) in Java [closed]

Hi, I have a project of DSP, Multi Thread in Standalone, using Java. I have a Sound Receiver, it is a single Capturer and pass data in Wav format, I selected 8KHz for Sampling Frequency 1 Byte per ...
27
votes
8answers
9k views

Is my company merging branches wrong?

I recently came across an MSDN article about branching and merging and SCM: Branching and Merging Primer - Chris Birmele. In the article they say 'big bang merge' is a merging antipattern: Big ...
0
votes
0answers
15 views

Route requests based on path url to the same server which uses web sockets when implementing a load balancer

I have an online whiteboard where users connect to the same room depending on the last part of the url where the room name is present. The urls are dynamic and is created per new room. Eg: https://......
0
votes
0answers
8 views

Circuit breaker open when uploading large file [migrated]

I have an existing project with the following microservice architect. Client --> API Gateway(Spring cloud using Hystrix as circuit breaker) --> UploadService. When uploading small file(POST /upload/...
0
votes
1answer
87 views

Is my understanding of modern IDEs autosave feature naive? [duplicate]

Long time ago I learned that text files are not like Random access Files, i. e., adding or updating info at the beginning of a text file involves moving all the rest of the file "forward" (or ...
2
votes
1answer
62 views

Allow client side direct access to the database [duplicate]

I am asking advice from the SQL graybeards. Because my following proposition goes against everything I have practiced. In this instance Let's assume we are developing a phone app. A social network ...
1
vote
1answer
52 views

Is it normal approch get all items after post new item?

Problem description: Parent view displays a list of items. This view has button add a new item to list wich open modal for creating a new item. Two approaches how to do that: 1) POST Request -> ...
0
votes
4answers
257 views

Is Template design pattern a bad practice due to inheritance?

I have been using Template Design pattern in my code for implementing CRUD procedures for different resources. There are some steps which are same for many resources and some which need some addition/...
2
votes
2answers
201 views

How important is sprint test plan in agile?

I have been preparing a test plan for every sprint even if I have a master test plan just to plan the test for the current sprint. I am including topics like: Introduction Purpose Feature Overview ...
1
vote
1answer
116 views

Single Use Token without a database [closed]

Is there a way to generate a single use token for password recovery, without using a database? This is because, I have an application that doesn't have a database, and doesn't store or has access to ...
0
votes
1answer
88 views

Reset state or create new objects

I am developing a desktop application that will be run at each station at a call center. It listens for an incoming call, and whenever a call arrives, there are about 30 different classes that need ...
8
votes
9answers
588 views

Inheritance vs Composition For Chess Pieces

A quick search of this stackexchange shows that in general composition is generally considered more flexible than inheritance but as always it depends on the project etc and there are times when ...
0
votes
0answers
32 views

Design a way for multiple and single group mapped to a Role?

Currently I am trying to setup a relationship between user groups and roles. I am trying to satisfy: Multiple roles apply to single group multiple groups can have same role multiple ...
0
votes
1answer
80 views

Setters in ViewModels

So I have started reading some books and articles on architecture. They all state (put a little simply) that you should never let your view access the model directly, when using a Model-View-ViewModel ...
2
votes
2answers
234 views

Why does C# type pattern matching use a different variable scoping behavior than traditional switch blocks?

Traditional switch blocks have one scope, so the following throws a compiler error "A local variable or function named 'message' is already defined in this scope": switch(value) { case 1: ...
1
vote
1answer
115 views

At what point is having a static class with utility methods better than having an injectable service?

I have a pretty general question about the design of Angular web applications. I'm a big fan of writing services. Sometimes I write services that have only utility methods that don't require state at ...
2
votes
2answers
213 views

What pattern lets each of multiple “voters” decide on a central status?

Imagine there's a boolean status variable that is either running or stopped. This variable is running by default and comes together with a deactivator function. When a client calls the deactivator ...
0
votes
0answers
20 views

ACL entity and microservices database relations

I would like to build a microservices architecture to handle the following scenario: I have a building. The building has some kinds of devices. And the devices can be used by the users. In the system, ...
1
vote
2answers
73 views

Domain models vs entity models vs Hibernate lazy loading

In a new Java project I plan to use an extra layer above Hibernate entities. So there would be a CustomerEntity and CustomerDomain. The reason for that is that the CustomerDomain can contain extra ...
0
votes
1answer
60 views

RabbitMQ Consumer Architecture

I have been investigating using RabbitMQ for a publish/subscribe pattern across micro-services where aysnc calls are appropriate but I am having trouble understanding some concepts and could not find ...
0
votes
2answers
92 views

How to handle dependencies in Web APIs

I'm struggling with a decision about how to design a web-API where I create new "things". We roughly follow the API guidelines of Zalando, which do provide a nice starting point for web-APIs (https://...
1
vote
1answer
64 views

Mercurial topology in three stage implementation

A few years ago, now, we had a chap working with us who introduced the following topology for Mercurial... The main repository server obviously holds the primary repositories, as you'd expect, but ...
1
vote
0answers
91 views

How to store relational data belonging to different client customers?

My users will be businesses with a small number of accounts each: e.g. Business #1 with 3 users, Business #2 with 5 users, etc. I am trying to determine the best way to organise the relation (on ...
0
votes
0answers
29 views

Neural Networks object creation from OOP perspective [duplicate]

Let's say that I have a class representing the Neural Network. The neural network is composed of three bigger units: a subpart_1, subpart_2 and subpart_3, being called in such a way, that the output ...
0
votes
2answers
108 views

Passing data through public members

I am working with an existing numerical model implemented in C++, and I don't have much of a background in software design. This model reads in many (~100) of structured text files, performs numerous ...
0
votes
0answers
22 views

Pattern for re-use of connected react-redux component [closed]

I need to use the same redux connected Component on different "pages", but the data is different. So I pass an argument down (personTypeId) so it knows which data to use. For example, I have a ...

15 30 50 per page