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
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

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.

1
vote
1answer
101 views

If we are allowing anonymous users to register inside our web site, how we can prevent hackers from occupying others' email address

I am planning to start a new asp.net core MVC web application. One of the features we are having is that anonymous users can register inside our web application by entering their email addresses. then ...
0
votes
1answer
30 views

Designing a WPF / MVVM architecture where view behavior changes in different states

As part of my bachelors thesis, I'm trying to develop something akin to a painting program. That means, I have a toolset, be it selection, drawing, highlighting, etc. I'll have a canvas that displays ...
0
votes
1answer
70 views

Architectural principles for creating a large-scale email server that doesn't get blacklisted

I am considering what it takes to implement an email server. Google Cloud basically doesn't allow you to send emails at scale (they block the email ports pretty much), though it sounds like you could ...
0
votes
2answers
59 views

What is the appropriate architecture to access variable in parent from element of child list?

I have a Parent object which looks like this (pseudocode): class Parent { String token; Child[] children; } It contains a token string and an array of Child objects. My problem is that each of ...
-1
votes
1answer
44 views

Documenting a distributed application [on hold]

Recently, I've became the integration lead for a large distributed system. I have two main challenges before I can take on anything else: first document all system interfaces and it's relationships ...
1
vote
2answers
129 views

What is the best model to catch DB side error?

We have a web application that all update, insert and DB operation procedure handle via SQL Server DB 2017. What is the best way to handle and get error (in Web-app or SQL server error handler?). for ...
0
votes
1answer
91 views

How to maintain consistency on write when using Event Sourcing on a Banking System

We have a system that holds credit balances, and we thought event sourcing would be a good fit. Getting the current balance by reading from an eventually consistent projection works. However, I ...
-2
votes
1answer
33 views

How to categorise credit card transactions at scale [on hold]

I’m designing an application to categorise my spending rather than going to one of the bigger establishments. The application will receive a CSV or whatever my bank producers as a statement, parse it, ...
-2
votes
1answer
48 views

Interface for abstract base class [duplicate]

I'm planning an application in C# which has a feature of sending messages. ATM I'm doing the non-businesslogics and frameworking stuff. The idea was to make an abstract base class which is inherited ...
0
votes
2answers
57 views

Approach to handling multiple instances of an application that make large database operations simultaneously

So, essentially the flow of my application works like this: A user selects some options to start a process on the server. Once they hit submit, on the server it opens up a console application that ...
0
votes
1answer
27 views

How to approach to ES/CQRS in serverless cloud?

Let's say I want to use CosmosDB for Event Store, where have single collection for all events. Currently it is not horizontally partitioned, but it is a possibility for future. Now, I need to ...
1
vote
1answer
75 views

DDD / Onion architecture in JavaScript

One reason I like .NET is because the 'solutions' and 'projects' lends themselves to good architecture. Good architecture makes it easy to follow the happy path of Domain-Driven Design. I've fallen ...
2
votes
1answer
125 views

How can I optimize an alert system that processes 1000 requests / hour?

I am building a solution where IoT-devices send in measurement-data to an API that's hosted on AWS. For each measurement-type the user can set a threshold value; that when reached will trigger an ...
-1
votes
3answers
278 views

Why those famous open source tools don't make them also a good-designed library? [closed]

There are a lot of famous open source tools, for example: gcc, git, mercurial and etc. However, they don't provide a nice API for developer. Someone will say, they are command-line tools instead of ...
51
votes
6answers
12k views

How to deal with fear of taking dependencies

The team I'm in creates components that can be used by the company's partners to integrate with our platform. As such, I agree we should take extreme care when introducing (third-party) dependencies. ...
1
vote
2answers
60 views

CQRS and Transactional Event Sourcing, problem while recreating Read DB

I'll first explain the context of my problem. The backend of my current project is using DDD, CQRS and Event Sourcing as a stack (the read DB being a MongoDB, my write DB being an event store). At ...
0
votes
0answers
40 views

