Stack Exchange Network

Stack Exchange network consists of 175 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.

31
votes
10answers
5k views

How to encourage a team to refactor [duplicate]

I am on a team of ~20 people that is part of a very large organization. We have been using the same codebase for ~5 years and have released multiple derivative projects from it. I've had some 1:1 ...
4
votes
4answers
203 views

Splitting application into multiple but keeping database same

I have a medium scale e-commerce application. Over a period of time our monolithic project got quite heavy in terms of code base. I was exploring the solutions for it and found micro-services is one ...
0
votes
1answer
145 views

Methods linking bad/good practices

I have multiple methods calling each other to simplify changing anything in the code and to avoid fixing errors and copy pasting. It looks like this: Is this a bad practice? Does it cause too much ...
0
votes
1answer
95 views

One-field interfaces

I have an interface with only one title field: protocol Artist { var title: String { get } } (A) Should I pass the whole object as I did here: class Album { func setArtist(_ artist: Artist) ...
0
votes
2answers
61 views

Most efficient way to get unique customer count

I'm working on a system that stores details of customer purchases for several stores. One statistic that they would like is to know how many unique customers they have had over a specified day range, ...
1
vote
1answer
153 views

Data replication in microservices

We are trying to move from a monolithic architecture to a microservice architecture. We thought of what would be the best way to segregate our services and started doing so one by one. Now we have a ...
0
votes
1answer
87 views

What approaches are there to making apps homoiconic from users' perspectives; which are good, which bad, and why?

In terms of an application that's about affording its end-uses the ability to add, view, and manipulate their own data (like Podio, Trello, Redbooth, Asana, et cetera), I'm wondering how it can be ...
-1
votes
1answer
121 views

Start frontend development with incomplete analysis, delayed backend and no API

To give a bit of context first, I have been tasked to mentor an internship on creating a UI for a certain business need: Already 4 months were spend on analyzing, creating the business use cases ...
0
votes
1answer
78 views

Moving from a Coded Approach to a Stateless Approach

Our project is in its early stages and we are currently using Uncle Bob's Clean Architecture (also known as the Onion Architecture). An overview of our project is as follows: domain package ...
0
votes
0answers
490 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 ...
3
votes
2answers
135 views

How security metrics are verified in testing phase?

I am required to analyze and make an architecture of an application. While analyzing the requirements I find, in my system user personally identifiable information (PII) confidentiality is a very ...
2
votes
2answers
179 views

How to organize my test functions? (Part II: Keepin' it classy)

What are the best practices to organize your unit tests in classes? I see different possibilities: 1) One would be to write one "container" class for each function you want test and then ...
1
vote
2answers
103 views

Pattern for composing streaming operations without threads?

I'm working on a library that lets me write operation on an input "stream" of data (I don't call them that, but it's a potentially unbounded input regardless, think data coming from a socket). I ...
2
votes
4answers
122 views

Migration from Anemic Models to Rich Models

I am looking into improving my overall application architecture and (I think) I understand the issues my Anemic Models are causing. Here is my current architecture: Controller with injected Service ...
-1
votes
2answers
85 views

Is there an accepted way to track record metadata, CreatedOn/By etc?

I've worked with a lot of off-the-shelf systems and generally speaking they all, at a database level and above, have metadata such as CreatedBy/On, ModifiedBy/On etc against records/entities to give ...
3
votes
1answer
80 views

.NET shared libraries across team, using TFS and auto-NuGet publishing

My team and I had a discussion about our future architecture, since we've always just written the code that was needed in each separate project, which have now led to extremely redundant code across ...
-3
votes
1answer
104 views

Is throwing exceptions in Debug mode a bad idea? [on hold]

I am working in an iOS project which have two schemes enabled from configurations, Release Debug As you know Debug scheme is used for developers while developing features and testing etc. However, ...
0
votes
1answer
49 views

How would I use Azure Container Instances to parellelise a task?

I currently have a file processing task that runs on an on-prem VM, it's a .NET executable that also calls other services such as ffmpeg (for videos). As is, the task runs fine, but it's really only ...
1
vote
1answer
216 views

.NET Core Microservice messaging with Amazon SNS and SQS

So I've done some searching but can't seem to find a whole lot of suggestions on this topic. My question is what are some opinions on the best way to receive messages from an Amazon SQS queue on a ....
2
votes
1answer
55 views

How to indicate to backend that model need be updated or created new?

There's a complex model which represented by complex JSON with multiple fields and nested objects. Recently we have discussed in which way indicate to the backend that the object needs to be saved as ...
1
vote
1answer
148 views

Breaking 3-tier architecture into multi-tier architecture

Recently I have been working on a rather large system with Vue.js for a single page app (SPA) and an API for the backend. The customer is concerned with the security, performance and maintainability. ...
1
vote
0answers
230 views

Authorization, permissions, and scoping resources in a microservice/DDD architecture

I'm building a microservice-based application (services according to DDD) and am about to implement authorization service. There are API gateways and UI applications that access backend servers, and ...
1
vote
0answers
42 views

Dynamically start containers to isolate code compilation / running

I'm building a system where I need to measure certain algorithms, which are written by the end users. Obviously running external code is a huge security risk, therefore it needs to be isolated. The ...
2
votes
1answer
535 views

How to structure microservices in your repository

I am assigned to a project where we have about 20 micro-services. Each of them is in a separate repository without any references to any other, apart from one Nuget package where we maintain some ...
2
votes
1answer
43 views

Where to keep Ansible Inventory file

I keep my Ansible based deployment module in the same repository/directory as my application code. I use Mercurial for my VCS. The inventories file is ephemeral as the IP's of the cloud hosts keep on ...
1
vote
3answers
212 views

How to integrate different “microservices” into a transaction?

We're building a new web-based industrial application and one of the questions that are hammering our heads for the last few days is about the integration between different "microservices" on this ...
0
votes
1answer
127 views

Architecture for a Reddit-esque website

I'm trying to create a website as a forum similar to Reddit, but on a smaller scale (no comments also). The website will allow users to post a link to a forum. Then they can view a list of New or ...
6
votes
5answers
345 views

Design pattern for 2 methods one has 70% arguments of other one

I am trying to do a design for notification part in the system I have 2 parts inApp notification and email notification so I used strategy pattern where I have interface NotificationSender with one ...
1
vote
0answers
45 views

dealing with state data in an incremental migration from large legacy application

I have a very large monolithic legacy application that I am tasked with breaking into many context-bounded applications on a different architecture. My management is pushing for the old and new ...
2
votes
5answers
267 views

Which layer should have responsibility for rounding numbers?

I am developing a financial system and want to have a defined policy for rounding monetary values. Given the following layers: View API Entity Model Persistence If I am passing a monetary value ...
1
vote
1answer
159 views

Why read and write API are good or why not?

While designing a complex system some of my colleges came back with the idea of having two separates APIs, one that will perform the writes into de databases and another one that will only do the ...
0
votes
1answer
52 views

Architecture patterns or SaaS solutions for throttling outgoing messages?

I'm implementing my service on AWS as a set of stateless EC2 nodes controlled by an ASG, backed by an RDS instance. I need to throttle the overall number of outgoing messages my service sends but can'...
5
votes
2answers
482 views

Clean Architecture: Dependency Rule and Libraries/Frameworks

In Clean Architecture by Robert C. Martin the dependency rule points strictly from the outermost layer/ring to the innermost. As an example a Dependency Injection Framework should lie on the ...
0
votes
1answer
77 views

Where are: Domain, Aggregate, Entity on the picture?

I'm studying Domain driven design (DDD), reading many articles, but never found a simple explanation. Please, help, let's say we have a design: My bunch of question is: What is domain? ( where is ...
1
vote
2answers
446 views

DDD - Referencing Aggregate Root of other bounded context?

I'm building a personal project, as an introduction to DDD, I'm doing a little bit of analysis and can't get my head around it. My ERD looks as follows: To go over it, as an admin you can setup a ...
2
votes
1answer
126 views

Where to store data for Microservices Architecture?

I currently build applications that are fairly monolithic. I have a one or many code bases that compile into one single binary/package and deployed on a cluster of docker containers. All of the data ...
8
votes
3answers
920 views

Where should business logic sit in microservice architecture?

Still trying to wrap my head around microservice architecture since I'm used to a monolithic approach Suppose we try to build a extremely simplified Uber booking system. To simplify things we let's ...
0
votes
1answer
42 views

Custom remote logging strategies

I am implementing an asynchronous remote (to aws S3) logging handler (in python, but it doesn't matter) supporting 4 modes: Immediate: the messages get written immediately to S3 - I am trying to ...
0
votes
0answers
93 views

Which architectural patterns should I use for a decoupled notification system?

Background The application I work on use a command bus to handle events (REST API HTTP requests, commande line interface). This bus is built using the well known league/tactician package. Feature to ...
0
votes
1answer
142 views

Efficiently processing millions of records every minute

I am trying to improve the architecture of a system where data flows between 3 systems. Every minute, there are thousands of items generated on App 1, which are sent to Midpoint in the following way: ...
2
votes
2answers
86 views

Convert template type to derived type when calling a function?

Apologies if the title is incorrect, I couldn't think of better wording. I have the following code template <class E> void ResolveEntityHit(E& entity, Projectile& projectile) { ...
0
votes
2answers
188 views

How compatible are data science notebooks with clean architecture?

Clean architecture decouples an app's core from the presentation/UI layer. The UI is just a plugin, replaceable (eg, web-based to desktop) without impacting the core. Many data science apps mix code,...
0
votes
0answers
24 views

Propagating MDS Data - SQL Service Broker or SignalR?

Hopefully, this is the right forum for this type of question.. We have a set of common entities which are 'shared' throughout the company - much like Master Data Services (MDS) data. Everyone has ...
0
votes
1answer
68 views

Architecture for File migration from FTP to cloud service

We are building a new application for a client to manage their cases. They are already using their existing system in which they are storing files associated to the cases in an FTP folder. There is an ...
1
vote
1answer
93 views

Architecture of iterating over polymorphic types

I have a base type of Entity, and multiple implementations, Enemy, Bunker, Projectile I have separated these entities into their own containers so I can pass them to different classes to perform ...
0
votes
1answer
94 views

Is it possible to layer an API (REST, GraphQL, etc.) in front of data that is currently only accessible via an enterprise desktop GUI?

Currently, my thoughts are that GET requests would be feasible by using the concept of screen scraping combined with a cron job that runs at a set interval to scrape data from the GUI and sync to my ...
52
votes
13answers
6k views

How to stop wasting time designing architechture [closed]

I have recently graduated from university and started work as a programmer. I don't find it that hard to solve "technical" issues or do debugging with things that I would say have 1 solution. But ...
-2
votes
3answers
343 views

Are there any well known alternatives to the SOLID principles for OO programming? [closed]

I´m looking for some kind of better compilation of principles which takes the old basic concepts (DRY, KISS, etc...) and applies them to OOP related concepts like abstract clasess, interfaces etc... ...
1
vote
0answers
57 views

How can I have many application components partly share the same model?

I am trying to do the architecture of a new application we are building. We wanted something quite modular. Considering we are open source and we want other people to be able to easily add new ...
0
votes
1answer
70 views

Folder structure for child classes

I have a user feature. user feature also has other subfeatures user application details and user contact information. Usually, because application details and contact information are part of user ...