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
0 votes
1 answer
309 views

Data Integration Design Using Microsoft SSIS

I am working on a data integration project, where I need to extract data from oracle source and load it to XML file. The requirement is to get the list of customers and foreach customer create an xml ...
-1 votes
1 answer
84 views

Most relevant objectively-quantifiable reason to choose to use an object method vs. a function that just accepts the object as a parameter? [closed]

When writing code in a programming language that has the option of creating standalone functions vs. methods of a class or struct, what is the most relevant objectively-quantifiable reason to choose ...
-1 votes
1 answer
82 views

How can I prevent an object from being re-sanitized everytime it is passed as input to a function?

Suppose that I have a class named CharStream Additionally, there are a large number of functions which convert their function input into a CharStream def funky_the_function(_input): input = ...
0 votes
1 answer
64 views

How to decomposing a single bounded context into multiple microservices for organisational purposes?

I have a monolith implementing what is basically an ETL process, receive data from external system, orchestrate the processing of it, and then pass the results back to an external system. (The ...
3 votes
1 answer
510 views

Where should I implement Ports with Hexagonal Architecture?

I have been doing some research on the Hexagonal/Ports & Adapters architecture. For the most part, it makes a lot of sense. My initial understanding was that "Driver Ports" were to be implemented ...
1 vote
1 answer
54 views

How to deal with mixing models between services?

I am working on an API that has a User resource to represent the current user and a User service that handles business logic for representations of this user. I need to introduce an Organization ...
0 votes
3 answers
107 views

Using Repository Pattern with .NET Entity Framework with a single Get method with optional parameters for each table include

We have a very messy data repository component, with dozens of methods to interface a DbContext (entire database) in Entity Framework. It was (and is) coded in a way that adds a new repo method for ...
1 vote
1 answer
121 views

Microservices Pattern - Downstream Services Registering Themselves with an Upstream Orchestrator?

I'm looking for some guidance on a design proposition I have to accomplish the following use case: We have several small microservices that each generate a unique set of "analytics" or ...
1 vote
1 answer
92 views

Architecture review for desktop application with distributed components

We are planning on building a desktop application with a few web components. I want to know how resilient is this architecture. Essentially the design looks like Mixing web components with desktop ...
1 vote
1 answer
111 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 ...
2 votes
1 answer
127 views

Design for the future or make it tightly coupled to the implementation

My question is regarding how would the developer know when you add interfaces/protocols to their code and inject them as dependency. Consider an example of BudgetService. protocol ...
0 votes
3 answers
192 views

When scaling from a single server to elastic computing (many concurrent servers) how do timed tasks scale up?

We have been in the process of scaling up my companies infrastructure, we have graduated from single servers and moved everything off to scalable AWS Ec2 servers that auto scale, there is one little ...
1 vote
2 answers
194 views

Implement message queue in API Gateway

Recently we have this client who asks for a API Gateway solution, in this case it’s Kong. Currently, they have 10 services (200 APIs) that are running on really legacy stuff (built with C++ and ...
0 votes
1 answer
212 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 ...
0 votes
1 answer
1k views

What architecture design is used to create a virtual queue?

What architecture design is used to create a virtual queue? A virtual queue, virtual waiting room, or virtual line can be described as: An online queue system that redirects excess end-users to a ...
0 votes
0 answers
65 views

Microservice Architecture For Blog Posts With Media Content

I was reading the guide about microservices from https://microservices.io/ (still very new to this architecture) and had a question about a design approach. Let's say i have a blog applications with ...
0 votes
1 answer
72 views

Applying Domain Driven Design to applications with both reading and writing heavy logics

We are planning a complete rewrite of a very complex project (10+ years, ~15 different application modules) and we would like to adhere to DDD and CQRS as much as possible but we are struggling to fit ...
0 votes
1 answer
210 views

Server-side Long Running Tasks

I am trying to decide on which approach to follow for long running tasks. Web Client (user) story Web client connects to the server (REST API + WebSocket for real-time notifications) Web client POSTs ...
0 votes
1 answer
376 views

Three layer architecture and using DTOs to transfer data between layers

I have a 3 layer architecture application with presentation layer, business layer and data access layer. UI -> BLL -> DAL UI Layer has reference to only BLL and BLL refer only to DAL. My BLL has ...
1 vote
0 answers
47 views

How to have only one consumer handle a long running task at a given point?

I need to design an application which makes requests to an external API. External API has a hierarchy of entities: User which contains ListOfItemss which contain Items. I need to get data on all Items ...
-1 votes
1 answer
92 views

How to automatically calculate the norm for users in our time registration application?

I'm creating a time registration application for employees where they can register their hours. I want to show the users their "norm" (not sure if this is an actual word or just made up by ...
2 votes
0 answers
2k 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 ...
0 votes
1 answer
130 views

How to show only most recent items in most efficient way?

Consider application where users rates products (e.g. 1-5 stars). Through passage of time, there might be millions of records. One can create desired indexes and/or keep sum and count of all ratings ...
1 vote
2 answers
168 views

DDD rich domain model - dynamic dependencies - EAA

class Product... public static Product newWordProcessor(String name) { return new Product(name, new CompleteRecognitionStrategy()); } Martin Fowler presents this code in his book "Patterns of ...
127 votes
7 answers
65k views

Clean Architecture: Use case containing the presenter or returning data?

The Clean Architecture suggests to let a use case interactor call the actual implementation of the presenter (which is injected, following the DIP) to handle the response/display. However, I see ...
1 vote
3 answers
80 views

Separating network logic from business logic

I am creating a simple P2P file sharing system, where one peer can send some Objects (e.g., String, custom objects, etc...) to another peer. The peer, that receives the Object, can then manipulate it, ...
0 votes
4 answers
308 views

Avoiding Synchronous Communication Between Microservices

Something that annoys me when reading about decoupling microservices is that the problem is often stated, with either poorly explained, bad, or no solutions provided, which seems to especially be the ...
0 votes
2 answers
240 views

Creating a "pass-through" dynamic model

We have a layer that exists in our architecture that, for lack of a better term, bears the responsibility of defining the common models. In other words, when systems need to communicate, rather than ...
0 votes
0 answers
41 views

Design pattern for scheduling method calls (open-loop control) [duplicate]

I have an ERP-style system that needs to allow users to orchestrate an Entity.action() on a variety of objects that implement the Entity interface, at different datetimes. Calling action() would ...
-2 votes
1 answer
119 views

Is it OK to use a Command Sourcing instead of Event Sourcing? Replay events in Commands-Repositories

I have a system that uses a graph database without any ORM, mapper or tool that tracks entity changes, like EntityFramework. I'm not using domain entities, instead I have an Event that calls changes ...
0 votes
1 answer
47 views

Intraservice Communication Using Kafka

recently i came across an architectural diagram in my organization, where a backend service sends messages to itself using Kafka, so basically it queues the messages and reads from the queue and ...
5 votes
2 answers
1k views

JAMstack vs Serverless architecture: what's the difference?

So I've been reading a lot about this new front-end architecture called the JAMstack, which is basically the modern way of building static web applications. Any dynamic pages are pre-built at build ...
-3 votes
2 answers
90 views

Coding style for a micro-service across organisation [closed]

Background/Context: A big organisation has several departments, those departments have several business units and those business units are divided into domain teams. Assuming domain teams are atomic ...
-1 votes
2 answers
132 views

Appropriate design pattern for coupled Objects

I code an Object-Oriented simulation where you can have a Unit move on a Terrain. The cost of such move depends both on both Unit capabilities and Terrain features: a boat can move on water, a plane ...
2 votes
1 answer
652 views

How does controller work with view in MVC?

Link says MVC – Model View Controller Let’s look at MVC first. You’ll notice a few things about the diagram: The input is directed at the Controller first, not the view. That input might be coming ...
0 votes
0 answers
47 views

How big should database adapters/gateways be?

Outline When you build an Adapter that connects your application and the database, How big should you make this adapter? Should it contain all possible queries that could be made to the DB? Do you ...
0 votes
2 answers
170 views

Microservices that needs to change row in shared DB

I have an application that can be reduced/simplify to this flow: user sends request to app A app A inserts info about the request and user into DB ( marked as "B in progress" and "C in ...
2 votes
3 answers
2k views

Synchronous vs Asynchronous Event Driven Architecture

I have been searching extensively about the difference between synchronous and asynchronous patterns and how this relates to event driven architecture. On its face it is quite obvious, I simply ...
0 votes
2 answers
132 views

In an "Always On" architecture, how are duplicate concurrent transactions handled?

Imagine a scenario where a gift card has been purchased with cash, the gift card is duplicated, and each card is used to purchase an iPad at a self-service counter at exactly the same time. What are ...
0 votes
1 answer
91 views

Are Microservices Architecture and a Single Customer View able to co-exist?

Given the microservices pattern is the decomposition of software by business capability with ownership of state, and a single customer view is an aggregated, central, "single" data store of ...
3 votes
1 answer
724 views

How to fix a circular dependency

I have a IItemProcessor class which takes each item from a list and send it to a web API (IApiService). The processing is done asynchronously, on another thread. If web API responds with 'user not ...
0 votes
2 answers
166 views

Accessing Hardware-based resources from multiple worker threads

I have a technical application that interacts with different hardware components: measurement devices, sensors, custom hardware. These use dedicated interfaces like USB, serial ports, TCP/IP ...
1 vote
3 answers
868 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 ...
0 votes
2 answers
92 views

How to handle functional differences in an app in different locales?

I'm working on an app that needs to be localised for two different countries, let's call them Atlantis and Buranda. As well as translating the site into the relevant languages and displaying dates, ...
-1 votes
1 answer
96 views

How to architect a communication of objects between 2 software (B2B, so called, communication)?

There's a 1st software module (s1) that generates data and then there's one or more software modules (s2, s3) that will receive that data (objects), based on pre configured actions that define the ...
1 vote
5 answers
988 views

How do Singletons differ from Static variables?

Although I do find some (apparently old) posts on the topic on the web, I could not find one here at SE. Thought of raising this here to see if what I read is accurate/is all there is to it. So ...
0 votes
0 answers
125 views

How to model an event-driven system for replays

Let's say I have a system to which I can upload documents via an API. There are three services: the UploadService - responsible for providing a HTTP endpoint the StorageService - responsible for ...
0 votes
1 answer
100 views

Designing a model for a small business which provides multiple services which generate documents [closed]

I am designing a system for a company which provides multiple services to users, all of which generate a document. The documents all have a validity period. Some of the services can be grouped, and ...
3 votes
0 answers
471 views

MVC vs Layered vs Client-Server

On this book (Software Architecture, 10th Edition by Ian Sommerville, ISBN: 9781292096131), the following architectural patterns are presented (Chapter 6, 6.3, p175): MVC Layered Client-server ...
52 votes
4 answers
29k views

Ways to share DTO across microservices?

My scenario is as follows. I am designing a system designed to receive data from various types of sensors, and convert and then persist it to be used by various front-end and analytics services later....

1
2 3 4 5
8