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.

Filter by
Sorted by
Tagged with
4
votes
1answer
155 views

A question regarding the Layered Architecture

Consider the following general form of a layered architecture : I need to check my understanding about the second layer from top . More specifically I need to check my understanding the regarding ...
1
vote
1answer
64 views

Spring Boot/Batch: Should every Job be separate Maven module?

I'm building a backend service powered by Spring Batch which enables to define and Jobs. Currently, I have several jobs, that essentially, aren't related one to another. So, I have one application....
0
votes
0answers
13 views

How to design event processing on cloud with write backs to primary data source

I have an application which mainly deals with business workflow management. In this, there are going to be many events which will be processed async. The application raises the event and these events ...
0
votes
1answer
53 views

How to structure separate projects in a single solution? i.e project.Domain etc in C#

So this is a very beginner question, so please do be patient with me: But I am building a little practice project and what I am struggling to understand is the overall structure of the solution, in ...
4
votes
1answer
197 views

Repeating a state in a state machine

I have a state machine in which I might have to restart something when needed (Say restart a hardware). But after restarting, I need to run some tests on the thing. If the tests fail, I need to stop ...
0
votes
1answer
88 views

To structure big and expandable project(s)

TLDR with bold I want to create a library (I think this is the right term) for my own reinforcement learning environments (envs for short). Most of the envs would be based on self-implemented games ...
2
votes
2answers
36 views

Microkernel architecture for insurance

