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
1
vote
0answers
54 views

Should class dependencies be organized in tree structure?

Is it doable, desirable to organize project classes, dependencies in Tree/DAG structure? To be more specific. In applications (not libraries) we have always some entry point, am I right? Some main ...
0
votes
1answer
99 views

Object Oriented Design of Callback Methods

Assume that there is a library and it provides an interface to its users in order to callback them. Users implement this interface and receive notifications from the library. Let's say, ICallback is ...
-2
votes
6answers
190 views

Should a helper function that remove duplicate spaces also trim the string?

In my opinion it should not since it violates single responsibility principle, but I am finding myself often calling both. Edit: here are the 'boring' details: As you all know, we cannot escape the ...
-4
votes
1answer
47 views

application can not handle certain amount of RPS when 3k+ sessions connected

i have a problem in my scalable Pub/Sub application that it can not take more than 30 RPS when big amount of sessions are open against it. first i will explain the application structure. the ...
0
votes
1answer
55 views

How to make sure all of the nodes process one API request behind a load balancer

I have an architectural question. I have an application which is subscribed to a log compacted Kafka topic. I have to process each event and store into a persistent datastore. I am planning to run the ...
1
vote
1answer
80 views

Modernizing legacy application

We have an application that has served us and our clients well from some 20 years now. Pretty good track record but it's obviously showing it's age in some areas. We are looking for advise and ...
3
votes
1answer
86 views

Separation of concerns and other best practices across Controllers, Services, Providers and Stores in ASP.NET when building a REST web api

I am traditionally a desktop app developer, but circumstance has thrust me into the role of doing web client and corresponding REST api logic for a project I am involved in. Unfortunately, I'm a one-...
-2
votes
2answers
132 views

Microservices with External Integration

I am creating a microservice based application which has to interact with Github through its API. Some of the microservices are Projects, Tasks, etc. My question is: should I have a microservice ...
-1
votes
1answer
43 views

Resolving Dependencies and Incompatibilities Deterministically

Problem Description I'm working in Python and I've been having a problem designing something to handle the following (abstracted) system: I have some objects (lets call them Nodes) that can be in ...
0
votes
0answers
70 views

Content-based reverse proxy for single tenant architecture?

I'm building a SaaS application with a single tenant architecture in Google Cloud. Each tenant has its own instance with its own subdomain (e.g., client1.myapp.com). I interact with some third-party ...
25
votes
6answers
5k views

How to structure commits when unit test requires refactoring

I'm trying to get a review for my lists of pros/cons about how to structure commits that came out of a discussion at my work. Here's the scenario: I have to add feature X to a legacy code base The ...
1
vote
1answer
51 views

design a BI dashboard system - data aggregation logic on frontend or backend?

I'm working with a system that is very similar to a BI dashboard. Basically let's say the dashboard will show a couple of company's business metrics, for example, revenue, refunds, number of orders, ...
0
votes
2answers
88 views

What's the pattern to share database to other module in security perspective?

In a large iOS application, I have a database module which is dedicated to handle application databases with read/write public APIs for other module. UI module has a feature to share the database, in ...
0
votes
0answers
54 views

Use of SQL Server with DDD in ASP.Net Web App

Hi I need to develop a new web application for my company and I must use DDD as per my senior-dev requirement. In addition I'm maintaining (adding new features and fixing bugs) a large brownfield web ...
0
votes
2answers
70 views

How to implement an app with an actions toolbar?

Say I am creating an app which contains selectable components and a toolbar/action bar. Some tools work on selected components only, some work on all components together. Pretty standard stuff. I can ...
1
vote
0answers
32 views

Does my ASP.NET architecture implement DDD in a safe and future proof way?

I'm very new to DDD and sometimes confused by it because many people inside the DDD community tend to have very different approaches when it comes to implementation. I tried to summarize all what I've ...
-4
votes
2answers
25 views

Relationship between the concepts “Product Architecture” “Software Architecture” and “Software Stack”