Data integrity across multiple services

I am trying to explore the patterns around data integrity when applying multiple services with access to the same storage. Let's say I have Service1, which runs in 3 instances. Whenever an instance ...
1
vote
0answers
48 views

Running medium duration critical distributed jobs every minute

I have the following requirement: There are about a 100 recurring jobs that needs to run every one minute. This job has an IO intensive phase, followed by a CPU intensive phase, followed again by ...
14
votes
4answers
2k views

Why not use SQL instead of GraphQL?

Recently I learned about GraphQL which claims to be superior to RESTful. However, I started wondering why don't we simply put SQL statements into an HTTP GET request. For example, in GraphQL I would ...
1
vote
0answers
31 views

How to manage cart details across various devices

Recently I was asked in a interview to implement to e-commerce site . One of the requirement was to maintain cart details across various devices .(i.e) if user adds a book from his iPhone , and when ...
22
votes
6answers
13k views

Am I breaking OOP practice with this architecture?

I have a web application. I don't believe the technology is important. The structure is an N-tier application, shown in the image on the left. There are 3 layers. UI (MVC pattern), Business Logic ...
-1
votes
1answer
98 views

how to expose complex actions in RESTApi using http verbs

consider the following REST resource Account { number:"number-000", name: "name", customer : {}, type : {}, status : "status", balance : 0, rating : 0.0 } Now say we have the ...
1
vote
1answer
49 views

How to design sequential requests to third-party APIs?

I need to implement the following flow: Back-end makes HTTP request to Service A, waits for a response from Service A, then makes HTTP request to Service B, waits for a response, then makes ...
1
vote
1answer
89 views

Architecting a predictive modeling software

I have a predictive model which runs 10,000+ scenarios to predict the outcome. It's a micro-simulator model for an insurance company. The data part is almost static with changes from time-to-time, ...
6
votes
3answers
541 views

How should I design database, where I have 30 users, each who needs full access to their data?

I work for something like a consulting company. I have a web application that I built for one client. Now around 30 other clients want about the same product. The problem is, I don't know where to put ...
3
votes
1answer
90 views

Microservice architecture for multiple composite data entities

We have a high read, low write website which currently has monolithic architecture on back end. We have recently started breaking it into micro-services. We have designed some micro-services - ...
2
votes
2answers
78 views

API Race conditions

I have an API in which we expect a emailID and a certain deal data. The case is we want to keep the dealId and contactId(email) to be unique. Creating a deal requires data insertion in multiple ...
0
votes
1answer
59 views

Class dependencies handling guideline

I've been programming professionally for over 7 years now, always trying to follow the best practices. During this time my approach on dependencies evolved multiple times: Static classes Create every ...
40
votes
10answers
5k views

Applicability of Single Responsibility Principle

