Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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'.

0
votes
1answer
87 views

Breaking a website into a bunch of micro services

Imagine we have a website happy-cooking-together.com. (I made it up so if becomes available all of a sudden don't take it for real.) It's getting quite a lot traffic and multiple teams are working on ...
0
votes
0answers
9 views

Separate server for Flask-SocketIO chat functionality?

I currently have a Flask application which acts as the backend for my website. I intend to add live private chat functionality to my website using Flask-SocketIO. I was wondering, is it better to ...
-1
votes
0answers
17 views

Layer Bridging in iOS SDK?

I'm trying to analyze iOS sdk's architecture for a college assignment. I'm unable to find any information about layer bridging in the architecture i.e. for example can the Cocoa Layer directly ...
0
votes
0answers
24 views

Logic surrounding archiving an entity using the repository pattern

I am working on a live trip geolocation app. Basically the user creates a trip X days/hours in the future and once the trip starts the server will start receiving gps updates and persisting them to ...
1
vote
0answers
14 views

Batch Syncing between two system and one system reverted its state to older DB state. Syncing Problem

We have a system which generates db records and a ever increasing id named archive_id ( bigint in postgres). sample table: record_table ------ archive_id bigint,info varchar Another system ...
-1
votes
0answers
13 views

What architecture or design pattern fits for a API serving an application as retrieving data from content management system?

I want to create an app that gets data from content management system and serves an API to another app for using the content. So too many parsing objects and maybe manipulating them before serving in ...
0
votes
1answer
31 views

Separation of Logic and UI - Does the orchestration belong in the model?

I wrote an app with the MVP Passive View pattern. My solution has four different projects. A MyApp.Core containing all kind of business logic, a MyApp.Forms containing stuff related to WinForms (UI), ...
10
votes
4answers
431 views

Replace Conditional with Polymorphism in a proper way?

Consider two classes Dog and Cat both conforming to Animal protocol (in terms of Swift programming language. That'd be interface in Java/C#). We have a screen displaying a mixed list of dogs and ...
0
votes
1answer
56 views

How an async response is usually getting back to the clent in typical reactive highload architecture?

A typical highload reactive architecture is: (Q means queue) And usually arrows are from client to DB at such sketches. My question is how the response is going back? The same queues and other stuff?...
-2
votes
1answer
77 views

what is the real use of JS/Jquery in Asp.NET MVC application?

I am planning to design a new web application using ASP.NET MVC 5. I used to write a lot of JS/Jquery code on UI when I was a beginner with Web forms applications. After reading/learning a lot of ...
3
votes
2answers
211 views

Microservices communication: Avoiding single point of failure

As far as I know, there are two commonly used patterns when dealing with services communication in a microservices architecture: Direct-calling other services. For example: Service A handles some ...
1
vote
1answer
55 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
vote
1answer
36 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 ...
-1
votes
1answer
64 views

What is the best Architecture / System Design to launch same app in different flavor and a bit different logic?

There is a company let's say "X" which mainly deals in Real Estate / properties and has a website (online portal) to display those properties. Just like any other big company when they saw a ...
0
votes
1answer
161 views

DTO vs. read model

If I understand the concept of read models correctly, then it's just a simple query to return a use case specific data set. But a DTO seems to have the same purpose, but in a more complex way (...
0
votes
3answers
108 views

Stop a process for human control if some score is reached (Screening System)

Say I have a blogging system. Users can create posts that will get automatically published unless some score is reached. So when users save a post, we do some calculations and add up some numbers ...
3
votes
1answer
83 views

DDD Application Service Architecture Question

I often run into this decision making scenario of where to call a Domain (or Application Service) when building my Domain Models. Maybe the confusion is in identifying whether this is a Domain service ...
0
votes
0answers
53 views

How microservices and EIP relates

I've been working some time in microservices architectures and have created multiple micro services using Spring Boot framework, let's say UserService, AccountService, BillingService, ...
1
vote
2answers
65 views

Microservice boundaries definition and dependencies handling

I'm reading a lot about microservices but one thing remains a bit unclear to me. Let's say in my organization, I have 2 abilities: Extract street names from one or more blocks of text Given a ...
0
votes
1answer
63 views

Android Clean Architecture - Seperate Usecases, Single Usecase, or not a Usecase at all?

I'm working on refactoring an older project of mine to follow the Clean Architecture paradigm (and loving it so far) and one of my components is causing me a bit of confusion in relation to whether or ...
0
votes
1answer
109 views

Should I Microkernel or Microservice my legacy ERP?

I have been working on an n-tier monolith application for a couple of years, and want to build a plan to transform this big ball of mud to a more maintainable system. I came across Software ...
0
votes
0answers
56 views

PubSub Vs. Implicit Invocation Architectural Pattern

Although the question was posted on Stackoverflow here no answer found and I feel the question may be more suitable for this site. So, what is the difference between public subscriber and implicit ...
0
votes
0answers
39 views

Design/arch pattern for permissions system

I have an application that has many users who can interact with each other, either by chatting or other actions. Some of those actions can only be rolled for those who have permission to do so. Those ...
2
votes
1answer
388 views

Can CQRS pattern exist without mediator pattern?

Can CQRS pattern exist and/or work without mediator pattern? I mean there are always commands and these commands have to be dispatched somehow to the handlers that perform some logic on them. Does ...
1
vote
4answers
329 views

Best practices for database backward compatibility

I am working on an app which has multiple versions deployed in the market. Different versions have modified databases and databases are to be synced between local storage and server storage by signed ...
6
votes
4answers
346 views

What are some approaches used in financial applications to prevent deposit/withdrawal sync problems?

I am currently facing a problem with an application that has deposit/withdraw functionality. The underlying database (Cassandra) offers no read/write locks. Now suppose user A has deposited 100$...
3
votes
1answer
476 views

Unit Testing in VIPER Architecture: Possible?

TL;DR There are no methods in VIPER which are returning any value so how to test them? Reasoning: In VIPER, each layer is communicating with other layer by holding an abstract reference to it (...
-1
votes
1answer
68 views

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

There's a 1st sofwtare (s1) that generates data and then there's one or more software's (s2, s3) that will receive that data(objects), based on pre configured actions that define the type of data to ...
8
votes
2answers
620 views

Is “evolutionary software architecture” a contradiction?

In my understanding, evolutionary architecture boils down to making architecture easy to modify. Now architecture is often defined as the things that you should get right early because they will be ...
1
vote
2answers
677 views

Web API : Centralize business transaction logic : Good Idea?

We develop on a ASP.NET Web API where we use the "Unit Of Work / Repository" pattern : Our Controllers looks like that : public class MyController : Controller { private IUnitOfWork _unitOfWork; ...
1
vote
0answers
296 views

Create account flow in microservices architecture with different services for account and auth

I'm developing an application based on microservices architecture. Currently my goal is to implement 'Create user' flow. But I'm not sure quite sure what is the right way to do it. My problem is as ...
1
vote
1answer
442 views

Android - Clean Architecture - best way to structure packages?

Can you all take a look at my package structure to understand how i implemented clean architecture in android: if we take a look at the clean architecture diagram it looks like frameworks is apart of ...
45
votes
11answers
11k views

What does Robert C. Martin mean by SQL being unnecessary? [closed]

I've been reading/watching a lot of Robert C. Martin content. I've come across him saying SQL is unnecessary because of solid state drives. When I search other sources to back this up I get a bunch of ...
10
votes
3answers
3k 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....
0
votes
1answer
184 views

Web page accessing local system via localhost HTTP API

I have seen this pattern that allows web pages to interact with local system resources through a HTTP interface and I have a couple questions about it: What is this pattern called? What ...
0
votes
0answers
40 views

Architecture design from a java based friend finder and groups creation for an IM app

I am trying to design the architecture of the friends finding and group creation service(the group creation system to be precise) of an Instant Messaging app with Android as the client, Java as the ...
0
votes
0answers
566 views

DAO vs Repository when extending spring data jpa repositories

I read several articles about diff between DAO and Repository patterns. From what I understood repository should not have query smth like this List query(AccountSpecification specification); and ...
1
vote
2answers
649 views

Uncle Bob's clean architecture - Composed entities

I'm building an Android application, and trying to follow the Clean Architecture pattern. I am a little confused on what my entities should look like regarding some of my use cases. Example I have ...
1
vote
1answer
62 views

How to implement format-complying logging system?

We have a system that generates lots of logs and we have to somehow maintain logging workflow in a project. The 'strict' (let's assume it's strict) requirement is that there should be a document ...
1
vote
0answers
27 views

Running Multiple distinct Services on a single server process

I am working on a java server, which has a bunch of seemingly distinct "services". A lot of which are just effectively classes. From a software architecture point of view I wonder what the opinion is ...
5
votes
1answer
296 views

Design Patterns to model complex decision graph

I am currently building a piece of code that creates side-effects based on input parameters. It has around ten input parameters and about six available side-effects. Based on the input parameters, the ...
3
votes
1answer
140 views

Retry Architecture

This has been on my mind as I developed several applications with this feature. Suppose that an application is required to process incoming requests in an asynchronous manner. Take the example of a ...
3
votes
2answers
197 views

Dependencies within the inner hexagon of Ports and Adapters

In this article Mark Seemann explains how Onion/Hexagonal Architecture (or Ports and Adapters) are somewhat similar to a layered architecture when the Dependency Inversion Principle (DIP) is applied. ...
3
votes
1answer
201 views

Disintegrating monolithic application with Micro services vs ESB approach?

I have only theoretical knowledge about ESB. Use case:- I have ecommerce like application where I can receive orders from multiple sources in different formats . Once application is submitted I ...
2
votes
1answer
497 views

How big or small should a Use Case Interactor be in Clean Architecture?

I’m trying to figure how best to define a Use Case using Clean Architecture and DDD. Let’s say I have an application that handles the pick, pack and shipping of a delivery. Here is the flow: User ...
3
votes
2answers
345 views

Microservices Autonomy

I'm currently looking at microservice architecture example and am struggling to make my services truly autonomous. I have the following services... CustomerAPI CustomerService OrderAPI OrderService ...
1
vote
1answer
127 views

How should I structure my Observables on a Nodejs application with RxJS

So I am learning reactive programming, and I am building an app for fun that listens on various stock information tickers, and calculates specific things to show in charts etc. So right now I have ...
4
votes
1answer
204 views

In MVP, should the View have access to Domain objects?

Let's say I have a form for representing a user. When pressing the "Save" button, should a User object be: constructed by the View based on the input, then passed to the Model via the Presenter and ...
4
votes
3answers
243 views

Architecture for a Customer/Project/Quote/Order system

I am working on figuring out the architecture for putting together a complex modular system that has Orders, Customers, Projects and Quotes. The customer can have multiple projects. For each project ...
-3
votes
2answers
259 views

How to model infinite non-linear combination? [closed]

Let L be an ordered set of positive integers (for example, the set of all primes). Here, #L = infinity, and N is a positive number serving as an upper limit. Goal is to list the following set M: M =...