Questions tagged [architectural-patterns]

An architectural pattern is a general, reusable solution to a commonly occurring problem in software architecture within a given context. When using this tag on implementation heavy questions - tag the code language the implementation is written in.

An architectural pattern is a general, reusable solution to a commonly occurring problem in software architecture within a given context

Architectural patterns are similar to software design patterns but have a broader scope.

The architectural patterns address various issues in software engineering, such as:

  • Computer hardware performance limitations.
  • High availability.
  • Minimization of business risks.

Some architectural patterns have been implemented within software frameworks.

105 questions
0
votes
2 answers

Best way design and generate unique strings from an array of objects for mapping

The problem I am trying to solve is how best to generate a unique string from a set of question/answer strings. So say an end user fills out a questionnaire and answers the following: [ { "is there a problem": "yes" }, …
0
votes
0 answers

Is two way classes association bad?

I was developing one tool, and noticed what my classes use "two way association". Objects of class A have a pointer to B, and B have pointer to A. I tried to find out, is that a bad design architecrute, or it is ok, but didn't found anything. class…
0
votes
1 answer

Regarding Microservices Fuzzy Boundaries

I am reading Microservices Patterns by Chris. In his book, he gave some example, which I could not able to understand section 5.2.1. The problem with fuzzy boundaries Here is the link to read online. Can you someone please look into section 5.2.1…
john
  • 925
  • 1
  • 12
  • 20
0
votes
1 answer

NestJS: where to place a file reader?

I have an architectural question regarding NestJS. Let's say I have a ContentModule and a BlueprintModule, both need to read json files. In both cases I would have a service that calls the repository which than should read those files. This…
0
votes
1 answer

Transaction issue when DB Call happens after Rest Call

I am using Spring Boot and my application is just Monolithic for now, may switch to microservices later. SCENARIO 1: Here My DB call Does NOT depend on REST Response @Transactional class MyService { public void…
0
votes
1 answer

Sidecar vs Middleware

I'm building a microservice using express and need to some operations (say logging) on each request. I found that sidecar is useful pattern for this, but the same functionality can be achieved with express middleware. Is there any scenario where it…
0
votes
1 answer

Design - Alternative to Storing Executable Code in SQL

I'm working on a little browser game, and I've hit a design problem and the only solutions I can think of are bad. Its a typical web-app - Angular2/HTML/JS front end, Java server with PostgreSQL DB, content hosted on nginx and Tomcat Users can…
0
votes
2 answers

Design Pattern(S) Command or Factory Which is Better to implement?

We can solve some Design Problems By implementing Factory as well as Command Pattern also. so, according to performance which is the better one?
Mihir
  • 2,480
  • 7
  • 38
  • 57
0
votes
3 answers

How to select the right architectural/design patterns

I am doing my own research project, and I am quite struggling regarding the right choice of architectural/design patterns. In this project, after the "system" start, I need to do something in background (tasks, processing, display data and so on)…
MrMan
  • 39
  • 1
  • 7
0
votes
1 answer

Azure Service Bus, check if ASB is throttled by using SDK

We use Azure Service Bus to send messages from one service to another. Producer produces quite huge amount of messages(a couple of millions) during 1-2 hours. As a result our Service Bus(we use Premium Azure Service Bus) is throttled and we receive…
0
votes
0 answers

What is the best practice on providing aggregated data on each selection of a tab in HTML?

I supposed to write an API to provide the data to the front end. I've the following screen with filters by Shift/Day/Week/Month/6Months. Though it's completely my business logic, In general I want to know the best practice in providing data for…
0
votes
1 answer

Are there any standard messaging protocols that are pull based?

There are several messaging standards that are push based (e.g., MQTT, STORM). Are there any messaging protocols that are pull based? Use-case: Company A currently offers a MQTT endpoint that supports several topics. When an event is published to a…
Raghu Dodda
  • 1,505
  • 1
  • 21
  • 28
0
votes
2 answers

Login Flow in Android Clean Architecture

I was looking to implement a simple Firebase Authentication Android Application using Clean Architecture, so as per Firebase Documentation the user can be checked if he's been logged in @Override public void onStart() { super.onStart(); //…
0
votes
2 answers

Add status dialog to Qt project

I am making open source file manager with the ability to encrypt and decrypt file/files according given password called Cryptofm. You can get the code from here - the first version. I want to add status dialog, representing loading screen with…
nicksona
  • 326
  • 2
  • 13
0
votes
2 answers

What is the right way of using Views in iOS development?

I have a customView. It has some condition like this(only example): customView(viewsNeed: Bool) ... if viewsNeeded { self.addSubView(newView) self.addSubView(newView2) } else { self.addSubView(newView3) self.addSubView(newView4) …