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
0 votes
0 answers
220 views

Event Driven architecture - right way to build chain of events

Let's say we have a ecommerce platform. When user create order - we should make several actions like Send push to client Send push to custome Send emails e.t.c Generally I see two diffrent aproaches ...
Ilya's user avatar
  • 101
2 votes
3 answers
855 views

CQRS in a data heavy application involving a lot of CRUD

I've been developing a non-trivial personal application and I thought I'd use CQRS to learn it. The application is very data entry heavy, lots of entities and lots of forms. I find myself constantly ...
David's user avatar
  • 153
-2 votes
1 answer
44 views

Inter Communication for applications in local network architecture

I am looking to architect an application that will run on the local network. What we have is: 'n' number of laptops connected to a local network All those laptops will be running that application ...
Desmnd's user avatar
  • 97
1 vote
1 answer
1k views

Mapping between Entity and ViewModel

I'm trying to make an application in ASP.NET MVC. I'm using AutoMapper for the conversion between entities and ViewModels. In most cases, this works fine, but when I need to add some additional data (...
Sam's user avatar
  • 65
0 votes
2 answers
505 views

Best practice ASP.NET MVC share code with Web API

I'm trying to develop an ASP.NET MVC-application with an additional Web API. To reduce code-duplication, I'd like to share as much code as possible, but with the possibility to differentiate between ...
Sam's user avatar
  • 65
0 votes
0 answers
97 views

WebApp: How and where to handle an expired authorization with 'back to login'

SituationI have a Single page web app with REST API. When the user logs in, they receive an authorization token. The token which will expire after some time. When the user tries to make a server ...
DarkTrick's user avatar
  • 207
1 vote
1 answer
275 views

Pulling a service out from a modular monolith

I've been looking into the Modular Monolith, especially how it's described by Kamil Gryzbek. From what I understand, the architecture should easily support pulling a single service out from the ...
Q-bertsuit's user avatar
0 votes
0 answers
166 views

Designing long running background jobs that are part of domain language

I am going to type out my problem in terms of my domain use case; When an Operator has an Ingest with a valid Dataset (Lowside, Drive and EntryPoints selected), they will opt to then Scan the Ingest. ...
Patrick Christie's user avatar
2 votes
1 answer
214 views

Microservices shouldn't run in a big machine?

I arrived in a project and they have 2 instances of a microservice. Each instance running in a 16gb RAM + 4 CPU setup in AWS (using Kubernetes), horizontally scalling up to 4 - 6 instances at peak ...
Matheus's user avatar
  • 173
1 vote
2 answers
319 views

DDD rich domain model - dynamic dependencies - EAA

class Product... public static Product newWordProcessor(String name) { return new Product(name, new CompleteRecognitionStrategy()); } Martin Fowler presents this code in his book "Patterns of ...
Ten Jones's user avatar
-1 votes
1 answer
120 views

How to automatically calculate the norm for users in our time registration application?

I'm creating a time registration application for employees where they can register their hours. I want to show the users their "norm" (not sure if this is an actual word or just made up by ...
Allart's user avatar
  • 99
-1 votes
1 answer
76 views

How to measure progress on a replatforming project?

I am working on re-platforming and migrating to microservice from an old monolithic application. But I need a way to measure the success and progress of the project. The things I thought about are: ...
HSLM's user avatar
  • 107
0 votes
1 answer
601 views

Clean Architecture : Application State

Given the following design from clean architecture in which layer would you put overall application state? In each state a subset of use cases are allowed to be invoked. For example if application is ...
hamid's user avatar
  • 9
4 votes
3 answers
1k views

Does it make sense to put all related records in one source file

With C# 9 and the introduction of record a lot of boiler plate code was remove from pure data objects. And after watching a dotnet community video on YouTube where then "joked" about it's ...
Qben's user avatar
  • 151
2 votes
3 answers
201 views

How do I design a drawing program with the separation of concerns?

Suppose you need to design a drawing program that relies on a geometric kernel library. Inside the geometric kernel library, you have the definition of Line, Circle, Ellipse classes with all the ...
abenci's user avatar
  • 217
0 votes
4 answers
275 views

Should clients send all required information to servers?

Should a service making a request send all the information another service requires from the requesting service to complete the requested service's job? Or should the requesting service send as little ...
user7340's user avatar
  • 136
0 votes
1 answer
190 views

Resource Specific Permissions in Microservice architecture

While building microservice-based architecture I came across a dilemma on how to approach company level permissions for given range (or ids) of resources, i.e. allowing certain users to access subset ...
Lubu's user avatar
  • 9
0 votes
0 answers
81 views

Data Replication Without Messages

We have a legacy API service and database at my workplace. My team works on a mobile app that uses this API for some particular data. You can think of this as DDD - our service shares some entities ...
Michal Moravik's user avatar
1 vote
4 answers
670 views

Avoiding Synchronous Communication Between Microservices

Something that annoys me when reading about decoupling microservices is that the problem is often stated, with either poorly explained, bad, or no solutions provided, which seems to especially be the ...
The Corn Inspector's user avatar
0 votes
0 answers
38 views

Clarifications on application/server architecture in manufacturing context

Context : I am currently task with building a software to support operators in a manufacturing plant. Due to the nature of the plant, the computers all have fairly weak processing power (given that ...
jake_dev's user avatar
2 votes
1 answer
273 views

What is the definition of 'Availability'?

In my research, I have found two conflicting definitions of 'availability' as it relates to software engineering and architecture. According to [1]: "The availability of a system can be ...
Jared Schreiber's user avatar
1 vote
1 answer
203 views

Django: Is there a reason to separate api calls into their own url endpoints?

I started a project awhile back and have made a lot of progress since then. In the beginning I didn't think much about restful architecture and how I'd serve data to the frontend. Now, however, it ...
noob112233's user avatar
0 votes
1 answer
125 views

Best practices to link, associate, or abstract similar but different entities together

What are the best practices that I can follow that can simplify or help abstract out entity modeling when there are many similar but different entities? I have a large game system with different types ...
user21918's user avatar
  • 111
1 vote
2 answers
143 views

Microservice Granularity: Should a service ever be broken into smaller services with a shared database?

I'm trying to understand the size of a micro service. Fake situation: Data is read 1,000,000 times for every write. So when you scale out you generally only care about scaling out for the 'GET' ...
nanotek's user avatar
  • 301
2 votes
2 answers
351 views

Relaxing layering rules for queries?

In a typical DDD layered architecture (application, domain & infrastructure layers) you'd generally declare interfaces in the domain/application layers and implement infrastructure-dependent (e.g. ...
plalx's user avatar
  • 389
0 votes
2 answers
223 views

Architecture for worker pool with different task complexities and sizes of boxes

I'm sorry if I'm using any wrong terminology here. I'm trying to design an architecture where there can be big and small tasks (e.g. processing big or small images). Big tasks can only be handled by ...
nanotek's user avatar
  • 301
0 votes
0 answers
42 views

How to handle maintenance to your queuing server (e.g. rabbitMQ)

I'm new to queuing and looking into options that could be done operationally. I'm sorry if I have any conceptual misunderstandings related to queuing. I watched this video where the presenter made a ...
nanotek's user avatar
  • 301
1 vote
2 answers
298 views

Where to save entity metadata in a Ports-And-Adapters Architecture

I’m using a hexagonal/clean/ports-and-adapter architecture. For the sake of simplicity, I’ll only talk about domain and infrastructure here, where the infrastructure has dependencies on the domain but ...
Mirco's user avatar
  • 651
0 votes
1 answer
390 views

How to integrate a Python server with Kafka?

I have the request to integrate my Python server application (Flask/waitress) with Kafka. That means that it should frequently poll a certain Kafka topic (on the order of minutes) and process all new ...
user3058865's user avatar
-1 votes
1 answer
118 views

Why do HTML and JS feel slow on smartphones? What could be changed to make them faster? [closed]

HTML rendering and javascript engines are very optimized, so why do they feel slow on smartphones? It seems that HTML's low performance justified the creation of mobiles "apps" which are ...
jokoon's user avatar
  • 2,242
1 vote
0 answers
225 views

Do we really need a message brocker in WebSocket system?

I'm engineering architecture of a new web based software. I've never worked on high-scale softwares before and I'm reading a lot about it. To increase client-side speed and reduce load on servers, and ...
vusra's user avatar
  • 19
0 votes
1 answer
2k views

How could creating symlinks/aliases to files on S3 work, while still taking advantage of CDN optimizations?

I am trying to imagine a website/system where only 1 copy of a file is ever stored, but multiple users get their own custom link to the file, and it uses the CDN features. For this question we can ...
Lance's user avatar
  • 2,587
0 votes
0 answers
49 views

Modelling Interfaces provided by different IPC frameworks

I'm stuck with a problem, where I don't know how to model interfaces that are provided by different IPC frameworks. Let's say, there is a camera component and two arbitrary components C1 and C2. The ...
Jens's user avatar
  • 1
3 votes
1 answer
509 views

Is websocket connection a driving adapter or driven adapter in hexagonal architecture

I am creating an application using hexagonal architecture. The application uses WebSocket connections to communicate with some outside clients. Communication works in both ways. the client can send a ...
Muhammad Saboor's user avatar
-2 votes
1 answer
248 views

Is it OK to use a Command Sourcing instead of Event Sourcing? Replay events in Commands-Repositories

I have a system that uses a graph database without any ORM, mapper or tool that tracks entity changes, like EntityFramework. I'm not using domain entities, instead I have an Event that calls changes ...
Augusto Will's user avatar
4 votes
2 answers
569 views

Microservice replica sync

In a microservice architecture, it's commonly admitted that each microservice should have its own replica from another "main" microservice acting as single source of truth. This keeps ...
djflex68's user avatar
0 votes
2 answers
698 views

How to separate UI and business logic when they are intertwined by design

I am refactoring a legacy codebase of an Angular SPA. The central entity of the app is the chat room, and there is a plethora of ways on how to enter a chat from different views all across the app. ...
user2195738's user avatar
0 votes
1 answer
216 views

Where to create repository instances?

I've several repositories. To make them testable, I add the ORM session in the constructor. class Repository: def __init__(session): self.session = session def save(object): self.session()...
Mr. B.'s user avatar
  • 143
0 votes
1 answer
86 views

How to design an ever evolving entity while offering backward compatibility

I have a website which lists expenses filtered by year and allows for editing. Over the years, the expense entity evolved. Some properties were removed and some properties were added. If you go back ...
Der's user avatar
  • 109
0 votes
2 answers
595 views

Is MVC a sensible design choice for a CLI application?

I am working on a CLI chess game that only involves 2 human players, I decided to make it follow the MVC architecture to ensure separation of concern and to make the possibility of a GUI/web ...
Yoh's user avatar
  • 51
-1 votes
2 answers
76 views

Handling In-App Credits better approach

I met 2 different approaches to handling in-app credits. If the problem is defined as: Allow a customer to purchase credits, which they're allowed to spend on different in-system items. The credits ...
Vladyslav Zavalykhatko's user avatar
-1 votes
2 answers
137 views

Appropriate design pattern for coupled Objects

I code an Object-Oriented simulation where you can have a Unit move on a Terrain. The cost of such move depends both on both Unit capabilities and Terrain features: a boat can move on water, a plane ...
Uriel's user avatar
  • 131
1 vote
0 answers
45 views

Separating Typeorm Entities from Domain Entities [duplicate]

Is it a bad approach to add domain logic inside typeorm entities if following the domain model pattern to organize business logic. import { Entity, PrimaryGeneratedColumn, Column } from "typeorm&...
Maak's user avatar
  • 67
2 votes
1 answer
154 views

Granularity of API Gateways to Service Balancers

OSS API Gateways typically come bundled with built-in load-balancing capabilities. We see this with Netflix Zuul and Kong. In a service-oriented architecture, where many microservices are talking to ...
hotmeatballsoup's user avatar
0 votes
2 answers
107 views

Publish-subscribe inside a single application

I've been using the publish-subscribe pattern for a while for communicating devices and it works really well, making it easy to add extra services without touching the rest. I'm thinking of using it ...
Josu Goñi's user avatar
1 vote
1 answer
81 views

Guaranteeing different availability requirements

I have different availability requirements (90%, 95%, 99% guaranteed uptime) for certain subsets of data. For example, the subsets of data are split based on the possible values A, B, C. What would be ...
Senne Verhaegen's user avatar
0 votes
0 answers
116 views

Should Infrastructural Services Listen to Domain Events

I'm building an infrastructural service with my team. We are building a service that will help other teams in our org send out a notifications to end users when certain events occur. We are currently ...
alaboudi's user avatar
  • 223
2 votes
3 answers
2k views

One db per microservice, on the same storage engine?

It is considered the best approach that a microservice db is private to it and shared nothing approach is the best. I recently came across a cloud based system which used postgres, mongodb & ...
Simple Fellow's user avatar
0 votes
1 answer
578 views

Clean Architecture for React App: Component / View / Page

Abstract I'm trying to figure out a solid, scalable, clean and practical architecture for react projects. As a a playground I have a project with two Screen and a JSON server. When I try to apply a ...
DarkTrick's user avatar
  • 207
0 votes
0 answers
50 views

How big should database adapters/gateways be?

Outline When you build an Adapter that connects your application and the database, How big should you make this adapter? Should it contain all possible queries that could be made to the DB? Do you ...
DarkTrick's user avatar
  • 207

1 2 3
4
5
70