Questions tagged [architectural-patterns]

An architectural pattern is a general reusable solution related to the high level structure of software systems. For reusable solutions having a more specific scope (e.g. individual classes/components and their interactions), prefer the tag 'design-patterns'.

Filter by
Sorted by
Tagged with
-3
votes
0answers
51 views

Refactoring and moving monolithic ASP.NET Core app to Kubernetes

(This is my very first post here, so I'm sure I violate a few rules of this community, mainly by asking too much questions in a simple post. Sorry for that.) I have a monolithic ASP.NET Core MVC ...
0
votes
0answers
50 views

Single DB - Multitenancy with microservices

We are migrating from a monolith to microservice. Note : We store the tenant details in master tenant db which is seperate from the application database As-is: The app serves multiple tenants and has ...
0
votes
1answer
29 views

Service integration with large amounts of data

I am trying to assess the viability of microservices/DDD for an application I am writing, for which a particular context/service needs to respond to an action completing in another context. Whilst ...
1
vote
2answers
201 views

How does DDD play nice with dynamic business rules?

DDD was chosen as an architectural pattern to tame a wild database model, as well as ubiquitous language. However, there is a sticky part of our model -- many of the rules are dynamic, and I don't ...
-3
votes
1answer
86 views

How to get Address pincode inside Customer class

I have 2 domains Customer and Address using using EventSourcing and CQRS in our Monolithic app, below is my query: Customer Domain: class Customer { //Aggregate class String custId; ...
1
vote
1answer
53 views

Digital Signature for PDF files through Web Application

We are developing a Web Application for manage dental clinics. The app can generate PDF files through the PHP backend (for example invoices, quotes etc.). Each of those PDF file needs to be digitally ...
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
82 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 ...
2
votes
1answer
116 views

How to model Business Objects depending on use cases?

I'm having trouble modeling the Business Objects of my application. In my domain I have substantially a list of bills of orders, and for every bill I have the pallet that contains the materials to ...
3
votes
1answer
164 views

Where should the circuit breaker go?

I'm developing a new REST API and I've seen some projects place the circuit breaker in the Controller. I used to place it in the DAO. First difference I can say is that placing it in the DAO is that ...
-2
votes
1answer
95 views

Patterns for multi tenant systems [closed]

Ok so first I want to describe the anti-pattern anti-practice. Company creates system for customer number 1. Then customer number 2 comes along they fork the codebase customize it. (Say for variations ...
0
votes
1answer
45 views

Structure and placement of a exporting module

Its an infrastructure monitoring application. We have a spring boot (2.x) based Service Oriented Architecture (SOA) with multiple modules in our project and the center point is a REST services module ...
1
vote
1answer
75 views

What is the name of this kind of (intra-process, inter-thread, queue-based) event system?

Context Espressif's embedded development libraries for the ESP32 microcontroller contain an event system based on FreeRTOS. The event system handles connectivity, interrupts and other IO activity, but ...
2
votes
3answers
78 views

Is it an anti pattern to have service to service dependency in the layered architecture? [duplicate]

Is it a bad practice (or maybe anti-pattern) to have service to service dependency in the layered architecture? I've noticed that when an application is designed in a way that a service can call ...
-2
votes
2answers
48 views

Poor execution of ASP.net software architecture and how I resolve some of their issues

MVC+ xml web service using MS MVC. The project is made with MS ASP.net front end and business logic, and the logic contains does coded with some complicated logics to interact with the front end ...
0
votes
0answers
22 views

Architecture pattern for website service that automatically generates Bootstrap templates

I am working on a web app that will automatically generate Bootstrap sites given a bounded set of parameters. I need help with regards to architectural decisions, as over time, I have made very naive ...
2
votes
1answer
123 views

How far to go when decoupling Microservices by use of Integration Events (Messages)?

I am reading the architecture guide from the .net core project. They state: The integration events can be defined at the application level of each microservice, so they are decoupled from other ...
1
vote
1answer
195 views

Is it possible to use more than one software architecture pattern in a single software? If so, how would this work?

I already know of various software design patterns, and I am familiar with MVC. However, now that I am learning about other patterns (repository, client-server, pipe, and layered), I got a bit ...
1
vote
2answers
79 views

In Event Driven Architecture, do Microservices only communicate with Events/Commands?

Still getting to grips with EDA. Suppose in your system you have an Order Service, which first needs to check if the customer's account has enough credit from the Account Service. There are multiple ...
0
votes
0answers
44 views

Architecture to check for user properties in bulk?

We run an infrastructure in our organization, where a list of configs are provided and we check which config a given user satisfies. For eg: config_1 = {"a": 1, "b": 2, "c": 3} config_2 = {"a": 1, "b"...
-1
votes
1answer
65 views

Design of a single microservice, size limit?

I've been struggling for a while of what would be the "recommended" approach for a microservice itself. There are quite of top architecture designs that are the holy sacred for a lot of craftsman ...
-2
votes
1answer
55 views

Is there a less complicated alternative to handling this simple mySQL query in Node?

To Put My Question In Better Context... I am about done writing my first real-world Node application, which would be classified as a REST API. For myself, it was a bit challenging to wrap my head ...
1
vote
2answers
132 views

How to organize database access logic for the infrastructure and application layer when avoiding ORM tools?

I'm trying create a .NET Core project and followed some guides to create a basic architecture Jason Taylor - Clean Architecture with ASP.NET Core 3.0 Sample project Clean Architecture Template I'm ...
-2
votes
1answer
44 views

How to organize my controllers in projects in .Net API?

I'm working on a project that is a API with many controllers and modules. Which of the following is the best architectural practice to organizing my API controllers by dll (.NET 4.7 WebAPI)? Why? ...
0
votes
1answer
39 views

Message bus: should an event handler trigger other commands?

Given I have a message bus that can handle commands and events. A command handler can dispatch an event. But should an event handler be able to dispatch another command? Or should event handlers only ...
0
votes
1answer
104 views

How to handle input validation in microservices for duplicated data

What would be the best practice of handling input validation in microservice? Especially for the duplicated data? To give context, say I have 3 services: User Typical user service with User object ...
0
votes
0answers
37 views

Batch processing : Solutions for distribution of workloads

I work on product that is a multi-tenant cloud solution. When it comes to repeatable batch processing we have a set pattern. We configure a job to wake up and start executing its logic at regular ...
-3
votes
1answer
56 views

what is event based data integration?

Please help me to understand what is event based data integration in simple layman term with some examples? How it is different from other form of data integration. Some sample use cases will be ...
0
votes
3answers
134 views

How would you improve this architecture for a travel website?

Context - I'm building a flight booking system (online travel agent) that will partner many airlines to sell their seats. I've designed my architecture to work like this: When a user searches for ...
2
votes
2answers
107 views

Is the Aggregator Pattern with Multiple Clients in Microservice Architecture Valid?

Say two microservices provide information for a product, one is providing general information (A), one for product images (B). Similar to the architecture described in the gateway aggregation pattern, ...
4
votes
1answer
172 views

A question regarding the Layered Architecture

Consider the following general form of a layered architecture : I need to check my understanding about the second layer from top . More specifically I need to check my understanding the regarding ...
0
votes
1answer
121 views

What should the response of the Service Layer be?

My controller calls the service layer. The service layer calls a repository or does whatever it does. If I just return a person object for example how do I know it was successfully retreived? I can ...
2
votes
0answers
46 views

Javascript module design patterns

Partly for use in my own projects, and partly for fun while being stuck at home I'm attempt to build yet another "block" based editor. So far I've been using simple objects, starting with a global ...
1
vote
1answer
38 views

System design : Implementing a common service process with a http server

I have a huge DB,and CalculateTasksFromDB() takes a long time (and lots of memory). Once that method is done,there is a huge list of tasks. There are worker processes in the system (at any point in ...
0
votes
1answer
56 views

Need for a domain model in a service in 3 tier architecture?

I am building an API Rest with Spring Boot and I would like to clarify a concept about my architecture, to see if the community can help me. Imagine that in my database I have a table called Person. ...
5
votes
2answers
165 views

DDD Domain Modeling of Transportation Module

I am in the process of trying to model a transportation module for an ERP type system using C# and EF Core. This service is responsible for managing customer pickups and company-owned truck ...
0
votes
2answers
124 views

Architectural solution for business logging

I have a the requirement for a webservice which should return a "business log" of the action the service performed. Usually I only return error logs which are based on exceptions. the exceptions get ...
0
votes
0answers
80 views

Can one Application Service call the Application Service from another Bounded Context?

First bounded context: Requisites Here we store user's organization requisites (Title, Logo, ID numbers, Bank requisites) Second bounded context: Bank Integration Here we have all use cases that ...
1
vote
1answer
138 views

Who does what and who lives where?

Hexagonal Architecture seems to make so much sense when I read about it (like more than I can say; the ultimate eureka moment), but actually implementing it is a different story. I more or less ...
1
vote
1answer
148 views

external API in three-tier architecture?

I am making a data visualization application in Unity game engine that simply shows data in a 3D environment using google maps API. I am using the three-tier architecture to explain the application. ...
-3
votes
1answer
228 views

Choosing architecture for Winforms C# application

I'm developing GUI for controlling and testing hardware device. The GUI consists of many basic controls like textboxes and radio buttons which are mostly independent of each other - each control ...
1
vote
2answers
99 views

Base interface with extensions

I'm doing a bit of refactoring work for a software that use hardware, specifically cameras, to gather images and process them in different ways. A few different cameras are supported, and there will ...
-1
votes
1answer
70 views

What is the best way for sharing common functionality or reusing existing code in micro-service architecture?

I just curious to know that what is the best practice or way for sharing common functionality or code among the micro-services. For example, there is one micro-service which is responsible for the ...
1
vote
3answers
161 views

Dependency Inversion Principle and Lower-Level Code Reuse

I am wondering about how to make lower-level code reusable when the Dependency Inversion Principle (DIP) is used. In the book Clean Architecture by Robert C. Martin, the DIP is described such that ...
5
votes
1answer
221 views

Is My Data Access Layer Really My Domain?

I'm not an architect, but am trying to put together a diagram which represents the architecture of the application which I am maintaining. I have one question (but welcome any comments about the ...
0
votes
1answer
60 views

Wrapping ReactJS UX component library in another layer of abstraction, pros and cons?

There's AntD library with various UX components. Right now I required to wrap all components which I'm using in another layer, to make an abstraction. For example, if I'm using AntForm component I ...
0
votes
0answers
47 views

Should unused user-uploaded resources (e.g. images) be deleted from storage?

An example web application X allows its clients to upload various resources, e.g. images. These uploaded resources can also be removed by the user at a later time. My question is this: what are the ...
0
votes
1answer
35 views

Scaling inserting related optional objects to your collection

In PHP, you can have a collection as an array as a class property. This collection can have a function add that takes multiple (type-hinted) parameters, as such: add( Markup $markup, Style $style = ...
0
votes
1answer
121 views

Architectural pattern for testable C code [closed]

I wrote a lot of software in C# and Python. I tried to make the overall architecture testable by using the "Clean Architecture" and Dependency Injection. This works well for C# (and python). Now I ...

1
2 3 4 5 6