Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [architecture]

The high-level design and description of a software system. Architectural design distills away details of implementations, algorithms, and data representation to concentrate on the interaction of "black box" components.

-2
votes
0answers
22 views

Software architecture of building a set of similar mobile applications at once [on hold]

I would like to build around 500 mobile applications that have same functionality but different design for different 500 clients at once. The applications should be totally different when they ...
0
votes
0answers
16 views

Hosting repo editable by multiple users

Status Quo: A python script in a github repo creates structured text templates that non-technical users fill out, submit back to github, they go to github, get these peer reviewed, and merge for ...
-3
votes
2answers
123 views

Why are multiple backends in this system? [on hold]

I am trying to understand the architecture of the system described in this patent about aggregating and analyzing confidential data: https://patents.justia.com/patent/20180089196. The general ...
1
vote
3answers
92 views

Always return the parameter when it has changed inside the method?

When you have a method that is doing stuff and changes occur in the parameters, should you always return the changed object like this: public SomeModel DoSomething(SomeModel someModel) { [something ...
1
vote
0answers
12 views

Designing provisioning strategies

I'm trying to redesign a provisioning application that administrates other application through their REST API. The application is quite simple, we have groups, we have users and roles and we have a ...
1
vote
1answer
45 views

Is there some solutions that enable to perfrom sub transactions on business model?

My question is in the header. I would like to know is there architectural solution that enables to perform nested transactions on the business model. Let me to explain - the standard flow for web ...
0
votes
1answer
31 views

Publish / Subscribe Paradigm Implementation Problems

Reading the final chapter 6 of the paper "The Many Faces of Publish/Subscribe" I stumbled across: Decoupling is a desirable property because it enforces scalability at the abstraction level, by ...
93
votes
5answers
9k views

Aren't the guidelines of async/await usage in C# contradicting the concepts of good architecture and abstraction layering?

This question concerns the C# language, but I expect it to cover other languages such as Java or TypeScript. Microsoft recommends best practices on using asynchronous calls in .NET. Among these ...
1
vote
1answer
87 views

Handling multiple game modes with a game controller

I have a basic GameController with a finite state machine to handle game logic. I'm adding game modes and coming across problems cleanly implementing them. The core functionality of the game stays ...
0
votes
1answer
45 views

How to structure a set of classes that deal with external APIs for maximum testability?

I'm developing a set of classes designed to communicate with external APIs, and I'm running into trouble with how to properly structure everything for proper loose coupling and unit testing. ...
-3
votes
0answers
36 views

Choosing database for project managment application [closed]

Meanwhile ago our company has started to develop a complicated project management tool. As a database they chose Neo4j. Right now this app has become a really big monolith with lots of entities and ...
1
vote
1answer
70 views

Improvements in a “data - manager - wrapper” architecture

I have programmed using the architecture below, where "client, order, piece" are just data classes, have no methods, and "managers" are the manipulators of that data, the "ClothingStore" is a wrapper ...
2
votes
0answers
40 views

Data processing pipeline design for processing data

I have a use case for which I need to build a data processing pipeline Customer contact leads data coming from different data sources like csv, data base, api has to be first mapped to a universal ...
-1
votes
0answers
34 views

How many request we can make at a time using “request” middle ware in nodeJS application

I am running a cron job every 5 mins to get data from 3rd party API, It can be N number of request at a time from NodeJS application. Below are the details and code samples: 1> Running cron Job every ...
0
votes
2answers
65 views

DDD - view-only aggregate roots, building DTO and a lazy loading problem

Suppose I am developing a RSS system (following DDD practises). Users have accounts. Accounts have feeds. Feeds have articles. Account, Feed and Article are my aggregate roots as well as ...
0
votes
0answers
22 views

React (redux) reusable verification logic

I need to implement a logic which controls weather different components are enabled or disabled depending on a date and a configuration value. The date is selected by the user and the the ...
-2
votes
0answers
16 views

Using SSIS For seprating calculation from code

i have an idea that i want to discuss, i want to separate calculation from code, for example: we have a a vacation request from employee, in normal situation, there is a form which an employee fill ...
1
vote
1answer
64 views

Where and how to handle user password hashing in Clean Architecture?

I'm currently building a new application and trying to apply some of the principles of Clean Architecture. One of my first roadblocks is implementing my own Identity system (to avoid being tightly ...
0
votes
1answer
50 views

Firmware Design Document (FDD) for an embedded system

What is a firmware design document (FDD) in terms of an embedded system? I am working on developing an application that would be working on a customised board similar to the Xilinx Zynq Development ...
1
vote
5answers
240 views

Is it a good practice to use self-defined exception?

Our team has different opinions about the practice of using self-defined exception for handling the business logic. Someone says it is good as the exception comes meaningful and readable, and the ...
0
votes
1answer
54 views

How to define a structure to store some generic “Variable” classes for easy access later

I'm running into a design problem. My code is in C# but the concepts could apply to any OO language. I'm designing a framework to run experiments, and these experiments have several variables which ...
5
votes
2answers
340 views

When to create more microservices rather than inner functions

I'm trying to architect (breakdown) one application we have at my work in a few microservices. Before starting going down to the rabbit hole, I wanted to ask: when is a good idea to create another ...
1
vote
1answer
37 views

Cross-aggregate operations, use domain service or domain events?

I'm refactoring a settlements module in a large healthcare application. I'm trying to follow DDD. Let me give you a short and simplified description of the refactored code: A patient has an ...
-2
votes
0answers
37 views

How to maintain a web application for different clients with different UI and several customized functions?

We have an web application that mvc architecture and written in php. This application is used by different client that need different UI and also several module customization. This application is ...
2
votes
5answers
179 views

Design pattern for creating object hidden from client

I am having difficulty understanding which design pattern would be best for the following scenario. An application uses a database. That database can either be the production version (SQL) or a test ...
2
votes
1answer
153 views

What are the pros and cons of keeping most of an application's state in a single struct?

In my application, I have a few classes. Many of these classes share common state like a reference to the logger for example. For example, both A and B require some common state to get their job done. ...
-1
votes
1answer
73 views

How to ensure separation and inward dependencies between architectural layers in Python?

Suppose a large-scale project is being developed in Python 3.7. Some layered architecture is chosen: "clean architecture", "onion" or "hexagonal". The Dependency rule in it only allows inward-...
1
vote
1answer
138 views

Is this a valid site architecture?

We have a legacy site that was written a while back using MVC. It's a valid MVC for the most part except for the Data Access Layer. The site has Models, Views, and Controllers. However, instead of ...
92
votes
9answers
14k views

Why should I use dependency injection?

I am having a hard time looking for resources on why I should use dependency injection. Most of the resources that I see explains that it just passes an instance of an object to another instance of an ...
0
votes
1answer
120 views

Breaking a website into a bunch of micro services

Imagine we have a website happy-cooking-together.com. (I made it up so if becomes available all of a sudden don't take it for real.) It's getting quite a lot traffic and multiple teams are working on ...
1
vote
1answer
63 views

Managing a third party library that is used by multiple independent libraries

I am working on configuring the build environment for a C++ project that uses multiple libraries. These libraries are independent of each other, but they all depend on the same 3rd party library (...
-2
votes
0answers
15 views

Overview of how to build an “Actions/Activity” feature like the one in trello, where all actions are displayed in a last in time descending order

If I wanted to build a feature into my app as the one in trello where the latest actions of the team are displayed in a list order in descending (time). How would you design such a system to track ...
1
vote
1answer
100 views

Where and how to connect to external API in my service class?

In my service class I would like to connect to external API. Where and how should I do it? 1) Inject in constructor ExternalClass and assign to private property. Next in other property in constructor ...
0
votes
3answers
65 views

How to keep relationship integrity with Microservice Architecture

Currently when I build applications, I build them as one big monolithic application such that everything resides in a single compiled assembly and the data resides in one single SQL database (with ...
2
votes
0answers
77 views

Multi Domain and Channel Architecture optimal place for decisions?

I am struggling with some web application which is quite big and messy. There are several Domains that land on the server. domains can have a "channel" and every channel should use different ...
2
votes
1answer
72 views

Put functionality in same executable with command-line flag, or put it in a separate executable?

Background: I am working on a service where the domain logic exists as a library, and then the actual executable is built on a web framework as a wrapper around the domain logic library. There is no ...
-3
votes
2answers
103 views

Develop desktop apps with communication between

My boss asked me to develop for him a price quotes desktop software (he doesn't want a website), he wants to give the price list and the users of this software would write the prices according to the ...
18
votes
2answers
576 views

.NET Self Reference

I am evaluating an open source CMS called Piranha (http://piranhacms.org/) for use in one of my projects. I found the following code interesting and a bit confusing, at least to me. Can some help me ...
2
votes
1answer
181 views

How do I use polymorphism instead of instanceof?

I'm trying to make an abstract board game. In the game, a player can choose to make multiple actions within one turn such as placing, moving, or rotating a piece. I'm not sure if whether or not my ...
0
votes
1answer
84 views

How to Redesign and scale legacy MVC application

I’m working with legacy web app for managing an animal shelter which need to be rearchitected/redesign, so it can scale and be possible to deploy in a central location. Currently it's physically ...
0
votes
1answer
66 views

Factory pattern with creators

The software should be able to: Draw shapes on a drawing Save drawings Load drawings Adding a new shape should have a limited effect on existing code. There is no user cases, no clues about ...
1
vote
2answers
93 views

Microservice container database

I am just looking into microservices and containerization for learning. I have not really implemented anything yet. In principal I get a lot of the layers of the pattern. One thing I am not ...
-5
votes
1answer
57 views

App vendor vs Plugin vendor - who's responsible for fix?

An app generates a PDF based on user entered data in text fields. Copying and pasting users can inadvertently end up pasting "tags" in the field. Eg - <foo@bar.com> The PDF generator plugin ...
0
votes
0answers
29 views

Moving from Laravel Monolith to Lumen Microservices

Suppose, I have a big monolith application. Now, I want to move my monolith application into microservices. In that case, where should those Jobs go? My jobs update the DB rows. So, when I move the ...
0
votes
0answers
24 views

SSO with AWS Cognito

I'm trying to work out what the best plan of attack would be to get SSO functionality while continuing to use AWS Cognito. I've come up with a solution that works, but I'm curious if anything has any ...
1
vote
1answer
86 views

Design scalable solution with queue

Assuming the following scenario: A web application that receives inputs from the user and process the inputs through an algorithm which takes between 5 to 25 minutes (depending on the inputs) and ...
0
votes
1answer
43 views

Separation of concerns SOAP Services

I'm having a discussion in my company on how to structure a student enrollment application we are doing. We have an SOAP-Service for sending Emails. This Service is in charge of sending, and logging ...
0
votes
0answers
11 views

posting data to graphql endpoints

What I understood with GraphQL is a single endpoint with schema as post body. No doubt it has many advantages but what I couldn't understand is how to post data to the backend? Most of the examples ...
10
votes
2answers
825 views

Clean Architecture: What is the View Model?

In his book 'Clean Architecture', Uncle Bob says that the Presenter should put the data that it receives into something he calls the 'View Model'. Is this the same thing as the 'ViewModel' from the ...
3
votes
1answer
92 views

Sharding and application routing cross region on AWS

We current have a very simple Multi Tenant monolith, with a SQL SERVER backend (Self hosted on EC2 on AWS), and multiple application services talking to one DB behind an Classic AWS ELB. Our database ...