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.
3,035
questions
1
vote
3answers
271 views
How to discover discovery service
We are designing an architecture of a high availability distibuted system and we are considering server side vs client side service discovery. There is one problem, I need to solve - how is it ...
-3
votes
2answers
67 views
How to notify all instances behind load balancer
I would like to make an request to all instances of my application. Flow of request is as follow( F5 load balancer -> reverse proxy - apache server -> my application) I do not want to make public ip ...
4
votes
1answer
32 views
Architecting basket in high scale distributed application
I'm designing an e-commerce application. Main flow is pretty straightforward: customer add items to basket, checkouts the basket (place an order) and waits for delivery.
There are following ...
0
votes
1answer
81 views
What is the difference between Logical View and Scenarios View in the 4+1 architectural view model?
According to the Wikipedia page:
Logical view: The logical view is concerned with the functionality that the system provides to end-users.
Scenarios view: The description of an architecture is ...
1
vote
2answers
46 views
Difference Between MVC and MVC + 3 Layered Architecture?
I haven't been able to find a definitive answer online, so I'm hoping that someone with experience can help answer this.
Many MVC tutorials I find online end up using the MVC architectural pattern as ...
-1
votes
1answer
37 views
ASP.NET Web API - what is the design pattern?
In Visual Studio, ASP.NET MVC project template is designed for MVC pattern, but what about ASP.NET Web API project template?
I know that we can create API from MVC project, also we can build MVC app ...
6
votes
2answers
2k views
Loose Coupling Presenter to View in MVP
We work in a Java shop here and our web application uses an implementation of the MVP architectural pattern. Our manager comes from a .NET world, where he has been exposed to the MVVM design pattern. ...
-4
votes
1answer
68 views
What is the best way to organize the folders and files in my web project? [closed]
I've been doing technical studies in web design for a while. I have developed several web pages, however, I have not published any.
This year I plan to publish my first website. I would like to know ...
-1
votes
0answers
89 views
How does Stackoverflow comment system work
When someone comments on my question/answer/comment I will see the notification from the inbox, and it also shows under my response tab. Later when the comment is edited, the comment shown under the ...
-2
votes
0answers
24 views
ASP.NET Web API N-Tier Architecture considerations
my API is divided to some layers:
Presentation layer (PL) - API
Bussiness Logic layer (BLL)
Data access layer (DAL)
database (DB)
PL is the controllers, that have some methods and every method ...
5
votes
1answer
62 views
How does a push-based(write fanout) feed system handle unsubscribe logic, message erasure and new following user's message
I am curious about these three questions when building a push-based(write fanout) feed system:
How does it handle the unsubscribe logic?
To me, it seems to me that we have two choices: delete or ...
3
votes
1answer
3k views
Custom .NET apps and clustering
So for a clustered environment - how would this work with your apps?
What about your own custom .NET apps? Would there be a special way to develop them? I know that you could create a simple Hello ...
1
vote
1answer
87 views
How to play sounds optimally in the browser?
I have a new site that allows you to play sounds of letters on click. Each letter produces a separate sound. I went from roughly 500kb for .wav files to around 30kb for each sound file. That's a lot ...
1
vote
1answer
149 views
How to create lots of web projects that are copies of each other (90%) but also have some unique elements (10%) in each? And that also support updates
I have a web project in. Say, it's in Rails, or any other well web framework. And I plan to be creating copies of it and running them all. Let's say, it's a blog. Each blog will be deployed on its own ...
0
votes
3answers
65 views
Is web application routing Enterprise or Application Business Rules from the viewpoint of Clean Architecture?
From the one side, customer can order "I need products list on /products and conversion statistics on /statistics/conversion". In this case, we need to obey in and write something like:
...
2
votes
1answer
94 views
+50
Best way to handle lazy models with mapstruct and spring transnational scope
In a typical Java Spring Web APP:
we have the following layers:
Model [DB Models]
Repositories [where you have queries to DB]
Services [Business service where you have the @Transactional annotation]
...
-5
votes
0answers
50 views
Advice for Intermediate/Advanced C++ Developer
First and foremost I must say that I am in debt to whoever uses his time to provide helpful advice to this post. I think we have a wonderful community and it is thanks to people like you reading this.
...
4
votes
1answer
121 views
How does Robert Martin's “Clean Architecture” deal with Progressive Web Apps (PWAs)?
According to Robert C. Martin's "Clean Architecture" you should try to structure your system in such a way as to separate low-level concerns from high-level domain concepts.
Following this ...
8
votes
5answers
375 views
Re-architecting CPU intensive Node application to handle multiple users
A few years ago, I wrote an application that allowed users to upload a file (it's a very specific file type) to a server. It then sends instructions to the server on how to visualise the data, and the ...
2
votes
2answers
86 views
How does a database implementor migrate their database engine to a new data structure?
I am working on implementing a database of sorts and am stuck wanting to make it perfect from the get go because I realize I don't know how to migrate the database engine from one data structure to ...
-3
votes
1answer
85 views
How to anticipate a software future where ARM (potentially) replaces x86 in server and PCs? [closed]
With the introduction of Apple M1 processor, ARM has stood up to be a capable competitor and an alternative to x86 processors. We can foresee a future where ARM captures considerable market share of ...
1
vote
1answer
56 views
Should I use ROA or SOA for a distributed application and how could I implement REST If using ROA
For my final year project I'm looking to build a distributed version of a popular benchmarking client (this has already been done using various methods involving some form of existing frameworks), I ...
1
vote
0answers
35 views
Visitor pattern, Extensible visitor for custom implementation [migrated]
I'm writing my own expression tree system, just for fun, but I have a few doubts about my code.
My goal here is to create an abstract layer of expressions, and allow different "languages" to ...
-1
votes
2answers
465 views
What is the Difference between Reactive Extensions and Message Queue?
I am trying to understand the difference between Reactive Extensions and Message Queue? Are they competing frameworks? Can they be used in conjuction? Started programming, and trying to understand ...
5
votes
5answers
2k views
Cyclic dependencies in microservices
Just wanted to know if cyclic dependency is something that one should avoid in microservice design.
For example, let's say we have a simple web store that sells fruit.
It could have:
Account Service -...
3
votes
1answer
4k views
What are “User Process Components”?
This article about application architecture design mentions "User Process Components" as part of the presentation layer.
User process components. Your user process components help ...
-1
votes
1answer
2k views
How to store blog post in database - React & GraphQL
I am building travel blog using React as frontend Javascript framework along with GraphQL. I am doing this project by myself as a pilot test and I am currently in a phase of translating photoshop ...
0
votes
1answer
57 views
Syncing data from a monolith to a micro-service
we have a monolith that basically reaches close to a 100k IoT devices/routers and tries to gather some information about them.
As you can imagine, this can take close up to 40 hours for the process ...
0
votes
1answer
238 views
How to split my product into multiple variants
I have a product which is a combination of mobile apps and webapi . I am working web API.
The webapi part created earlier and it build with layered model. Even thought this does not have a business ...
-1
votes
1answer
60 views
RuntimeException or DomainException or LogicException in loader function?
Assume I have module of classes:
EntityLoader loads some entity by id.
EntityValidator checks preconditions, input data before saving changes.
EntityUpdater saves changes.
EntityLoader has method ...
0
votes
1answer
79 views
Gracefully handling failures in sequence of requests
I am designing architecture for service like pastebin.com. I plan to store user data on S3 storage and metadata with my own server. So whenever a user requests for some paste creation there are two ...
-3
votes
3answers
42 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 ...
1
vote
4answers
142 views
Microservice should be an independent software unit - Up to which level?
I have read several times that a Microservice should be an independent software unit.
But what does that mean exactly and is it really achievable for each business case? Does that mean that I can run ...
1
vote
1answer
90 views
Alternative architecture for multi-instance, client-to-client message relay/broker
Research leads me to believe the most common architecture for a multi-instance (horizontally-scaling) message relay service (the typical example being an instant messenger/chat service) is to ...
2
votes
3answers
266 views
Should I introduce tools even if I might not need them right now
I recently read two articles regarding two different approaches for managing the underlying technologies of a system. The first one was by engineers of reddit, explaining how they gradually extended ...
2
votes
1answer
471 views
DDD / Onion architecture in JavaScript
One reason I like .NET is because the 'solutions' and 'projects' lends themselves to good architecture.
Good architecture makes it easy to follow the happy path of Domain-Driven Design.
I've fallen ...
1
vote
1answer
113 views
How to approach to ES/CQRS in serverless cloud?
Let's say I want to use CosmosDB for Event Store, where have single collection for all events. Currently it is not horizontally partitioned, but it is a possibility for future.
Now, I need to ...
-1
votes
0answers
50 views
How can all the hosted websites on a server, use shared codes?
I'm hosting more than 10 websites on a single server.
These websites have their very own cPanel which includes the database and the codes.
The code is the same in all of the websites, and when a ...
2
votes
1answer
76 views
Which is a good way of separating and organizing layers and subdomains code, one that highlights and facilitates a clean architecture?
As I understand, when following the Low Coupling High Cohesion Principle, I should keep together the code that is related to same theme, splitting the code into modules/submodules by its "domain&...
31
votes
4answers
74k views
Distinction between API and frontend-backend
I'm trying to write a "standard" business web site. By "standard", I mean this site runs the usual HTML5, CSS and Javascript for the front-end, a back-end (to process stuff), and runs MySQL for the ...
1
vote
3answers
152 views
Architecture/algorithm for unusual recommendation system
There are thousands (or tens of thousands) of possible movie titles.
New user enters my website and selects hundreds of titles that he likes.
The only single goal of my website is to output the list ...
11
votes
6answers
12k views
Separation of retrieving data and business objects between DAL and BLL Layers
I did some research before posting this question. Among other questions or post, one of those is provided below. I could not get a clear mind how to determine..
Business Objects within a Data Access ...
10
votes
5answers
3k views
Write data to SQL Server directly from BizTalk or use external service?
An external source will be sending us XML data that BizTalk will pick up and transform into an internal schema. We need this data to be loaded into a SQL Server database as we're going to expose some ...
1
vote
1answer
94 views
Writing Event Process architecture for multiple event handler interfaces
I am working on Java program which will listen multiple kind of events from multiple sources and store information to multiple sinks.
Each interface will have its own source to listen and own sink ...
8
votes
3answers
286 views
What should presenters return in Clean Architecture?
In Clean Architecture, a use-case calls a presenter, based on the agreed output object. When the presenter is called, it returns a ViewModel used by the view. That is fine until you have more than two ...
1
vote
1answer
118 views
How to make the controller framework independent in Clean Architecture?
Recently, I've been studying Clean Architecture and I have some doubts. I want to make a REST API that adheres to this architecture. To do that, I define my entities, use-cases, etc. For each endpoint,...
5
votes
2answers
129 views
Resource that has different state based on input parameters
Let's say I have a REST api endpoint that is getting a resource called a "purchasable" (an item that a user can purchase). Here is an example of what this might look like.
Endpoint: GET /...
30
votes
5answers
7k views
Why not use SQL instead of GraphQL?
Recently I learned about GraphQL which claims to be superior to RESTful. However, I started wondering why don't we simply put SQL statements into an HTTP GET request.
For example, in GraphQL I would ...
0
votes
1answer
232 views
Help defining architecture - async messaging; web app as portal in web page
I don't know if this is a legitimate architecture that I've been playing with. It consists of nodejs servers for services and to create web app front ends. And it is using async messaging (Redis) to ...
13
votes
3answers
3k views
Should the controller pass data to a view in the MVC pattern?
I work with ASP.NET MVC (and other web-based MVC implementations) quite often, but this is something I've never been sure of: Should controller and view communicate?
Of course the controller should ...