Questions tagged [architecture]
Architecture encompasses the process, artifacts and high-level structure of a solution.
16,405
questions
0
votes
0
answers
17
views
what is the algorithm to detect modified chunks in a drop down like system
below is the most common high level design for dropbox/google drive
How does the chunker, on client side, know what chunk is modified?
if a 10 mb file had been divided into 5 chunks of 2mb size and ...
0
votes
0
answers
10
views
Why do modern processors typically exploit multiple cores rather than multiple threaded processor
I can't get anything on multiple
threaded processor abd multiple cores processor. Have tried to find the advantages of multiple cores over multithread but could not get something though
0
votes
0
answers
17
views
A .net sdk/ api for doucment comparison (docx/pdf/pptx) with near ms-word functionalities
I'm trying to make a document comparison viewer for web browser that feels as same as Microsoft word's 'Track Changes' and 'Compare' (options available in Review Tab).
I am already using Aspose.Words ...
0
votes
1
answer
30
views
Need to find a solution to store data [closed]
What would you suggest if you need to display data, which is located in different relational tables, needed to be filtered dynamically by different fields.
New fields can be added to the schema.
It ...
3
votes
0
answers
55
views
Laravel redirect() helper doesn't work after overrided
I have some projects that need to deploy in same subdomain e.g :
mainproject.domain.com
mainproject.domain.com/secondproject
I've googling and found this discussion https://stackoverflow.com/a/...
0
votes
0
answers
27
views
SAGA architecture model
I started to study the SAGA architecture model and I had some doubts. I'll start with a basic scenario, I believe that with examples it is easier to understand.
Scenario:
The user makes an order ...
0
votes
0
answers
33
views
Configurable data model - How to not re-invent the wheel?
So my company decided that it needs some kind of system / service that has the following properties:
Uses Java and Spring-Boot as a Back-End
Has an Angular Front-End for and Admin UI
Uses mongoDB for ...
0
votes
0
answers
21
views
Role based system in Tree User Structure
So I am using Node/MongoDB (mongoose) to implement this feature.
What I need is the right solution for the following problem:
We have many Company(ies)
Each Company can create it's own Roles
Role is ...
0
votes
0
answers
50
views
Which Design Patterns can I use for this case?
I need to implement a upload file service, so i have a classe named UploadService with one method named Upload. I have 3 integrations 3rd party to use: AwsS3, Google Storage and Azure Storage, but my ...
1
vote
2
answers
42
views
What is the right way to build an entity with relationships
I have some factory that's responsible to build Product entity. To build the Product it's necessary to retrieve all entities from a data source that should be associated with Product.
class ...
-2
votes
4
answers
61
views
C# Best Practices when using !=null, Count > 0, and .Any()
Out of curiosity, what are the underlying differences between !=null, Count > 0, and .Any(), and when is the optimal time to use each? - for both architectural and performance.
I know that .Any() ...
0
votes
1
answer
37
views
How to make separate CLI tools in docker containers accessible from "central "docker container?
I want to create a tool that couples together a lot (~10, perhaps more) of other CLI tools to automate some stuff. This tool needs to be able to just be dropped-in on any VPS and work, hence the ...
0
votes
1
answer
35
views
Trigger Amazon Sagemaker Processing Jobs
I'm designing the architecture of my ETL for an ML related project.
Generally when automating tasks in AWS I use EventBridge, SQS, S3 as triggers if using Lambdas. In my case Lambdas doesn't fit my ...
0
votes
0
answers
29
views
Frame graph architecture
Since no new shader can be created during runtime, the full set is known ahead at compile-time. Each shader must reference a "pass" in which it will used to render.
To avoid frame-spikes ...
0
votes
3
answers
103
views
How do you design similar types to enforce particular rules?
Suppose you have a naive vector type, such as
data Vector a
= V2 a a
| V3 a a a
I am interested in how you can — and how you should — implement particular logic specific to the type's constructor....
0
votes
1
answer
31
views
C# API and Data Access Layer connection strings
I have a question regarding connection strings and where they should be stored. Should connection strings be initialized in my API (startup.cs) before calling the manager layer or do I create another ...
-1
votes
0
answers
30
views
Is there a measure of computer performance that is not a single-number metric?
Most of the computer performance metrics are a single-number metrics.
I wonder if there are out there metrics that are not a single-number metrics.
0
votes
0
answers
23
views
NFT Marketplace including database for storing data?
I've heard of the concept of storing info "on the chain" when developing nft marketplaces(). I currently am using Javascript And Golang. When the user logs in (ex. metamask) it will save ...
0
votes
1
answer
30
views
Why do we differentiate between functional and non functional requirements
I understand the difference between functional and non functional requirements.
What I never understood is, why do we make this differentiation?
(Rephrased) When I design a solution, why is it ...
0
votes
1
answer
54
views
File Storage Solution Architecture - Azure Blob Storage [closed]
I have 3 application dev teams that all need to store/retrieve files from azure blob storage in their apps. I want them all to implement this in a simple, standardized way. I have been asked to ...
0
votes
0
answers
36
views
Recovering state of batch process after server failure
I believe that topic speaks for itself.
I would love to read your opinions and maybe possible solutions on this?
Lets say that we have first, simplest scenario:
There is 1k of new products that needs ...
0
votes
0
answers
29
views
How do you Design Data that is frequently Updated and Read, Furthermore, the data has to be accurate during read?
I faced 1 issue when designing an exchange system which the balance of user updated every minutes (very fast). I saw quite a number of deadlocks and the index fragmented quickly due to the data ...
2
votes
0
answers
28
views
Is it possible to have MVC in sub folders when using node.js express framework?
Is it possible to have MVC in sub folders (modules) when using node.js express framework?
Today I have this structure of my project:
Controllers
Blog/*
Poll/*
And many more
Models
Blog/*
Poll/*
...
1
vote
1
answer
37
views
Is leader election used for active/partial standby use cases for microservice replicas?
For microservice HA, I know there's the "Active/Active" configuration as well as the "Active/Standby" configuration.
I'm wondering if you might use Leader Election for something in ...
0
votes
0
answers
29
views
Virtual addressing page table if we use 32-bit, 64-bit, and 128-bit
Hi i'm having a little bit of trouble here concerning a exercice.
Calculate the number of entries in a page table if we use 32-bit, 64-bit, and 128-bit virtual addressing respectively and the size of ...
0
votes
0
answers
35
views
is this the right way to implement a custom architecture in flutter app using riverpod?
I am creating an App using riverpod, hooks and freezed. My aim is to remove the entire logic out of the widget tree. This article by @ttlg inspired me. In my app, I am trying to implement the ...
0
votes
0
answers
27
views
How to get data from one controller by calling it from another controllers in Express without circular dependencies?
I am building an API using express js. I have structured it so that each data model (e.g. user, organization, etc.) has their own modules as such:
router - validates and sanitizes the http request at ...
1
vote
0
answers
34
views
How to rethink the architecture of my Python project containing multiple async interfaces
I'm developping a Twitch Bot for approximatively a year now. Over the time, the bot became bigger and bigger to add features. Now the bot can manage multiple interfaces including Discord, Twitch, ...
-2
votes
0
answers
29
views
Architecture suggesstion [closed]
I wish to create an application in NestJs that can do the following:
Account service: this will be used for signing up, login in, authentication, and other user's account related stuff.
Service II: ...
-1
votes
0
answers
32
views
What ADC precision and sampling rate for record sound?
What ADC precision and sampling rate would you choose and why if You wish to record sound that has frequency components are 200 to 2000 Hz. And the signal-to-noise ratio of your microphone is 50 dB?
0
votes
0
answers
39
views
Storing AWS access/secret keys, or role policies; which should be stored in vault?
So I'm running into a strange architectural issue involving vault, and I'm throwing it out to the web because I don't think how we're proposing to do it is correct
Currently we have quite a few users ...
0
votes
0
answers
32
views
Design Q about sending authentication information through a message queue
I'm designing a webhook receiver to work with a third party (over whom I have no control). The third party sends events (HTTPS) on behalf of our users that are represented in our own database. It's ...
0
votes
0
answers
79
views
DDD - Repository interfaces in domain or application layer?
There are several posts on stackoverflow about this question, but I'm still not able to understand it fully.
Different architectures like the layered architecture in the blue book, Ports and Adapters, ...
1
vote
1
answer
72
views
Data cleaning before, during or after data ingestion?
I am building a self-contained data analytics project in Python. As the project needs to be scalable it requires a fairly solid pipeline of data processing and analytics.
So far I'm planning to use ...
1
vote
1
answer
47
views
DDD Application Layer and Persistence Transactions
Leaders in DDD cite the Application Layer as the appropriate place for Transaction Management. For example, from Vince Vaughn:
Application Services reside in the Application Layer. [...]. They may ...
-1
votes
0
answers
43
views
Ideas of pvp game architecture [closed]
I'm creating my first game and I have a question about the architecture. It's a pvp board game where each player control a character with a passive ability and you have spells (a little bit like LoL) ...
3
votes
1
answer
54
views
Is it bad to have two identical entities?
I'm in the middle of creating domain model and I need help with some entities. I have a Sale entity (which represents the action of selling goods to buyers) and a Purchase entity (which represents the ...
0
votes
0
answers
45
views
How to call multiple memoized functions in a React Repo - Service - Context Architecture?
I'm working on a Ionic Capacitor React app with a Repo/Service/Context architecture:
All the functions that do API calls as well as for local storage are in the Repo files.
The Service files have ...
0
votes
0
answers
30
views
The best way to structure a themed (visually and functionality) static react site
I'm working on a statically generated react site thats going to be themed for different brands and uses. It was a non themed one size fits all code base that I inherited.
Currently it has a classic '...
0
votes
0
answers
26
views
Is there a way to embed my next.js into another vue.js application?
We want to embed the Next.js application hosted on CloudFront to another vue.js application is there any way to do this without using the iframe
0
votes
0
answers
25
views
Undefined symbols clash x86_64 and arm64 architectures [duplicate]
I'm kinda new to cpp and I'm trying to compile a code making use of cuba library and quadmath as well. Since Apple gcc doesn't recognise __float128 I needed to use my brew-installed gcc while ...
0
votes
0
answers
27
views
Salesforce Service Cloud Data Import / Best Practice?
I need to create a service, that creates "Case" Objects in Salesforce. The types of Cases are different and are new types will be added. Like contract cancellation, customer data change, ...
0
votes
2
answers
55
views
How to change the architecture of armv7l (yocto) to arm64/aarch64?
I have installed Yocto image in the Raspberry Pi 4B previously and I know that the current architecture is armv7l by using uname -m. However, I want to change the architecture to ARM64/AARCH64.
Anyone ...
0
votes
2
answers
75
views
How much hardware is needed to create a microservices demo architecture
I am estimating how much hardware I need to set up a demo microservices architecture (for example: https://github.com/microservices-demo/microservices-demo).
The architecture contains:
Kubernetes ...
1
vote
0
answers
76
views
Android MVI Architecture problem with ui state
I use MVI architecture and thought about this scenario that can occur
class MainViewModel() : ViewModel() {
private val _viewState = MutableLiveData<MainViewState>(MainViewState())
val ...
1
vote
1
answer
120
views
Namespace and assembly names when porting .NET code between platforms and technologies
I have a few (over 50) .NET Framework assemblies that I've developed over time. I've always followed the convention to name my assemblies after the root namespace in the application. For example, I ...
1
vote
1
answer
72
views
Separation of users and posts microservices?
Currently there is a users microservice in my project, which handles all the authentication logic and stores user data (email, name, bio etc.)
One of my application's features will be posts. I want ...
0
votes
0
answers
42
views
Executing python script in 5 nodes concurrently and compare the output
I'm trying to build an architecture which does the following steps:
Single python script which runs in 5 nodes for every minute in a span of 1 hour.
every minute data output should be computed and ...
0
votes
0
answers
42
views
What the example case that use all layer pattern?
I try to figure out what the different exactly with Model against Repository and Service. i found sometime Repository code will inside Model. Sometime will need middleman Service between Model and ...
0
votes
0
answers
41
views
Application state architecture: how to structure state with similar properties?
I have a state headerState that controls two UI elements: Mobile navbar and Auth dialog.
Mobile navbar and auth dialog both have properties isOpen, open and close
I need to come up with a flexible and ...