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
4 answers
217 views

How to test a service that only connects other services

I'm currently scratching my and my colleagues head about whether and how we could test SyncService::syncFoo in any meaningful way that does not involve basically recreating the whole call tree as ...
gries's user avatar
  • 239
0 votes
1 answer
84 views

Generic message broker based on WCF

I apologize in advance for a long-read question, but i'm hardly stuck here and don`t how to ask for help using fewer words. I need to implement a middleware service which should be placed between two ...
Алексей К.'s user avatar
1 vote
1 answer
135 views

SwiftUI, Core Data/SwiftData and Tight Coupling with the Views

I am starting to work on Core Data applications with SwiftUI. I have a view that looks like this: struct ContentView: View { @FetchRequest(sortDescriptors: []) private var todoItems: ...
john doe's user avatar
  • 141
-4 votes
1 answer
155 views

Web applications, cookies and GDPR

... or technology stack for compliant web applications. GDPR among other includes cookies usage defining four cookie types: strictly necessary cookies , preferences cookies, statistics cookies, ...
user avatar
1 vote
1 answer
53 views

Handling a single event as broadcast and round-robin depending on service

I have Service A that publishes an event to RabbitMQ. I have two instances of Service B that will use the event to write to its database. I have two instances of Service C that will send the event ...
DaveO's user avatar
  • 136
0 votes
0 answers
39 views

Using cloud data warehouse as back-end for website

I am building a website, where the main data source is Snowflake, a cloud data warehouse. This cannot be changed, but we can add other technologies. There is a lot of data in Snowflake, and the ...
radumanolescu's user avatar
0 votes
0 answers
90 views

How to use an external event queue with inversion of control (IoC)

I'm working on an AspNetCore application, with a requirement to raise and handle certain events asynchronously using an external event queue. I'll use AWS services as examples here because that's what ...
brads3290's user avatar
  • 135
0 votes
1 answer
272 views

Single api gateway or one for each microservice

We are going to have multiple microservices and decided to use api gateway. What we couldn't decide is if we should go for a single gateway for all of them or one for each. The reason why one for each ...
dstr's user avatar
  • 239
1 vote
1 answer
101 views

Design considerations for data shared across multiple users: is Redis a good candidate?

I have an app that has an assets table like the following: user_id code current_price 1 ALUP11 12.5 2 ALUP11 11.9 user_id and code are unique together and current_price is updated if the user ...
Murilo Sitonio's user avatar
0 votes
1 answer
133 views

What lessons can be learned from the architecture/combination of ESLint and Prettier for linting and code formatting?

I was looking through the prettier docs and the prettier source code. It essentially has those defined helper functions to layout the text, given an AST. It operates on the level of the whole file, on ...
Lance's user avatar
  • 2,585
1 vote
1 answer
161 views

Is it more secure to develop libraries in-house than using existing libraries? [closed]

I (unfortunately) work in a large German corporation, in a department where the codebase is up to 20 years old, written in C++ (actually more like C with the occasional classes, since most developers ...
hyperbole's user avatar
0 votes
4 answers
289 views

How to safely store application data on shutdown?

I am writing a Windows Service using the Windows Background Worker Service template. Some data that I track needs to persist between application instances (i.e. after shutdown and restart). Initially, ...
PatJon6's user avatar
0 votes
1 answer
113 views

Does it make sense to create a new service to house multiple features that are related business-wise but tech-wise independent?

We are beginning to add third-party integrations that all have to do with a certain business concept. (If it helps to make things concrete, in our case it's "measurements," i.e. third-party ...
Andrew Cheong's user avatar
-1 votes
1 answer
171 views

Using a shared enum across 15 nanoservices [closed]

Originally posted here, moved to code review, redirected from code review back here as there is no code to review. I think the question is enough abstract to be asked here. I have a mono repo with ...
Alexander Petrov's user avatar
-1 votes
2 answers
229 views

Are Physical Firewalls mandatory

I have a Delphi software application that uses non standard port nnnnn to nnnnn+50 with the FTPS protocol TLS 1.3 Until now I was suggesting my customers that the Server Side application needs to have ...
Allan's user avatar
  • 13
0 votes
0 answers
66 views

sync over async in K8S

We build up a microservice architecture which is called from above by a REACT SPA. All is deployed in the AWS Cloud, that is to say in an AWS EKS (K8S). We have at most 600 users in parallel. Do you ...
kladderradatsch's user avatar
0 votes
2 answers
136 views

Implementing feature to show human-readable activity history to user

I'm creating a web app and looking to have a feature to show a history of updates/activities of other users to the current user. For example if another user creates a project. The user should see ...
HZamani's user avatar
  • 19
1 vote
1 answer
221 views

The recommended Spring Boot project structure leads to repetitive code

When implementing projects in Spring Boot (especially CRUD applications), I often find myself writing a lot of repetitive code that just calls functions and services from lower layers. For example, ...
Win32's user avatar
  • 13
0 votes
2 answers
55 views

Architecture question for dynamic 'my actions' list

I am looking to create a "my actions" block on the dashboard of the website. This block would include all sort of dynamic actions that the user needs to do. Some examples are: The volunteer ...
Dennis's user avatar
  • 139
0 votes
2 answers
134 views

Complicated task scheduling architecture

So I want to make an application in which a user will hit an endpoint to save a job model to storage that includes some metadata to perform a long computation against which will be offloaded to a ...
Malik Brahimi's user avatar
1 vote
0 answers
88 views

OpenID Connect and User Management Best Practices

Currently my company has 2 applications that use Identity Server for SSO. Not every client we have uses both applications but some do. The part I'm uneasy about is that both apps have a user ...
Brad Firesheets's user avatar
0 votes
2 answers
110 views

How to seperately deploy two components of the presentation layer that both make use of one business component?

Context I have a multi-tiered architecture that contains 2 presentation layers, one business layer and one data layer. See image below for a visualisation. Here you can see that there are two ...
Jeff's user avatar
  • 19
0 votes
1 answer
358 views

In C4 model, "External" means External to the Org or External to the System scope?

I am currently drawing a "C4 Containers" Architecture diagram using C4 Model. The Core Software System of System Context diagram is now exploded further into the Containers diagram (should ...
KrishPrabakar's user avatar
1 vote
1 answer
88 views

Moving Transaction Logic to Middle Layer: Pros and Cons

We have an event booking system that allows patrons to add themselves to a waiting list if an event is fully booked. When somebody cancels, the system moves the first person from the waitlist into a ...
Anatol5's user avatar
  • 13
0 votes
2 answers
139 views

Domain Services vs Repositories when backed by a remote service

I'm building a DDD application which is effectively a wrapper around Cognito. As such, everything that this is doing is effectively just a call onto the Cognito SDK. Where I'm getting confused is how ...
Graham's user avatar
  • 129
-3 votes
2 answers
1k views

Chose between .net 4.8.1 and .net core 6.0 . is the support life cycle an important factor to consider

I want to start developing a long-life ERP system to a customer. now on paper I would chose to develop it using .NET core 6.0 with SQL Server. But one of the main drawbacks which the customer did not ...
microsoftdeveloperdesigner's user avatar
0 votes
1 answer
253 views

Ordering events across multiple topics in a distributed system

Our platform is growing in the number of events we're raising, and these different events are often related to one another: ProductCreated ProductUpdated ProductTakenOffSale ProductPutOnSale ...
FBryant87's user avatar
  • 323
0 votes
1 answer
216 views

Naming for a layer between controller and domain logic

I realize this sounds similar to How is layer between MVC controller and back-end called?, but that didn't quite clarify the situation I'm facing. I have a backend system - for the sake of an example, ...
abl's user avatar
  • 471
3 votes
2 answers
454 views

Does UML have a grammar that correlates to its diagrams?

UML is generally taught as a standardized way of diagramming software, however, I've heard recently that there's an actual grammar behind it. I've searched the UML specification and haven't found ...
Visual Studio's user avatar
0 votes
0 answers
179 views

Client or API Gateway to perform authentication on backend?

An system called X wants to consume APIs from the backend called Y. There's a definition from the Systems Architecture Team that states that every request from the X to Y must go through the corporate'...
Matheus's user avatar
  • 173
0 votes
1 answer
185 views

Architecture for storing generic data

(I am facing this issue with code written in Swift, but would appreciate any high-level pseudocode solution, just so that I may wrap my head around the architecture) I need to find an architecture ...
Skwiggs's user avatar
  • 117
0 votes
1 answer
95 views

Is it safe to make training data and labels as global variables in C?

I'm trying to make this function called walk in C. The idea is that the function takes as parameters a point in space (represented by an array), a function (pointer), and a step size / learning rate ...
Mehdi Charife's user avatar
1 vote
3 answers
334 views

Is layered architecture style inherently monolithic?

Overall cost and simplicity are the primary strengths of the layered architecture style. Being monolithic in nature, layered architectures don’t have the complexities associated with distributed ...
Gill Bates's user avatar
0 votes
1 answer
90 views

How to improve a monthly usage quota system for an API with growing number of users?

Couple of years ago, I designed an API service which has a limit on the number of requests per month per user. To track the monthly usage of each user, I used a table called monthly_usage. The table ...
bytesandcaffeine's user avatar
1 vote
1 answer
279 views

How can I restore an entity from the database while keeping my entities database-independent?

Background I'm currently working on a project using domain-driven design and Dapper as my ORM. The entities are naturally slightly different than the tables in which they are stored (e.g. _id is ...
JansthcirlU's user avatar
0 votes
0 answers
47 views

System Design for filter and notify user

I'm currently trying to design a notification system to notify users about data that match with they interests. Today we have a similar system running in production, but doesn't have a good ...
Patrick Acioli's user avatar
1 vote
2 answers
175 views

Is ASP.NET's default recommendation of registering dependencies in the Web project bad practice?

Something that's bugged me for years now about ASP.NET (Core) is that it's standard practice to set up dependency injection in the Web project, whether through the Startup class's ConfigureServices ...
Jez's user avatar
  • 1,318
0 votes
2 answers
98 views

Where to check preconditions in multi functions

In a library, there could exist three types of functions. The first are those which are visible to the user i.e. their declarations are installed in the library's include directory. The third are ...
Nitin Malapally's user avatar
0 votes
1 answer
167 views

How to deal with overlapping domains?

I'm a Java developer and I'm try to separate my code to packages (modules, services, whatever the chosen unit of functionality is). Let's say I'm creating a system that tracks employees and the ...
Michal Krasny's user avatar
1 vote
3 answers
575 views

How to handle dependencies between microservices all called within one large service

We are working on a suite of Python 'services' each of which is basically an application that does some calculations based on a domain (data) model and returns the results. These services are designed ...
Mathias A.'s user avatar
0 votes
1 answer
261 views

How to avoid side effects in complex code

Our team is working on software that does a lot of calculations, inputs are quite immense structures and outputs are calculated data for the GUI (around 10 tables, warnings, and other messages ...
Michal Krasny's user avatar
0 votes
2 answers
118 views

How can I track the status of multiple messages in asynchronous processes?

Let's say I've a sendMessage endpoint. This endpoint looks at configured message destinations and then puts 1..N messages into a queue (e.g. {userId: 3, type: SMS, trackingID: X} and {userId: 3, type: ...
Regyn's user avatar
  • 149
2 votes
4 answers
298 views

Multiplayer FPS Architecture

I'm creating a multiplayer game and have been having some trouble creating a good architecture for the server side. So far on the server we store a list of player which are the actively connected ...
cuppajoeman's user avatar
23 votes
6 answers
6k views

How important is it to clearly understand requirements and architecture before starting to code? [closed]

Whenever possible I have been requiring an understanding of the requirements and architecture for the next scope of work before starting to code. Sometimes due to schedule pressure on larger projects ...
Bill Dyer's user avatar
  • 377
0 votes
1 answer
247 views

Are there any guidelines for calculating hardware requirements in a containerized environment?

At an architectural section of an interview I was asked to produce hardware requirements for a certain system I designed. It was a microservice-based system which runs in Kubernetes, Openshift or any ...
svz's user avatar
  • 307
0 votes
0 answers
26 views

In a layered backend architecture is the repository/manager part still relevant? [duplicate]

We all know that in a layered backend architecture we have the Controller (or view) > Service > Repository (or Manager) The Repository part is the part that retrieves and updates the DB. But now ...
Dany Y's user avatar
  • 133
1 vote
3 answers
114 views

Selecting a large set of information from a database

So this is a topic I have never really tackled, so bare with me as I try to describe my issue and the scenario. I have an API endpoint in my service that sends emails to a bunch of users. The set of ...
alaboudi's user avatar
  • 223
-1 votes
1 answer
97 views

"Select All" in Table is now sending too much data to Server via API - Alternative Ways to Send to Server?

Outline of the current architecture of our web app outlining the issue I'm seeing Client-side app is React, talking to a server running the Play! framework via an API. On the page is a table that ...
bluedevil2k's user avatar
0 votes
0 answers
79 views

REST API design - Categorised response objects - All, Sub, Dub movies paged response

I am having trouble deciding what is the best way to implement a REST API which does the following: When page gets loaded, it displays a list of Movies and above is a category selector tab (ALL, SUB, ...
don's user avatar
  • 1
0 votes
1 answer
186 views

Is it secured to accept and execute user provided CURL commands

Assume you have to figure out a dynamic way where the user can provide an API call to hit in the backend for example, user to provide a webhook to call on his end server So, An idea for users to ...
Youans's user avatar
  • 441

1
2
3 4 5
70