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.

3
votes
1answer
72 views

Architecture for Large-Scale Matrix Multiplication: Distributed Architecture or One Strong Server

I've asked a question about Scaling Matrix Multiplication by CPU Cores on StackOverflow and it seems that merely adding more CPU cores to this problem won't reduce the time to do Matrix ...
0
votes
1answer
116 views

Help defining architecture - async messaging; web app as portal in web page

I don't know if this is a legitimate architecture that I've been playing with. It consists of nodejs servers for services and to create web app front ends. And it is using async messaging (Redis) to ...
0
votes
1answer
72 views

How do I abstract the request/response values between UI/Presentation?

I have given the following architecture: Layers: Bootstrapper MyApp.Start IoC-Container etc. UI Layer MyApp.Gui Views ViewModels Business Layer MyApp.Core DataGenerator DataGeneratorRequest ...
2
votes
1answer
892 views

Implementing a REST API in a Clean Architecture

I have been implementing a proof of concept application using Uncle Bob's Clean Architecture and I have run into a bit of a problem. Uncle Bob's architecture calls for the explicit separation of ...
3
votes
3answers
1k views

Onion architecture: layer placement of business logic

Where should the business logic for a project that utilizes Onion Architecture be placed? In my case, it's a C#-based project, utilizing Web API and possibly a MVC UI for the presentation. But ...
0
votes
0answers
38 views

GraphQL - should i enrich it with hypermedia

I know that GraphQL and REST are different approaches. But what if I need to provide hypermedia links and state transitions to my API design besides agile queries? Should I expose 2 different layers, ...
2
votes
0answers
228 views

Embedded software architecture - What is the difference between DAL and HAL?

I'd like to know what the difference is between hardware abstraction layer (HAL) and data abstraction layer (DAL) when speaking about embedded software. I might have the abbreviations wrong though... ...
1
vote
2answers
58 views

Reusable component with web service

I am trying to create a reusable component / Cocoa Touch Framework in Swift that would display the current weather based on the user’s location. Right now I cannot decide which approach should I take....
-2
votes
1answer
215 views

How to clean a refactor Java for-if-try-catch-else kind of messy code [duplicate]

Often I came across situations like this, how to write this code in a neat and clean way. One more issue I find here is performance as I am iteration a list and then it's properties. Edit : - while ...
0
votes
0answers
43 views

How can I group related functions within a use case?

Context In the context of a GraphQL API let's consider this query: query { blogPosts { id title body author { id name } ...
4
votes
2answers
307 views

Need to email customers once per year - best way to record this

