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

Which web development stack should I use if core script is written in Python?

I am planning to take an existing Python script and "embed" it into a web app. The website will (via this script) help users do web scraping, data analysis, and output results in a table. My ...
1
vote
0answers
30 views

What is right way of using event aggregator/message bus

Recently I had conversation with colleague, who proposed that whole app could be driven through event aggregator (or message bus). I think this is really good pattern if someone wants to decouple ...
0
votes
0answers
46 views

How to reliably implement disk space quotas in an application?

Suppose we have a service which allows users to store files on a disk. The service should keep track of disk space used by a user and enforce a limit on the available space. Google Drive or Dropbox ...
0
votes
0answers
17 views

TransactionScope in DAO or in BLL (Business Logic Layer)?

I've been working with Entity Framework, Repositories, Unit of Work, DDD, CQRS... But I have an different challenge now...my company is working in the below architecture: Contrllers -> BLL (...
0
votes
1answer
38 views

Properly testing UI presenters without duplicating tests of subcomponents

I am writing the embedded firmware for an effect pedal. The pedal's ui consists of a few knobs a few buttons and a few leds and it consists of various control modes each corresponding to a seperate ...
2
votes
1answer
84 views

Sharding rule updating on DB scaling

When you have sharding, horizontal partitioning, you have multiple DBMS instances, and your server app chooses which one to use by some rule that uses record IDs. Well, for example, we have ...
-3
votes
0answers
34 views

C# Get Data from Any Lookup Table in API

We are looking to make API which gets data from any lookup table (with input as TableName), seeking good design principles. It will be sent to Angular web front end. The lookup table, can be Table and ...
0
votes
0answers
104 views

TaskManager class design

We implemented a TaskManager class for this purpose: execute a number of tasks asynchronously (off the UI thread) one after the other. Basically, this class includes a queue of tasks and the functions ...
1
vote
0answers
77 views

How to retrieve login token from repository in network layer? Domain Driven Design - DDD

I am trying to come up with a design for an application I am working on. Here is a basic picture of what I am looking to do. Everything up to the Data Layer is totally fine but the Data Layer makes ...
-2
votes
2answers
100 views

What is the most common approach for microservices to access data managed by other micro services?

I am exploring using a microservice architecture. Among others, this would include three services, an Orders Service, a Products Service, and a Fulfillment Service. Let's say the Fulfillment Service ...
-3
votes
0answers
52 views

Bank Account API Architecture Design [closed]

I want to integrate with bank accounts in my projects like fetching account details, transaction details etc. based on different regions like Ireland and UK. So as described in the diagram the request ...
-2
votes
0answers
67 views

Common base class of multiply inheriting classes

I'm using a 3rd party library with the following class hierarchy: class A {}; class B {}; class C1 : public A, public B {}; class C2 : public A, public B {}; What would be a type that accepts ...
2
votes
0answers
79 views

Is it correct to use Lombok in a domain object?

I'm starting the refactoring of a legacy app in favor of having a more organized structure, I chose to go with hexagonal architecture since I have lots of well-defined ports and adapters, my use cases ...
0
votes
1answer
45 views

How should I structure a solution allowing direct repo access *and* a BLL layer?

I was wondering whether there was a good established design pattern for sometimes allowing direct access from the presentation layer to one's repositories, but requiring the use of the BLL (because ...
0
votes
2answers
132 views

What is an affordable way to communicate real-time data between players in a game?

I have been building a card game web app with firebase. Because firestore charges by number of reads/writes, I have only been updating the opponents of your plays when you place a card, so other ...
0
votes
0answers
52 views

How to save to database and publish atomically? ( all or none )