Working in insurance usually mean you need to deal with a myriad of rules and logic for rating, policy, and claims processing. These are steps in the insurance lifecycle. Every insurance product (...
1
vote
0answers
73 views

Single page dashboard architecture

I am implementing a dashboard. I figured I'd make it work like a SPA for cleaner flow and better performance. When you click a sidebar link, the page/section gets loaded with AJAX. You can still ...
13
votes
1answer
5k views

Clean Architecture: Should each view have its own presenter and viewmodel?

I am still thinking about clean architecture and just ran into a question regarding the higher levels (Views and Presenters) I am posting Uncle Bobs picture first here that you remember what I am ...
2
votes
3answers
183 views

Is it a good idea to extend a class if it doesn't add new behaviour?

I'm working on a RPG so my character can equip a Weapon, Hat, Boots, Gloves, etc. So I have an Item class for the different items and the only class who adds new Behaviour is weapon. I'm not sure if ...
2
votes
1answer
90 views

How to build a modular/extensible Spring Boot application?

I'm developing a Spring boot / Batch application. What I'd like to do is to have a separated module for every job. This is a reasonable decision because different tasks (Spring Batch Job) have ...
2
votes
1answer
125 views

How to structure OOP multiple calculations?

I am working currently on a project that requires a series (almost 86) calculations to run based on a user data input. The problem is that each calculation has a series of requirements: Should be ...
1
vote
0answers
23 views

How to Upgrade MQ with incremental approach with 50 micro services

I have around 50 microservices which communicate with each other using Apache MQ implementation. I want to know if I can avoid big bang approach when I need to upgrade the MQ version. Current option ...
0
votes
1answer
52 views

Need for a domain model in a service in 3 tier architecture?

I am building an API Rest with Spring Boot and I would like to clarify a concept about my architecture, to see if the community can help me. Imagine that in my database I have a table called Person. ...
3
votes
2answers
224 views

Architecture for real time updates from the data in file system

I am trying to revamp my legacy application to make it scalable and performant. Its current architecture is something like this Consider a short-lived script that gets invocated 500k+ times a day, ...
2
votes
0answers
58 views

How to design job-handling for API

I am not sure if this is the correct place to ask, please direct me to the correct place if this is not it. Context I have written a do-all, keep-all, serve-all API (it started small, then grew out ...
0
votes
1answer
79 views

How can I store time series data like Google Analytics, Facebook, etc?

I'm thinking about this in terms of a No SQL database, more specifically MongoDB. So, I want to build something like Google Analytics where I will be taking in a ton of data and when it occurs so I ...
2
votes
3answers
138 views

How should I store time stamps so that it's easily accessible and won't take too much space

tldr at the bottom if you don't want to read all this! :) First of all the db I'm using is MongoDB! So I've been building a fun project and all has been well but I hit a small problem. Effectively, ...
0
votes
2answers
337 views

Does the term “master-slave” have the same meaning in software architecture, database schema, and distributed system replication?

From Software Architecture and Design Illuminated In the master-slave architecture, slaves provide replicated services to the master, and the master selects ...
0
votes
1answer
50 views

Sending an xml message as the payload to a web api

I have been tasked writing a "fire-and-forget" push web application, that can push high-volume XML messages (of several types) to multiple client endpoints over the internet (HTTPS). I don't need a ...
-4
votes
1answer
81 views

How can I distinguish between server-client and master-worker architectures?

How can I distinguish between server-client and master-worker architectures? is a pair of client and server a pair of a master and worker? is a pair of a master and worker a pair of client and server?...
2
votes
1answer
77 views

Collect Data of different Modules inside a Monolith

During my first attempt of implementing an project with the "Clean Architecture" I try to implementation a job portal where I came across a problem concerning the communication between (hopefully) two ...
2
votes
1answer
71 views

Separating Plotting and Computation Logic in Scientific Computing MVC App

I’m developing a Matlab GUI for a scientific computing application and need to plot fairly heavy intermediate results. Currently, the computation is represented as a function. The GUI accepts user ...
0
votes
2answers
103 views

Should a server call services on behalf of the user?

This is a general software architecture related question. This question is not related to a specifc programming language or service. The question is: "Should a server do things on behalf of the user ...
0
votes
0answers
34 views

RuntimeException or DomainException or LogicException in loader function?

Assume I have module of classes: EntityLoader loads some entity by id. EntityValidator checks preconditions, input data before saving changes. EntityUpdater saves changes. EntityLoader has method ...
4
votes
4answers
444 views

What kind of logic can Domain Objects realistically contain?

I have been struggling with this concept in the context of web applications ever since I first read about it. The theory states that the domain objects should encapsulate their behaviour and business ...
0
votes
2answers
122 views

Architectural solution for business logging

I have a the requirement for a webservice which should return a "business log" of the action the service performed. Usually I only return error logs which are based on exceptions. the exceptions get ...
0
votes
0answers
30 views

Repository Pattern without OR Mapper - Accessing of Attributes

I have a aggregate root called "Billing Document" which has some additional entities as attributes ("Billing lines"). I want to persist these objects together into my database. I read about the ...
-2
votes
2answers
65 views

Best architectural practices [closed]

I want ask experienced software developers and architects about best architectural practices for the following problem. Suppose we have two entities: Student and Teacher and each of these two ...
4
votes
3answers
431 views

Single massive solution - good idea?

I am analysing a Windows Forms application in .NET Framework 4.5.2 with 4 separate solutions with a combined 1.5million lines of code (and 10 years of development) Libraries.sln (54 projects) Tools....
1
vote
4answers
165 views

How to deal with huge enums that internalize a lot of different contexts without instead creating brittle mapping code in said contexts?

Let's assume that I have an attribute called Ticket_Case that has a predefined value (for the sake of arguments, say 1 to 20) that model different real-life use cases. They are an attribute to an ...
2
votes
2answers
86 views

Synchronous communcation vs caching in microservices

I'm trying to build a distributed system and have been researching how best to manage dependencies between services. The common example in tutorials is an ordering system - let's say I have a Catalog, ...
0
votes
3answers
114 views

Microservice should be an independent software unit - Up to which level?

I have read several times that a Microservice should be an independent software unit. But what does that mean exactly and is it really achievable for each business case? Does that mean that I can run ...
-1
votes
1answer
71 views

Need some criticism for my backend app Architecture

I have been learning Backend development for quite a while now and I decided to build a bigger project using Express.js and the MVC architecture, the project is basically a Restful API with Vue.js in ...
1
vote
0answers
73 views

How to trust servers in a network where anyone can add its own

I'm building a multiplayer game where anyone can add its own server but there is only one central server that contains the database where player information, like experience and gold, are stored. To ...
1
vote
4answers
191 views

Role of DTOs in Rich Domain Model

I work with Spring applications. Recently I have found this article about the Anemic Domain Model. They recommend putting logic in Entity classes. It solves a problem that Martin Fowler described in ...
2
votes
4answers
214 views

How to resolve cyclic dependencies in Event-driven systems?

Consider two services (bounded contexts by DDD): Sales Billing Sales is responsible for creating orders and Billing for handling payments. Sales tracks orders and Billing holds payments: Sales ...
1
vote
1answer
29 views

Do i need to check the existence of blogId/replyToUserId when building a blog's comment api?

I am building a blog system's comment api, and decided to provide the REST api like: post: /blogs/{blogId}/comments/ put: /blogs/{blogId}/comments/{commentId} These api accept the same parameter: ...
-2
votes
1answer
94 views

How do you implement an app autoupdate feature from scratch?

I am trying to imagine how Google Chrome automatically updates but have some questions: Is this against Apple's terms of service? I feel like I've seen somewhere that Chrome for MacOS isn't in the ...
1
vote
1answer
63 views

Component based architectures in JS / PHP: what indicators suggest that a UI element ought to be written as an importable component?

Please Note: I asked this question on Stack Overflow five days ago (see: Component based architectures in JS / PHP: what indicators suggest that a UI element ought to be written as an importable ...
2
votes
1answer
47 views

How does a push-based(write fanout) feed system handle unsubscribe logic, message erasure and new following user's message

I am curious about these three questions when building a push-based(write fanout) feed system: How does it handle the unsubscribe logic? To me, it seems to me that we has two choice: delete or keep ...
0
votes
1answer
204 views

Android project, clean architecture and modular approach

I have this project with MVVM and clean architecture well implemented but I've decided to split it into modules. Right now I have: apimodule apimodule: with the retrofit dependencies app: with the ...
0
votes
0answers
32 views

Can reactive streams simplify API development even for low-scale applications?

The mainstream opinion about using a reactive non-blocking backend is that it increases performance for large numbers of clients but sacrifices maintainability due to increased complexity. I am in a ...
2
votes
1answer
53 views

ReactJS with Elasticsearch App Architecture

I want some advice regarding my architecture and hosting options. I'm attempting to build an e-commerce site for e-books. It will use nestJS for the backend and ReactJS+Typescript for the frontend. ...
0
votes
0answers
66 views

Can one Application Service call the Application Service from another Bounded Context?

First bounded context: Requisites Here we store user's organization requisites (Title, Logo, ID numbers, Bank requisites) Second bounded context: Bank Integration Here we have all use cases that ...
0
votes
1answer
134 views

Integrating with real-time data from multiple devices with accelerometer

I am designing a MVP for a simple gamification system for a trampoline park(s). External company is providing bracelets for customers, then collecting this data in their own web app, where they ...
1
vote
0answers
40 views

The most reliable way to deliver data to external storages

I have a question about best-practices in terms of reliability. There is some data residing in RAM of some process and the data needs to be delivered in a bunch of external storage providing the ...
1
vote
1answer
137 views

Who does what and who lives where?

Hexagonal Architecture seems to make so much sense when I read about it (like more than I can say; the ultimate eureka moment), but actually implementing it is a different story. I more or less ...
3
votes
1answer
125 views

Is there a simpler approach than abstract factories for handling similar, but branching, logic?

I have a medium-sized Angular-based web application that I'm currently implementing some permission components for. Overall, the areas where the permissions components will be used are virtually ...
2
votes
1answer
69 views

Which is the better architecture to follow for API Development in Java using any RDBMS database backend?

This question is regarding the better architecture to follow for API Development in Java using any RDBMS database backend. Currently, we are using the below approach to fetch data from database and ...

1 2 3
4
5
59