We need to email our customers once per year (yes it's opt-in etc). As I see it we have 2 ways to record the fact we contacted them (so we know not to contact them for another year). A log, or a '...
1
vote
0answers
344 views

Where should I put my enums and interfaces?

I have an asp core MVC project for a college and I would like to implement a timetabling feature. To see if I could successfully even generate a dynamic HTML timetable, I started playing around in a ...
0
votes
1answer
98 views

Storing bank account data using Event Sourcing

Trying to change payment related stuff in current project, but still couldn't decide on architecture of small part. I hope you can share your feedbacks. Flow and state: We have payment account using ...
2
votes
3answers
105 views

Should I be worried about having too many services?

I'm making an online game and it has a server handling smaller game server. We call it "MasterServer". This MasterServer listens to commands from both TCP and HTTP and answers to them using its own ...
1
vote
4answers
909 views

What is the proper place for complex business logic

I have an object that describes a two-dimensional Graph: class Graph { var points; // Array of points } Now I need to find some complex patterns in this graph, like (but more complex): Find two ...
1
vote
1answer
232 views

What is the correct way for one presenter to communicate to another presenter or view with the MVP pattern on Android?

I have an activity with two fragments attached, Fragment/View A controlled by Presenter A and Fragment/View B controlled by Presenter B. View A is on the top half of the screen and does not change ...
1
vote
2answers
914 views

Email service in microservice architecture

Who should handle sending emails in microservice architecture if as a email sending using APIs like Sendgrid, Mandrill and etc? each microservice should send on their own, because it is just HTTP API ...
-1
votes
1answer
24 views

How to implement linkedin authentication/data sharing with multi party?

Hi I am working on application 2. My application interacts with application 1 and 3. Clients of application 1 need to be to share their linkedin profile information with application 3. I have ...
35
votes
6answers
8k views

In microservice, is it single database or single database instance for each service?

I understand that a each service in a microservice architecture should have its own database. However, by having its own database, does it actually mean simply having another database within the same ...
0
votes
2answers
132 views

What software/architecture patterns would fit into this client/server board game?

For the past few months I've been messing around with implementing my own version of a well-known board game. After much experimentation I've arrived on a few key points that describe my system: The ...
-2
votes
1answer
123 views

Avoiding multiple calls to SQL and persist data

I often received messages objects and for each of them I need to query the database in order to achieve some additional information from one database table. Since we are performing many requests to ...
0
votes
2answers
258 views

Preventing abuse of API which is called via client side Javascript

I'm setting up an AWS API Gateway + Lambda micro-service that will return non-sensitive but user-specific data.This means that the responses from the service can't be cached and served to multiple ...
0
votes
0answers
20 views

Web application with plugins: how to transfer orders between plugins

This question is about the application's architecture and is thus language independent. Should it matter: I'm using python 3.6 and http.server. Context and architecture I'm writing a software that ...
1
vote
0answers
89 views

Business Logic: 3-Layer-Architecture and Rich Domain Model

I have some questions about the "best" underlying architecture of software projects. I know, that there are different similiar posts but I'm really confused because it seems that everybody is telling ...
5
votes
3answers
289 views

Best practices on sharing code between open source libraries

I have an Android library used by a decent amount of people, let's call it library A. I am building a second library, library B. The two libraries are conceptually related, they solve different ...
2
votes
1answer
192 views

Is my three layer architecture well implemented?

I'm working with visual studio. The solution contains the 4 following projetcs : DAL Works with Entity framework + Repository pattern. It contains the DB classes + Repositorys. BLL It contains ...
1
vote
1answer
70 views

Resolving Higher/Lower level component dependency

I have a .NET application (actually this can be a problem for any N-Tiered application) which has 3 separate components. ClassLibrary Has Cross Cutting Concerns like logging, authentication and IoC ...
1
vote
1answer
63 views

How to design service layer when working with model objects and relationships

I have a simple relationship where top-level items (Recipe) have a one-to-many relationship to children (Ingredient) and each item has a unique identifier (ID). For simple CRUD operations the flow is:...
0
votes
2answers
123 views

design discussion, user experience first or correctness first in our case

We are discussing the system configuration module design in our Java medical device software. The system has a voice instruction function used to guide patient during the examination. Different ...
-2
votes
1answer
105 views

How are site-creation services built?

I have always wondered how sites like Blogger, Wordpress.com, Forumotion, Jcink or Forumatic (shut down) work but I can't seem to grasp an idea about how they're internally made. At first sight they ...
1
vote
1answer
615 views

Why is one way data flow (eg. React, Vue, Angular) faster than two way data binding with dirty checking?

I understand that two way data binding can be expensive and slow. For example, imagine a toy grocery list app that lets you list grocery items and their prices, and shows you the sum of the prices (...
4
votes
2answers
261 views

Clean Architecture: get instance in inner circle of class from outer circle

This might be an easy question for experienced software engineers. I'm currently reading the book Clean Architecture by Uncle Bob, and I'm trying to implement clean architecture in a Java project. ...
2
votes
1answer
257 views

Mircroservices - Ordering of Integration Events

I'm currently learning about event driven architecture and have the following 2 microservices. Product Service - Responsible for managing products Ordering Service - Responsible for processing orders ...
2
votes
2answers
102 views

Should a POST endpoint in a REST API allow the inclusion of related resources?

Given the following REST endpoints: (GET, POST) /api/v2/employer (GET) /api/v2/employer/{id} (GET, POST) /api/v2/employer/{id}/employees Should a consumer of this API have the ability to ...
1
vote
0answers
306 views

Should Flux mutation logic always be done in the store, or can it be delegated to a class?

(I am using Vuex but the question applies to any Flux architecture.) I don't have a great understanding of the reasoning behind Flux architecture. I understand that it is nice to have all of the ...
0
votes
1answer
96 views

Adding an additional layer between domain model and view model necessary?

I am working on a Xamarin application (Mvvm using Prism), I am also leveraging OData for communication between my backend and the mobile application. The structure of my Mobile app is as follows: ...
0
votes
1answer
55 views

Does Flux/Redux concept about application state put bounds on the size of application?

In Redux (React Flux implementation) guide https://redux.js.org/basics/reducers it is said, that In Redux, all the application state is stored as a single object My questions are: How seriously ...
0
votes
1answer
174 views

Consuming messages directly from a queue which belongs to a third party system

We are working on a project which interacts with multiple third party systems and they need each other's data to function. Now, for some data which needs to be in sync in multiple systems, we are ...
0
votes
2answers
42 views

Ensuring consistency between solr and oracle database

I have a java program, I want to insert data into oracle db and solr at the same time. How can I make sure that data in the db and solr are consistent?
3
votes
2answers
352 views

In which programming paradigm can't code reuse be (easily) achieved?

In a video about software architecture that I'm watching, it's stated that the main program/subroutine architectural style promotes modularity and function reuse Code reuse is one of the main ...
15
votes
4answers
2k views

Is “Clean Architecture” by Bob Martin a rule of thumb for all architectures or is it just one of the options?

I really liked the concepts in the video The Principles of Clean Architecture by Uncle Bob Martin. But I feel like this pattern is like a combination of Abstract Factory and Builder patterns at its ...
4
votes
2answers
57 views

Efficiency of horizontal scaling when Multiple Deployment of same container on a single Host

Do we get efficiency in terms of load handling when the same container (in this case the container has a apache server and a php application) is deployed 5 or more times (i.e. 5 or more containers are ...
1
vote
0answers
66 views

How to enforce separation of modules?

We're building an c#-dotnet-desktop application that's split into modules. Among other things, risk assessment leads to a classification into low, medium and high risk modules. The higher risk ones ...
0
votes
1answer
145 views

Should the aggregate root have a property that it cannot validate [duplicate]

I ran into the situation where I have to decide whether a property belongs to my aggregate or not. My domain logic is the following. A User has a group in his organization ex: IT, SALES, MARKETING. ...
0
votes
1answer
241 views

MVP - Model Layer Architecture - Where and how to Setup Entities and DAO

I'm coding a "small" application using MVP pattern that gets it's data from a SQL database. I'm not using an ORM out of the box, and for the sake of learning, I'm writing my own simple ORM/DAO type ...
3
votes
1answer
259 views

How to organize business logic which deals with different, but related objects

The task The piece of software I'm writing operates on the following object types: Agents Calls CallQueues These objects can be linked together, and each of them contains some additional ...
-1
votes
1answer
50 views

Implement Customizing records

I have the following tables: Organization. Articles Templates Organization is the parent of both articles and templates. On the articles index page, I display (by default) all templates for the ...
1
vote
2answers
222 views

What are the cons and pros of uploading an executable file and loading it in the backend?

I am developing a web-app, currently the application is being developed in both NodeJs and in ASP Net. We are structuring the application in micro-services. Lets say we have a service that calls some ...
0
votes
0answers
60 views

PubSub Vs. Implicit Invocation Architectural Pattern

Although the question was posted on Stackoverflow here no answer found and I feel the question may be more suitable for this site. So, what is the difference between public subscriber and implicit ...
109
votes
8answers
20k views

Criticism and disadvantages of dependency injection

Dependency injection (DI) is a well known and fashionable pattern. Most of engineers know its advantages, like: Making isolation in unit testing possible/easy Explicitly defining dependencies of a ...