I'm trying to implement microservice architecture to our application (basically an ecommerce) and one of the challenges that I can't really find a good answer for (despite being so many similar ...
2
votes
1answer
82 views

How to design asynchronous communication in microservices?

Intro Hey, my question is kind of hard to explain so I apologize in advance. Question I'm trying to implement microservices for our ecommerce and I'm having issues on how to respond to a request when ...
-4
votes
0answers
56 views

MVC GUI architecture for multiple Views per Controller

I'm starting a Geographical map application in Js which will handle hundreds, maybe thousands of 3 different types of elements. I'm considering MVC approach but I don't know how would be the best way ...
-4
votes
1answer
76 views

Does it make sense to use microservices on top of a monolithic data layer thats unlikely to change?

If you have a very large monolithic database that is not partitioned or sharded, with strong relationships between the tables/data, does it still make sense to use microservices as the application ...
0
votes
0answers
42 views

Handle big data sets in a web application in combination with real-time communication between web-clients

We have the following use case to be developing: A web application that shows a data table / data grid with up to 100000 rows and 30-50 columns. Each column is filterable and sortable. The web ...
1
vote
4answers
80 views

Achievement System based on many past records

I want to build an achievement system that awards certain badges based on conditions, I wonder how to tackle this, if for example, the user has ran 9999 kilometers, if I want to award him a badge when ...
0
votes
1answer
143 views

Multi-tenant system architecture to allow tenant specific and tenant agnostic data

How would you define the system architecture (mostly in terms of database structure) for a system which needs to have data available both at tenant level and organization level. An example of this is ...
1
vote
4answers
101 views

should microservices be orchestrated, or work independently

it might be too opinionated, but I've been struggling in this for far too long and cant seem to make up my mind. I am trying to compare two approaches to designing a system: Lets assume You want to ...
2
votes
2answers
170 views

How to keep C# interfaces organized?

I am working as part of the team on the web api application. The Entity Framework used as ORM, I have the idea to keep all selectors in services. E.g. we have Cat table, then would be ...
2
votes
0answers
43 views

AWS Serverless Microservice design

I am building an open source task management and note taking service that runs on AWS. I'm building it mostly as a hobby in my spare time and will eventually ship a mobile app that consume it into an ...
1
vote
3answers
77 views

Which of these model error handling strategies makes most sense?

I am building an API in expressjs and, currently, mongo/mongoose. I currently have some model methods that return true or false, some that return a value or false, and some that return a value or ...
0
votes
0answers
52 views

How to organize logic for table-like feature set? Looking for architecture pattern advice

I have a table-like feature set in a game. What it means is I have 10 types of battle, and 10 types of features related to battles, like hints, start/end logic, rewarding/spending resources, statistic ...
5
votes
6answers
360 views

Structuring a long sequence of operations

Imagine a production line - say, building a car. Starting from the beginning, a long, defined sequence of operations takes place, and at the end a car comes out. At various points along the way, ...
0
votes
1answer
104 views

Repository Pattern with Services Layer - Good Practice?

This is my first time I am using repository pattern and applying a layered architecture in a project. I have followed the article found here. The complete code found on the article can also be found ...
0
votes
0answers
26 views

Idempotent Kafka consumer with an “eventually consistent” database

What are my options if I want to make my Kafka consumer idempotent (due to Kafka's at-least-once semantics) if my project's only database is DynamoDB, which is eventually consistent? I'm afraid ...
0
votes
0answers
20 views

Why to use MetalLB for kubernetes Ingress when by default we need to reserve dedicated Ingress nodes?

I am new to kubernetes and I have created a HA cluster from scratch using kubeadm and ansible on offline premises. Although that I can understand / read most of the components online I recently ...
-1
votes
0answers
37 views

Representing paths SVG-style vs as bitmaps

When developing drawing-related applications, you have two extremes on how you store things. One option is what MS Paint takes - you just store the final bitmap, not caring about individual things ...
2
votes
1answer
68 views

Moving shared CQRS/Mediatr Request Handler logic into services and avoiding code/logic duplicity?

We recently embraced Clean Architecture and CQRS, by way of Mediatr, in several of our new applications. A similar (SPA-based) demo can be seen here. For many of our WebApi-based projects, this worked ...
0
votes
1answer
152 views

What is the most common stateless way for authentication in microservices?

I'm trying to get into Microservices by creating a project, so far I've stumbled upon authentication mechanisms, in a monolithic architecture, the client (web app) would send a request with the user ...
0
votes
0answers
46 views

Database Design for Form Builder

Hi guys I'm trying to create Form builder in my app for different Events that have happened and publish them, so the users can fill them out. Little About Logic: Forms are created per different Event ...
-3
votes
1answer
70 views

What would be the best approach to enable data access to millions of records in an open source fashion?

We're currently building a Django app that's a doctor-patient-agent manager that allows patients to book a consultation, and doctors give them their prescription and information. What's important is ...
0
votes
1answer
59 views

How to inform the controller why the object creation has failed so an appropriate response can be returned?

In my MVC web application the controller calls a service layer which takes any relevant request parameters and builds the model for the view e.g. Controller var model = _modelService.Build(id); return ...
0
votes
1answer
45 views

Using rest services or python modules directly?

Imagine you're in a Python setup, with all of the projects you're working on. Now, as a base line, you have a Python module that is the backbone (backbone.py) to everything when it comes to getting ...
-2
votes
1answer
73 views

What architectures allow for letting users author custom domain logic?

Are there any prescribed patterns or systems for allowing a user to create custom domain logic? Consider the following scenario An application exists that allows users to run complex calculations on ...
1
vote
1answer
104 views

Building a Microservices App — Can you give feedback on architecture?

I did some googling, and I was directed to Software Engineering to ask architecture questions. If you know of a different forum that could help me, please direct me to it I recently started learning ...
-1
votes
1answer
29 views

Should 2 different MySql databases from 2 different applications be joined together if the 2 apps are merging into 1?

This is a question about software architecture, not databases. I currently have 2 completely separate web applications, call them A and B for simplicity. They are on their own machines, with their own ...
0
votes
2answers
104 views

Should default settings be considered as business rules from the viewpoint of “Clean Architecture”?

The examples of default settings: Default port for server applications Default resources directory for Java Applications Default Webpack config file ("webpack.config.js") My particular ...
2
votes
2answers
163 views

Clean Architecture Gateway layer depends on outer layer

Looking at the clean architecture layers and flow diagrams, and implemented it my self in my applications, I've always wondered which layer is supposed to contain the DB, or any 3rd Party service or ...
0
votes
1answer
33 views

Multitenancy - Get tenant in microservices architecture

In a multi-tenant architecture where each tenant has its own database, what would be the best way for each of the microservices to obtain information about the tenant (such as which database to ...
-2
votes
1answer
125 views

To return or not - redundant data from method arguments

Which code should I prefere and why? Is there some general rule? Code 1: var apiLicenseInfo = GetLicenseFromApi(string userId, string deviceId); var localLicenseInfo = MapToLocalLicense(apiLicenseInfo)...
0
votes
0answers
35 views

WebApp architecture with multiple client

I'm investigating how I could achieve a project I've been thinking of for a while. Let me explain the project (I will not go into too much details, but I think what I'll write will be enough). So, I ...
2
votes
3answers
182 views

why and when is queues used in backend architectures?

I am implementing a backend with a typescript framework called nestjs and I was reading some documentation about their usage of queues. https://docs.nestjs.com/techniques/queues I have never used ...
8
votes
4answers
338 views

DDD in microservices - where to draw the line of responsibility of a microservice?

TLDR: If microservice A needs to combine data from services B & C (that are not aware of one another), should B (or C) do the data merging for service A, or it will be up to service A? In Details ...
1
vote
0answers
43 views

Golang / React Webapp Architecture

A project is structured as so: A build server listens to changes in two repositories: a frontend and backend repo. When it picks up a change it builds, tests, and deploys the updates to a production ...
2
votes
1answer
179 views

Method call order dependency

I have two camera devices that are able to find a specific hardware illuminated point in an image, as well as measuring the physical distance to the surface (and some more stuff I chose to leave out, ...

1
2 3 4 5
61