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
-4
votes
1answer
79 views
Does it make sense to use microservices on top of a monolithic data layer thats unlikely to change?
If you have a very large monolithic database that is not partitioned or sharded, with strong relationships between the tables/data, does it still make sense to use microservices as the application ...
0
votes
0answers
43 views
Handle big data sets in a web application in combination with real-time communication between web-clients
We have the following use case to be developing:
A web application that shows a data table / data grid with up to 100000 rows and 30-50 columns. Each column is filterable and sortable. The web ...
1
vote
4answers
85 views
Achievement System based on many past records
I want to build an achievement system that awards certain badges based on conditions,
I wonder how to tackle this, if for example, the user has ran 9999 kilometers, if I want to award him a badge when ...
0
votes
1answer
150 views
Multi-tenant system architecture to allow tenant specific and tenant agnostic data
How would you define the system architecture (mostly in terms of database structure) for a system which needs to have data available both at tenant level and organization level. An example of this is ...
1
vote
4answers
103 views
should microservices be orchestrated, or work independently
it might be too opinionated, but I've been struggling in this for far too long and cant seem to make up my mind.
I am trying to compare two approaches to designing a system:
Lets assume You want to ...
2
votes
2answers
177 views
How to keep C# interfaces organized?
I am working as part of the team on the web api application. The Entity Framework used as ORM, I have the idea to keep all selectors in services. E.g. we have Cat table, then would be ...
3
votes
0answers
53 views
AWS Serverless Microservice design
I am building an open source task management and note taking service that runs on AWS. I'm building it mostly as a hobby in my spare time and will eventually ship a mobile app that consume it into an ...
1
vote
3answers
80 views
Which of these model error handling strategies makes most sense?
I am building an API in expressjs and, currently, mongo/mongoose. I currently have some model methods that return true or false, some that return a value or false, and some that return a value or ...
1
vote
2answers
119 views
How to organize logic for table-like feature set? Looking for architecture pattern advice
I have a table-like feature set in a game. What it means is I have 10 types of battle, and 10 types of features related to battles, like hints, start/end logic, rewarding/spending resources, statistic ...
5
votes
6answers
367 views
Structuring a long sequence of operations
Imagine a production line - say, building a car. Starting from the beginning, a long, defined sequence of operations takes place, and at the end a car comes out. At various points along the way, ...
0
votes
1answer
115 views
Repository Pattern with Services Layer - Good Practice?
This is my first time I am using repository pattern and applying a layered architecture in a project. I have followed the article found here. The complete code found on the article can also be found ...
0
votes
0answers
30 views
Why to use MetalLB for kubernetes Ingress when by default we need to reserve dedicated Ingress nodes?
I am new to kubernetes and I have created a HA cluster from scratch using kubeadm and ansible on offline premises.
Although that I can understand / read most of the components online I recently ...
2
votes
1answer
122 views
Moving shared CQRS/Mediatr Request Handler logic into services and avoiding code/logic duplicity?
We recently embraced Clean Architecture and CQRS, by way of Mediatr, in several of our new applications. A similar (SPA-based) demo can be seen here. For many of our WebApi-based projects, this worked ...
0
votes
1answer
159 views
What is the most common stateless way for authentication in microservices?
I'm trying to get into Microservices by creating a project, so far I've stumbled upon authentication mechanisms, in a monolithic architecture, the client (web app) would send a request with the user ...
0
votes
0answers
54 views
Database Design for Form Builder
Hi guys I'm trying to create Form builder in my app for different Events that have happened and publish them, so the users can fill them out.
Little About Logic:
Forms are created per different Event ...
-3
votes
1answer
70 views
What would be the best approach to enable data access to millions of records in an open source fashion?
We're currently building a Django app that's a doctor-patient-agent manager that allows patients to book a consultation, and doctors give them their prescription and information. What's important is ...
0
votes
1answer
59 views
How to inform the controller why the object creation has failed so an appropriate response can be returned?
In my MVC web application the controller calls a service layer which takes any relevant request parameters and builds the model for the view e.g.
Controller
var model = _modelService.Build(id);
return ...
0
votes
1answer
49 views
Using rest services or python modules directly?
Imagine you're in a Python setup, with all of the projects you're working on. Now, as a base line, you have a Python module that is the backbone (backbone.py) to everything when it comes to getting ...
-2
votes
1answer
73 views
What architectures allow for letting users author custom domain logic?
Are there any prescribed patterns or systems for allowing a user to create custom domain logic? Consider the following scenario
An application exists that allows users to run complex calculations on ...
1
vote
1answer
109 views
Building a Microservices App — Can you give feedback on architecture?
I did some googling, and I was directed to Software Engineering to ask architecture questions. If you know of a different forum that could help me, please direct me to it
I recently started learning ...
-1
votes
1answer
31 views
Should 2 different MySql databases from 2 different applications be joined together if the 2 apps are merging into 1?
This is a question about software architecture, not databases.
I currently have 2 completely separate web applications, call them A and B for simplicity. They are on their own machines, with their own ...
0
votes
2answers
105 views
Should default settings be considered as business rules from the viewpoint of “Clean Architecture”?
The examples of default settings:
Default port for server applications
Default resources directory for Java Applications
Default Webpack config file ("webpack.config.js")
My particular ...
2
votes
2answers
361 views
Clean Architecture Gateway layer depends on outer layer
Looking at the clean architecture layers and flow diagrams, and implemented it my self in my applications, I've always wondered which layer is supposed to contain the DB, or any 3rd Party service or ...
0
votes
1answer
42 views
Multitenancy - Get tenant in microservices architecture
In a multi-tenant architecture where each tenant has its own database, what would be the best way for each of the microservices to obtain information about the tenant (such as which database to ...
-2
votes
1answer
126 views
To return or not - redundant data from method arguments
Which code should I prefere and why? Is there some general rule?
Code 1:
var apiLicenseInfo = GetLicenseFromApi(string userId, string deviceId);
var localLicenseInfo = MapToLocalLicense(apiLicenseInfo)...
0
votes
0answers
35 views
WebApp architecture with multiple client
I'm investigating how I could achieve a project I've been thinking of for a while. Let me explain the project (I will not go into too much details, but I think what I'll write will be enough).
So, I ...
2
votes
3answers
195 views
why and when is queues used in backend architectures?
I am implementing a backend with a typescript framework called nestjs and I was reading some documentation about their usage of queues. https://docs.nestjs.com/techniques/queues I have never used ...
8
votes
4answers
359 views
DDD in microservices - where to draw the line of responsibility of a microservice?
TLDR:
If microservice A needs to combine data from services B & C (that are not aware of one another), should B (or C) do the data merging for service A, or it will be up to service A?
In Details
...
1
vote
0answers
49 views
Golang / React Webapp Architecture
A project is structured as so:
A build server listens to changes in two repositories: a frontend and backend repo. When it picks up a change it builds, tests, and deploys the updates to a production ...
3
votes
1answer
183 views
Method call order dependency
I have two camera devices that are able to find a specific hardware illuminated point in an image, as well as measuring the physical distance to the surface (and some more stuff I chose to leave out, ...
0
votes
1answer
194 views
Can Feature Flags replace Hotfixes in Devops?
When using a git strategy similar to gitflow, can feature flags totally replace the Hotfix Release branch process?
When seeing bugs in production, we first make the change in the develop branch and ...
0
votes
2answers
66 views
How to maintain low latency when working with Personally identifiable information across country
The question is straight forward :
Personally identifiable information ( PII ) of an individual ( regardless of the persons citizenship) has to be on the countries server where an account is created ...
-4
votes
1answer
76 views
Create an e-commerce that integrates other store
I would like to create an e-commerce website that integrate other e-commerce. I can retrieve their products using APIs or feeds. The problem is that all these information are different from shop to ...
-1
votes
1answer
57 views
Best way to create a modal setup
I'm making an online food ordering platform similar to something like Uber Eats. I have the menu items stored in the database which are then sent to the front end where I use a templating language to ...
0
votes
0answers
66 views
What 'onion' layer should ASP.NET Core WebApi controllers reside in?
I have controllers and they are in my API layer. They don't use types from the Infrastructure layer and (in Cockburns description of Onion Architecture) do act as the entry point to the domain.
I've ...
1
vote
1answer
113 views
Database per tenant architecture with microservices
Our team is currently building out an application built with microservices. This application will handle many tenants (organizations) with a database per tenant design. Authentication is handled by ...
1
vote
0answers
70 views
How do I architect reordering in database?
I'm building a todo list app and using react-beautiful-dnd on the frontend to allow users to reorder tasks. I'm trying to work out how to persist changes to the database when a user reorders items.
...
6
votes
2answers
319 views
Functional architecture with lots of I/O
I'm learning about "Functional Core, Imperative Shell" as espoused by Gary Bernhardt in his talk about "Boundaries". In reality, it seems like these ideas have been known for a ...
0
votes
2answers
103 views
Enforce collocation of data in the region where it is used
How to make sure that data specific to particular region remains in the closest data center to ensure low latency?
Lets consider Amazon e-commerce as an example . It sells products all over the world ...
1
vote
5answers
348 views
Is the Database part of the Backend?
Yesterday I asked myself if the database is part of the back-end.
On the one hand the back-end includes everything the user doesn't come in contact with, if you look at it that way the database ...
0
votes
1answer
115 views
Application Horizontal and Vertical Scaling
I'm hoping the experienced Java developers here can share some insight about this problem we have been trying to solve for so many months.
We're currently building a Java web application that uses ...
1
vote
0answers
31 views
Building an app+backend with extraneous functionality for an existing web shop. How to handle authentication on the backend?
This is an architecture question as I've been asked by an existing web store to build a
mobile app (they don't have a mobile app) that provides extra functionality to the store,
a web admin panel to ...
1
vote
1answer
56 views
Multiple sources of truth - Optimistic concurrency & Eventual consistency
I have a couple of web applications that write to their own databases. They also share a few entities, for example, the customer entity. My business case is such that the same field for the same ...
-1
votes
1answer
86 views
Mitigating frontend framework lock-in fears
My team is about to build a new user interface. The team has skills in a range of client-side and server-side technologies. Half the team argue for ASP.NET MVC, and half the team argue for a ...
1
vote
1answer
63 views
Are the following project distributions valid SOAs?
Currently we are developing an application for service oriented development which is a college signature, the professor created two applications one for backend and other for front. We are using maven,...
1
vote
0answers
27 views
Orchestrator or coordination pattern in Azure?
I am designing a background web job in Azure that, given a list of users it retrieves from a database, makes calls to a separate messaging microservice (for each record) that will end up sending N ...
0
votes
0answers
34 views
How to reuse business logics and resources of different mvc projects from new project
This new project is kind of fast walk through of previous controllers's jobs but some extra steps in between, sort of working as a wizard.
The thing is, it seems make good sense to create this wizard ...
0
votes
1answer
84 views
Best way to scale a service that fetches data and has a REST API to query it
I have been developing a service that fetches data and also has a REST API to query the fetched data.
the problem i have is, when this service starts it is starting the data fetching process, and this ...
-4
votes
1answer
72 views
How to create an Event-Driven Architecture with many external sources
I work for this Accounting company - as a Product Owner - that uses several external services (one for Contract management, another one for Accounting Demands management, a third one for Financial ...
0
votes
1answer
98 views
Managing consistency in distributed database
I have question regarding system design. Lets say I want to design a Flight booking system ( such as American Airlines). So, consistency when booking a ticket is very important. This booking system is ...