I recently came by a seemingly trivial architectural problem. I had a simple repository in my code that was called like this (code is in C#): var user = /* create user somehow */; _userRepository.Add(...
0
votes
1answer
56 views

Custom service layer logic vs Custom DB query

I am trying to confirm best practice around architecture I am working with. Frontend <-> API gateway <-> Service layer (Rest API) <-> DB I have an incoming request which is asking for huge ...
0
votes
2answers
94 views

Does creating multiple REST services calling each other from a monolithic EJB application right approach to make them microservices later?

We are doing an architectural refactoring to convert a monolithic J2EE EJB application to Spring services. In order to do that I'm creating services by breaking the application against the joints of ...
3
votes
1answer
186 views

Does it make sense to authenticate a method that exposes non-sensitive data

We're developing an Angular application that consumes a web method exposing some information that is not sensitive, just bus seat promotions; the user enters where he wants to go and when and he will ...
12
votes
4answers
443 views

Is it problematic to have a dependency between objects of the same layer in a layered software architecture?

Considering a medium-big software with an n-layer architecture and dependency injection, I am comfortable to say that an object belonging to a layer can depend on objects from lower layers but never ...
1
vote
1answer
80 views

Ideas for designing a system for processing status updates [closed]

Given that this question is related to my work, I will simplify what I need to do. The system consists of 4 primary types of statuses (internally, we call them events): Working, not operating ...
1
vote
2answers
68 views

How to deal with delayed updates?

I have a microservice-based system that has a product service and a store service. I'm using eventstore to propagate events between microservices, so for example when a product is created, the store ...
0
votes
2answers
66 views

Bounded contexts and departments within company

We are working on several products as the IT department and we try to provide solutions for different departments within the same company. The core of our business is insurance and the main goal is to ...
1
vote
1answer
46 views

Recommended manner of installation for an open source web application and api?

I'm currently working on my own open source project. There are two parts to it at the moment, a .NET core web API and an Angular client side app. I would like to get your views on installation/setup ...
6
votes
3answers
330 views

How to model public IDs?

While creating the architecture of a new project I struggle to come up with a good solution to handle public IDs. For example our users will receive a membership card. Each card has the membership ID ...
2
votes
2answers
58 views

Syncing two Notifications and Merging them Into One

I am running into this issue: Suppose that there are two independent services, A and B, and both process messages from C. Suppose that I have a service X that needs to know if a message m from C was ...
1
vote
1answer
106 views

Microservice Architecture in Azure - Ideas for improving performance

We are about to develop a microservice architecture with azure functions inside azure. We thought about using interservice communication with durable functions. On app site we want to use an async ...
5
votes
2answers
171 views

How do you decide to group components in software architectures? [closed]

I am aware that this might be a question with only subjective responses, but i keep coming back to this thought. When you are designing a software's architecture, do you group components by their kind ...
1
vote
2answers
183 views

Clean Architecture: Is the Input Boundary necessary?

In Clean Architecture boundaries are interfaces, which I model in Python with abstract classes. The input boundary, which is between the controller and the interactor/use case does not need an ...
1
vote
1answer
42 views

How to deduplicate messages coming from having multiple instances of the same observer

I have a web application that is currently of some different services, one instance each. My current goal is to scale some of my services to ensure fail over. One big problem I foresee is that a ...
1
vote
1answer
87 views

Clean Architecture: Calling a Usecase from the Controller

In the context of Clean Architecture, is the following execution path right? The controller sends a request model (input) to an interactor. The interactor executes a use case dependent on the request ...
49
votes
10answers
11k views

Does splitting a potentially monolithic application into several smaller ones help prevent bugs? [closed]

Another way of asking this is; why do programs tend to be monolithic? I am thinking of something like an animation package like Maya, which people use for various different workflows. If the ...
2
votes
1answer
64 views

Angular class design dilemma

I'm trying to set up a good class diagram for my Angular application, however I have a problem figuring out how to solve the following situation: I created a base Link class that can be used anywhere ...
2
votes
1answer
58 views

Keep Hitting 3rd party API or Store Commonly Queried Data In DB?

Colleague and I have begun a long (and hopefully fruitful) project. I've been building and have come to my first crux, and now I ask the experts of the Stack Exchange for their guidance. I'll keep ...
2
votes
1answer
86 views

SOA vs Client-Server-Dispatcher vs Broker

I have a few questions regarding the three architecture patterns mentioned in the title. I'm having a little trouble trying to understand the advantages any one of them has over the others, especially ...
4
votes
2answers
84 views

Pandas based visual data cleaning tool

I am looking to build an web-application which would allow user to upload csv file - see preview of few rows in the file and then apply different cleansing and standardisation rules. For example the ...
6
votes
3answers
152 views

General question about REST principles

I am unsure, if I understand the principles of REST completely. The idea behind it is (according to e.g. Wiki and other sources) that data is transferred via HTTP(S) and addressed via URIs. Depending ...