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
2
votes
4 answers

What design-pattern do you use, and what is it good for?

I know about the Gang of Four and some of their patterns such as the Façade, the Factory, the Singleton and some others. Besides, it happened that I see multiple patterns which I don't know of, neither for what are they good, or their purpose. I…
Will Marcouiller
  • 23,773
  • 22
  • 96
  • 162
2
votes
0 answers

Implementation of monitoring of computed properties in VueJS

In VueJS documentation, the following behavior is mentioned. Here we have declared a computed property reversedMessage. The function we provided will be used as the getter function for the property

Original message: "{{…

2
votes
1 answer

Patterns for Time / Date based domain events in DDD

I'm working on a user story whereby a Task (an entity) is created for a user to work on when a date is overdue and other criteria are met (on a separate entity - let's say a Product). Ideally I would like a Domain Event to be created in real-time…
2
votes
1 answer

Synchronous communication in Apache Camel between Camel Context's

In the last project I was able to use direct:vm component, which is in my opinion the best component to resolve my task. Unfortunately now I can't use it because I'm limited to ServiceMix's Camel version, which is 2.6.0-fuse-00-00, so I've found…
2
votes
1 answer

Comparing pipe and filter pattern to builder pattern

I'm trying to get my head around these two patterns and am wondering about the similarities and differences. To me they are similiar in ways as they both seem to use the step by step process. Could someone shed some more light on these two patterns?…
SamL
  • 133
  • 2
  • 3
  • 16
2
votes
1 answer

Is there a benefit to storing plain-text (in addition to the HTML data) to improve searchability?

To keep this simple, I intent to store some html based content that is created by the end user. So a table like the following create table Content ( ContentId, Title, ContentHtml ) Now, the HTML comes from let's say a CKEditor. Is it…
Jonathan
  • 651
  • 8
  • 14
1
vote
1 answer

Amazon SQS: how to find end of job?

Let's say I have a lot of jobs and every job consists from a big number of some elementary operations that many worker applications work upon. I send a message for every operation to workers, so they can catch these messages, do what is needed, then…
1
vote
0 answers

How to properly organize mobx data structure in react app with complex hierarchy

I'm writing an app with react framework, mobx state manager and using typescript. The application includes a left menu and a workspace in the form of tabs. As in the picture below. Visual representation of the application Each tab contains its own…
1
vote
2 answers

Should We use NullValueFilter in Intercept Design Pattern Implementation?

I have a List of campaigns that need to be processed via different kinds of filters for e.g., Platform Filter, Application Filter, CampaignRunning Filter to check if the current date should be between Start Date and End Date etc. There are ideally…
1
vote
2 answers

Which design pattern suitable to fetch same type of data from multiple sources, club them into a single unit and applying multiple filters

I have two products, Product A and Product B. Product A has a list of Campaigns created using M database calls and Product B also has a list of campaigns created by separate N database calls. Important Point to be noted - Some calls are common…
1
vote
1 answer

Library, “Injecting factory” and best practices for extending a library

I use a library which I need to patch. I need to fork it because Factory design patter is not used. Library has that structure: class X that hold references to other classes, that hold references to other classes and few more layers. Class hierarchy…
1
vote
1 answer

Should I create Presenter and Model for each Activity or not?

I've read some articles about using MVP pattern in Android. The best way for me is to create contract(one interface for each Model,View and Presenter). The question is should I create such a contract for each Activity or how to implement it if I…
Ilya Maximencko
  • 411
  • 2
  • 15
1
vote
1 answer

How is the SOA pattern different from the client-server pattern?

The SOA pattern consists of service providers and service consumers. It seems to be opposed to monolithic applications. The above two also apply to the client-server pattern. So how is the SOA pattern different from the client-server pattern? Must…
Tim
  • 1
  • 141
  • 372
  • 590
1
vote
1 answer

Android MVVM: Should the view notify the view-model for every user interaction even trivial ones (only have UI consequence/no data)

According to my little knowledge: In MVVM (Model-View-ViewModel) architectural pattern, the view should notify the view-model for user interactions such as button clicks. The view-model responds by updating its observable data streams…
1
vote
1 answer

Good strategy for replacing parts of functionality in iOS ViewControllers

I have VCs in an iOS app which have quite a lot of UI controls. I would now need to replace or "mock" some of these controls when in a specific state. In some cases this would be just disabling button actions, but in some cases the actions that…
Mknsri
  • 87
  • 9