I am doing a report for Uni on an application developed by the team I am in. We have to deliver-among other things- a Technical Solution Document along with the application. One of the sections of ...
0
votes
0answers
32 views

How to implement micro-frontends with Native Apps?

I'm working with Web (react) and Mobile (IOS, Android) teams. And I find that even with a microservices architecture we end up always doing duplicated work at the front end/client level. How to ...
-2
votes
1answer
44 views

Design to method chain across packages

So bascially we have a library that contains a series of bifunctions passed in the metadata and datum looking like: Transform1: package transformation1; import com.fasterxml.jackson.databind....
1
vote
2answers
56 views

How to agree on message schema in a Publish–subscribe pattern

I'm working on a project that uses PubSub(GCP), my question is not specific to GCP, it's more regarding to the architectural pattern(I'm used to statically typed languages, and I have a hard time ...
1
vote
1answer
43 views

Different Types of Full Stack Architectures

I have built a few stacks in my time as a self-taught full-stack developer, but I think there may be a hole in my knowledge that you can hopefully fill in for me. I have built a few stacks that all ...
1
vote
1answer
67 views

DDD referencing child of aggregate root?

I am trying to learn DDD. I am modeling a property management domain and I think I have two contexts (subdomains?): a property management context and a resident context. Let's say I have an aggregate ...
0
votes
0answers
51 views

How do I decide if Domain-Driven Design would be applicable to this project?

I'm at the stage where I'm taking my MVP app and trying to refactor and structure it in a way that it is maintainable and extendible. I'm new to software architecture or design so I'm having early ...
1
vote
2answers
73 views

How to avoid duplicate data validations ( checks ) in web applications?

I'm learning about Software Architecture and especially about scaffolding large-scale architecture and patterns for modern web applications. I've noticed that I don't have a pattern for data ...
0
votes
2answers
114 views

How to ensure execution of a process that could take anywhere from 30 seconds to 3 hours

I've really been struggling with this concept a lot in my head, and I was hoping I could get a poke in the right direction here... I have a process that is supposed to take a certain number of phone ...
2
votes
1answer
67 views

Publisher-Subscriber architecture with central registry

Problem description Publisher-Subscriber architecture with a central registry where agents can either promote their capabilities or search for a given capability. The project must be developed with ...
1
vote
0answers
35 views

FreeRTOS based application architecture

I am going to use the FreeRTOS on my hardware platform. My plan is to model individual tasks as C structs containing task execution period, task priority, task stack size, task name and maybe another ...
1
vote
1answer
68 views

Do you need to implement TLS versions < 1.3 if you were to implement a TLS supporting library today?

I am looking at all the green and red boxes here, and am wondering what it would look like if one were to "implement TLS" today? What should you implement if you were to implement TLS today? Do you ...
0
votes
0answers
18 views

Porting a SYSV IPC multiprocess architecture to Windows

I'm looking at porting a Unix-based multi-process architecture server application. The app uses SYS V IPC shared memory and semaphores. It has a main message queue in shared memory, with semaphores ...
-4
votes
2answers
112 views

How to exploit efficiency of C? [closed]

I want to write a program that performs heavy computations and I want it to be as fast as possible, so I choose C to be the language. Nevertheless, I was told that in spite of its simplicity and high ...
0
votes
1answer
141 views

Go (Golang) efficient logic processing in a chat system

In order to build a messaging app, I have followed this example : https://github.com/gorilla/websocket/tree/master/examples/chat This consists of a Hub, running in a single goroutine in the program, ...
1
vote
2answers
67 views

Can I use Nodejs for intensive calculation and computing by offloading them to Java framework?

I am trying to design a Rest API backend based on Loopback. Since I heard nodejs is not very good in computing since it will block the thread, can I make a async call just for using java to calculate ...
-2
votes
3answers
75 views

Visualising a sprint as a delta to a software component diagram? [closed]

Given a software component diagram, a sprint could be represented as a delta of that diagram. That delta would reflect how the sprint affect the components. Each component could for example have a ...
1
vote
1answer
40 views

Scraper in separate repo from visualization component?

Let me explain my thoughts about architecture of the project I'm working on. The project code repository consist of: Scrapy component - of course it serves to scrape data, process it and calculate ...
1
vote
0answers
47 views

Identity and access management in Clean Architecture and MVC design

The application user has a lot of standard functionality we see in most applications. At a high-level, this includes some form of authentication, authorization, and session management. At a low-level, ...
-1
votes
4answers
121 views

Why use grid in frontend project for frontend project?

I am working on the architecture of a new website. I am confused about whether I use grid (like Sussy grid or Bootstrap grid) for my project or not. As I have worked on some websites in the past and ...
0
votes
0answers
16 views

Testing Proxy with its service

I have a program that contains client and api logic. In summary client works like this: 1) Client handles client code 2) Calling the API is surrounded in (lets call it ) ClientService 3) if client ...
0
votes
0answers
37 views

