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
34 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 ...
2 votes
1 answer
158 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 ...
1 vote
1 answer
64 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 ...
1 vote
1 answer
80 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 ...
  • 121
1 vote
2 answers
81 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' ...
  • 311
2 votes
2 answers
212 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. ...
  • 379
1 vote
2 answers
108 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 ...
  • 311
0 votes
0 answers
38 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 ...
  • 311
0 votes
2 answers
102 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 ...
  • 611
0 votes
1 answer
83 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 ...
-1 votes
1 answer
109 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 ...
  • 2,266
0 votes
0 answers
65 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 ...
  • 9
0 votes
1 answer
66 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 ...
  • 2,467
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 ...
  • 1
2 votes
1 answer
149 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 ...
-2 votes
1 answer
107 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 ...
4 votes
2 answers
146 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 ...
0 votes
2 answers
248 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. ...
0 votes
1 answer
115 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()...
  • 143
0 votes
1 answer
71 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 ...
  • 109
-3 votes
2 answers
87 views

Coding style for a micro-service across organisation [closed]

Background/Context: A big organisation has several departments, those departments have several business units and those business units are divided into domain teams. Assuming domain teams are atomic ...
0 votes
2 answers
269 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 ...
  • 51
-1 votes
2 answers
68 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 ...
-1 votes
2 answers
130 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 ...
  • 131
1 vote
0 answers
44 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&...
  • 67
2 votes
1 answer
104 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 ...
0 votes
2 answers
80 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 ...
0 votes
0 answers
39 views

Design efficient real-time data subscription to reduce service workload

I am designing a service for a hobby app in JavaScript and looking for feedback on best way to design the service. TickerService Accepts an array of stock tickers. eg: ['AAPL', 'AMZN', ...] ...
  • 1
1 vote
1 answer
75 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 ...
0 votes
0 answers
50 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 ...
  • 175
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 & ...
0 votes
1 answer
406 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 ...
  • 217
0 votes
0 answers
47 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 ...
  • 217
0 votes
0 answers
63 views

Handling recurring events

I have a application built with nodejs. It's hosted on AWS and uses postgres as the database. The application allows for users to create bookings. When a booking is created, an email is sent to the ...
  • 101
0 votes
1 answer
121 views

Updating data when fetching

Is it possible to fetch data and update it if a time constraint has been met? Originally, my implementation was a cron job that regularly updated the data in my PostgreSQL table every minute on the ...
  • 103
0 votes
0 answers
30 views

How to implement an approval queue for created/updated/deleted records?

Say I have 5 different types of records which can be created, updated, and deleted. Each time one of these actions are performed, an item is added to a global queue which people need to look through ...
  • 2,467
0 votes
1 answer
86 views

How are asynchoronous problems handled with imperative programming?

Context To level set, I've been working with OOP and FP for my whole career, so my experience with the imperative paradigm is limited. The team I joined is made up of very senior (20+ years xp) ...
  • 1,257
0 votes
0 answers
72 views

How do we logically divide a Chatbot app meant to support both Slack & Microsoft Teams

We are building bot application that suppose to support both Slack & Teams. Both Slack & Team has a single Web hook endpoint which makes the app code tightly coupled with them and hard to make ...
  • 109
0 votes
2 answers
154 views

What is the computational overhead when running a relational database in several docker services instead of a single instance?

I want to move my current relational database installation into a docker container or a set of a docker containers. I have a web server with an associated relational database. I provide a set of 40 ...
  • 232
-2 votes
1 answer
335 views

Is this the right mechanism for 2 way heartbeat?

I have a software application where we have 2 services, say A and B. A delegates some long running work(tracked by an id) to B which is done asynchronously. They both talk via HTTP. Post submitting ...
2 votes
2 answers
341 views

Is Kafka a good idea for connecting a REST API with Worker which runs large computations per job in a queue?

We currently have a REST API service (let's call it as A) written in Python which triggers various heavy calculation jobs for Worker (W) written in Python as well. Both services are interconnected ...
0 votes
2 answers
193 views

Are microservices unfit for our domain logic

I work in a software company with a single product, a 25 year old monolith application (1.2m lines of code) handling all HR related data (employments, salary, collective agreements etc.). I've been ...
0 votes
1 answer
53 views

Implementing a text adventure using a deque filled in by procedures [closed]

Here, I suggested the following approach to implementation of a simple text adventure game (in Python). I think that this principle could be used to develop an adventure, similar to The Colossal Cave ...
  • 191
0 votes
0 answers
444 views

DDD: Where to put business logic with conditionals etc., is it a domain service?

I would think the answer to my question is yes, but I have never really seen it in practice or any OSS project (and links to any OSS sample projects are highly welcome because the typical examples ...
  • 119
4 votes
2 answers
699 views

How to manage the entity which have collection of child entities in DDD?

A play arena contain a list of Machines and Amenities playArena : guid : GUID name : string location: Location owner: string amenities: Amenities playing_machines: PlayingMachines ...
  • 149
-2 votes
1 answer
49 views

PDF service: using a REST API in front of queue vs publishing director to queue

We're building a PDF service for internal use, to permit common operations like HTML to PDF, merging PDFs, extracting pages, convert to/from other formats, etc. We intend to use a queueing mechanism ...
  • 1,036
1 vote
2 answers
141 views

Should domain know about exceptions thrown from outer layer?

Let's take a hypothetical system, a state based, exceptions thrown from persistence layer or other outer layer, should propagate to ui layer through domain layer. Domain need not know about this ...
0 votes
0 answers
23 views

Mapping data that were input to one module, to input to of module

Lets say we have typical trivial CRUD app: user sends data controller catch the request and map it controller sends data to service for processing structure: - api - request - ...
  • 231
0 votes
1 answer
430 views

What are the best practices in public API vs internal only API being on the same service

I wanted to understand what are the best industry practices and the pros-cons in the following 2 choices: A single service that serves internal only API and public API, vs 2 separate services - one ...
  • 101
0 votes
2 answers
146 views

Microservices that needs to change row in shared DB

I have an application that can be reduced/simplify to this flow: user sends request to app A app A inserts info about the request and user into DB ( marked as "B in progress" and "C in ...
  • 231

1
2
3 4 5
68