Questions tagged [architecture]
Architecture encompasses the process, artifacts and high-level structure of a solution.
17,148
questions
0
votes
1
answer
13
views
Implementing three-layer architecture in FastAPI for handling endpoints that need multiple services, better to create own service?
I have a question regarding the three-layer architecture implementation in FastAPI. Consider a complex scenario: let's say there's an endpoint called 'get_transaction'. The data required for this ...
-1
votes
0
answers
31
views
What is the name standard for static non-extension classes Folder? [closed]
Let's say If we have Extension static classes, the folder for them can be named "Extensions".
But where to place the static class which is not an extension class?
public static class ...
0
votes
0
answers
14
views
Design Strategies for Integrating Enroll Plan-Specific Features in a Django Project
I am working on a Django project that comprises three main components:
nkb_assessment_backend: Handles assessments and exams, featuring apps like nkb_exam and nkb_exam_extensions.
...
-2
votes
0
answers
16
views
Unity raspberry pi 4 build [closed]
How to build linux platform arm architecture on unity engine Please help me
I try to compile C++ but lots of error how can solve these problems
another method is setup the android operating system on ...
0
votes
0
answers
10
views
Creating a fanout service using Websocket connection
im trying to build an application that serves real time data to the end users. i was thinking of using a websocket connection since the data is alot (10 events/sec). the trouble is this, the data is ...
-1
votes
1
answer
38
views
What are features in programming? [closed]
want to create an app. There's constant talk about identifying features, but I don't understand what features are supposed to be. For instance, if I'm creating a math app and need to decide between ...
0
votes
1
answer
50
views
Should I strictly return view model from my ASP.NET Core Web API controller? [closed]
I am building an ASP.NET Core Web API project using three tier architecture.
Data access layer (Repository etc.)
Business layer (Services etc.)
Presentation layer (Web API controllers)
What my ...
0
votes
0
answers
21
views
Using micro frontend end architecture for new project
I am creating a new project from the scratch using micro front end architecture.
This should be in such a way that,
Any micro frontend component created in any technology should be able to embed.
...
-1
votes
0
answers
30
views
Should we use DDD in a large application with huge service call and small business logic? [closed]
I was searching for find best approach to start my web service design.
I couldn't find clear answer for my question,
I have a project with many third party service calls and it contains small business ...
0
votes
0
answers
55
views
Proper separation of an aggregate in a saga
I need to develop a basket for my service. I have a service called Service1 responsible for digital products bought by customers. I also have another service called Billing responsible for prices and ...
-1
votes
0
answers
31
views
Example architecture for building a search aggregator using Elasticsearch in microservice architecture [closed]
I'm starting this discussion to have your opinion and best practices on building a search engine aggregator, below are the requirements:
I have 4 autonomous microservices each of them provides a ...
0
votes
0
answers
31
views
Should I implement a Cloud Run bulk insert (from Pub/Sub subscription) using windowed buffering? [closed]
We run a service on GCP at the moment which pushes payloads into Pub/Sub, triggering a Cloud Run instance which stores the data into Elastic Cloud (but could conceptually be any database technology).
...
0
votes
1
answer
28
views
How do I use Cognito with Express-gateway for token validation
I have drafted the following architecture
I'm having issues on the validate JWT part on the gateway (Not sure if this is how it's supposed to work).
From what I understand, when a request gets to the ...
0
votes
0
answers
11
views
The issue with sharing a feature folder
In a UI solution, I have a "features" folder in my ReactJS solution holding a multitude of features.
What I would like to know is:
Can a single feature be shared across multiple pages?
if ...
0
votes
1
answer
26
views
Hexagonal Architecture for a Game
I am learning about different architecture and want to implement the MasterMind game with Hexagonal Architecture and Onion architecture in the core. But I can't wrap my head around it completely.
The ...
0
votes
0
answers
34
views
How to properly work with a database in a multi-tier application if I use EntityFrameworkCore, C# [closed]
I would like to learn how to properly organize the work so that everything depends on the Domain layer. At the same time, I use EntityFrameworkCore and DbContext to work with the database.
I can:
Do ...
0
votes
0
answers
6
views
RISC V Processor
I am working on RISC V Processor. I want to know is RV32 and RV32I are same. For RISC V, i am studying Computer Organization and Design, T H E H A R D W A R E S O F T W A R E I N T E R F A C E, SECOND ...
0
votes
0
answers
36
views
Nextjs project where the client gets SSE from a Node application. Shared database or not?
I'm working on a web application where SEO is crucial, and there's a need for live data using Server-Sent Events (SSE). I've chosen Next.js because i'm well versed with react but due to serverless ...
0
votes
0
answers
16
views
How to efficiently compose business logic with a Transaction Script pattern using an ORM?
Assume that in my hypothetical server application, I use a SQL database for persistence, an ORM like Hibernate and a language like Java for the business logic. Requests come over HTTP.
If I want to ...
0
votes
0
answers
35
views
Architectural Best Practices for a Multi-Tenant Payment Service Platform with Regional Data Compliance [closed]
I am in the process of designing a large system and I'm seeking advice on best practices for its architecture. The system is a payment service provider where we deal with individuals, merchants, ...
-2
votes
1
answer
33
views
What is the correct way to create multi-step forms on the server side? [closed]
I have an Application entity that includes other entities. In pseudo code that is not specific to a particular programming language, it would be described like this:
public class Application {
...
0
votes
0
answers
35
views
What is a good way to use modules that have related entities?
I've been coding for some time and always looking for improvement! That's why I am learning about how to structure my modules in code well.
And now I am facing a dilema based on my experience with ...
-1
votes
0
answers
20
views
Implementing Hexagonal Architecture in Microservices: Should each microservice have its own Hexagonal structure [closed]
I'm exploring the implementation of Hexagonal Architecture in microservices and seeking guidance on best practices. Specifically:
Is it recommended to have a dedicated Hexagonal Architecture for each ...
-2
votes
0
answers
26
views
What is a pipeline in software development? [closed]
I have heard the term "pipeline" used in many different contexts. Now I'm trying to bring some clarity to the terminology: What exactly is a "pipeline" in from a technical software ...
0
votes
1
answer
21
views
Best approach for updating multiple items in DynamoDB: Batch operations vs. BatchUpdateItem/individual UpdateItem?
I'm working on a project where I need to update multiple items in a DynamoDB table. I'm considering different approaches and would like some advice on the tradeoffs between using batch operations like ...
0
votes
0
answers
12
views
Creating Microfrontends with Next.js - How to Start? [closed]
I'm exploring the implementation of microfrontends using Next.js and I'm looking for guidance on getting started. I've read the Next.js documentation, but I'm specifically interested in best practices ...
0
votes
0
answers
12
views
Deploying an API with Elasticsearch and MongoDB on AWS
I am creating an API with Elasticsearch to index and save some data that needs to be retrieved quickly, and saving other data in MongoDB...
I wanted to know what you suggest for me to consider and ...
-1
votes
0
answers
15
views
AI or a custom Algorithm for a SaaS tool [closed]
Hi There I am creating a niche tool/expert system to solve and alleviate a pain point currently experienced by B2B Marketing Professional's. I intend to develop a SaaS platform. I am a domain expert ...
0
votes
1
answer
20
views
Using cdn (aws cloudfront) inside Google kubernetes engine
I have an application running on gke. It has pods of backend and frontend servers, at least initially 1 replica each. For clientside ui, it has a ui-deployment and ui-cluster-service. I have this app ...
1
vote
0
answers
35
views
Dapr pubsub with redis
With Dapr pub-sub using redis can we limit the rate/interval at which dapr will check if there is a new message in redis? I have been looking for a way to limit that in the yaml file. Here is a sample ...
1
vote
0
answers
25
views
Hexagonal architecture/Ports and adapters: Communication between adapters
I have read quite a few articles about ports and adapters. Considering communication, they all just speak about communicating between the different "layers" (domain, application, adapters) ...
-1
votes
1
answer
55
views
Project file structure [closed]
I am currently working on a Pygame project and would like to seek your advice on best practices for organizing my code, particularly when it comes to creating additional scripts. I find myself ...
1
vote
2
answers
66
views
Flutter: Async Methods in Bloc/Cubit State Management
While working with Cubit State Management, I have the question if the methods in the Cubit class, which access the Repository class, have to be async? The methods in the Repository class, which access ...
0
votes
1
answer
55
views
Seeking Advice on Designing a Clean Data Class (Model) in Kotlin
I'm currently working on designing a neat data class (model) for an AlarmTime instance, which will play the role of a variable in the Alarm class. I've come up with two solutions, and I'd love some ...
0
votes
0
answers
45
views
Communication between aggregates in DDD in appointment example
I have three Aggregate in my DDD app, Doctor,Patient,Schedule.
schedule aggregate manages appointments of doctors and patients.
doctor has a weekly schedule. I create a Weekly schedule Entity In My ...
0
votes
1
answer
17
views
Data Deletion Foreign Key Validation Best Practice
What is the best practice regarding validating a deletion.
For example, I have the tables
Units and Products, every product must have a unit as the data is related, if you try to delete data from ...
0
votes
0
answers
10
views
Good way to manage users in my web apps with microservice
There is my web application architecture:
For this example, users are linked to many agencies (Many to Many) and this information is stored in "Identity Micro Service", cause I want this ...
0
votes
0
answers
21
views
In terms of using and accessing sensors on mobile phones, what is the difference between accessing through a mobile app or web browser
Pretty much what the title says, Based on the image, how would accessing, for example the ALS (ambient light sensor) through a website be different to accessing the same or similar sensor via an ...
0
votes
1
answer
27
views
Balancing logic placement in the domain and general perfomance of the system
I am writing my first application using DDD (in Node with TS) and I started writing all the domain first -- before starting the repositories/DB and then the application, while writing unit tests for ...
0
votes
1
answer
78
views
Should I return string or array of emails? [closed]
I am creating a Rails application using JSON API Resources. It has employers and customers. The employer model has a name, website, and support emails, as attributes. Emails are stored using JSON ...
0
votes
1
answer
82
views
Does a monolithic application which simultaneously supports N and N-1 dimensional relations have a name? Is this an anti-pattern?
I have a DB and application that's designed to handle a distinct structure of exactly 4 dimensions: Molecule, Atom, Particle, and Quark. There is a many-to-many relationship at all levels of the ...
1
vote
1
answer
68
views
Backfilling new column using value from Go code
What is the best way to go about backfilling a new column with values that are from Go application code? Ideally I would go through each row, call the Go code, and use the return value as the column ...
-1
votes
1
answer
65
views
Best Practices for retrieving data in MVC: Concerns about Using POST for Retrieval and Token Handling [closed]
I'm currently working on a MVC app. I've implemented a route using a POST method to retrieve information and navigate to the corresponding page, and I have some concerns about the design practices I'm ...
-1
votes
2
answers
55
views
Storing pictures using MongoDB [closed]
I am currently facing a challenge assigned by my superior.
The task at hand involves the storage of a substantial volume of images, each approximately 10 MB in size, and the subsequent delivery of ...
0
votes
2
answers
31
views
Business validation rules and microservices
We have a microservice architecture, with a user service and a calendar service. Users have features. In the calendar service, we need to determine if a user has a specific feature before to create an ...
0
votes
1
answer
47
views
What is the best architecture to handle notifications in NodeJS
We have a NodeJS Application running on ECS. It is a REST service with PostgreSQL.
We have to implement notification system. Admin can create a notification from a frontend (web) and these ...
0
votes
0
answers
11
views
Organize business layer with other class
Lets have an application with three packages namely controller, service and repository.
Controller serves an api endpoint and calls the service class.
Some business logic is executed before repo call....
0
votes
0
answers
6
views
Terminology on Data Alignment in Computer Systems
I was reading about data alignment and I get what it is and all. But I read this "A word or doubleword operand that crosses a 4-byte boundary or a quadword
operand that crosses an 8-byte boundary ...
0
votes
1
answer
34
views
Post-upload processing of SSE-C encrypted objects on S3: how to provide the key to the Lambda function?
When using SSE-C, the AWS documentation states that the encryption key is obliterated from RAM right after the objects are put into their bucket on S3.
I need to extract and process some data from my ...
0
votes
1
answer
36
views
object-oriented programming architecture with database access design
With object-oriented programming in mind, how does the database come into play with objects? Like for example, let's say there is a Student class, with attributes like name, number, courses, etc
The ...