Should I use a Web API between a client and Entity Framework?

I am creating a database that will keep track of my company's clients, and an app that will allow users inside the company to read/update/etc. the database. I'm using code-first EF Core to manage the ...
0
votes
1answer
55 views

Caching strategy for a fast front-end search

I'd like to implement a fast, smooth search. Searched items are not that many: ~100 max. Each item holds the amount of data a facebook event would hold. They will all show up on initial load (maybe an ...
1
vote
1answer
75 views

How to approach deleting entities from database with foreign keys

In a microservice architecture I have a BREAD (CRUD) service that has methods for interacting with database that holds some number of different entities that reference each-other. I also use a Message ...
-5
votes
1answer
37 views

Sync local database with remote

My client has a business which work mostly in remote areas where internet felicity is limited, We have a central database and the branches in remote areas need to connect to the central database. We ...
-3
votes
1answer
51 views

Managing Caching, Service Failure handling when building Backend for frontend in API Gateway

I have 2 microservices. Users Service - REST API which provides user detail Statistics Service - REST API to provide different stats My goal is to provide a single interface to a Mobile App which ...
-3
votes
1answer
43 views

In which layer should a `MailerInterface` be?

Speaking about DDD, in which layer should a hypothetical MailerInterface be? I know the implementation (or adapters) for each specific mail sender package should be in the infrastructure, but these ...
0
votes
1answer
110 views

Decouple business logic from DTO

I've to implement some Backend Webservices, which provide a given, final JSON structure, which is allready in use on the FrontEnd side. This structure doesn't match the database structure, so I have ...
0
votes
1answer
27 views

Autoscaling containers on Azure

I have a web application that depends upon a set of R analytics. These R analytics read data from a database and perform machine learning, so have high CPU use. The R analytics are accessed through ...
0
votes
3answers
131 views

How would you improve this architecture for a travel website?

Context - I'm building a flight booking system (online travel agent) that will partner many airlines to sell their seats. I've designed my architecture to work like this: When a user searches for ...
0
votes
1answer
51 views

Process AMPQ messages both reliably and fast

I am new to RabbitMQ and herewith I want to make sure that I am not missing out on some advanced RabbitMQ feature or pattern I am not aware of. I need to develop a reliable system that processes a ...
2
votes
3answers
117 views

Should services in a service layer be thread safe?

This is for an Android app, but I think the question applies to any software designed with a service layer. Our app is structured with a presentation layer that handles the UI and a service layer ...
0
votes
0answers
257 views

DRY(Don't repeat yourself) Principle and BFFs (Backend-for-Frontend)

We are about to plan our server architecture and we want to use the BFF strategy with node.js servers to serve multiple front-end apps. However we also want to be able to scale easily (e.g. a new ...
-1
votes
1answer
62 views

How does a robust http server handle requests?

I have written many http(s) servers in Node.js and just take for granted that I can receive many requests and all IO operations are async. However, now I would like to try and implement an HTTP server ...

1 2
3
4 5
59