Questions tagged [architecture]

The high-level design and description of a software system. Architectural design distills away details of implementations, algorithms, and data representation to concentrate on the interaction of "black box" components.

Filter by
Sorted by
Tagged with
0
votes
0answers
19 views

Web application architecture - consistent UI and database

I'm sketching out the architecture of a side-project of mine which is an app that let's logged in users to add points on a map with their location. So the steps would be the following: user logs in ...
1
vote
1answer
80 views

What is easiest to maintain when implementing different functionality for each subclass? Downcasting, Reflection or Polymorphism?

I'm interested in knowing what is a good way to architect a system that can act differently based on the subclass being passed in. I assume polymorphism is the least computationally intensive. I'm ...
0
votes
1answer
47 views

Which Software Layer should hold Pagination Information?

Which layer should hold pagination information? (Page Size, Page Number), Eg say 100 products, 5 product per 20 pages. User can type in API url layer. api/Product?Page=1&Limit=2&ColumnSort=...
7
votes
1answer
104 views

How to design a good generic tiled image downloader?

Tiled images Tiled images are large images that have been split in smaller square tiles. There are several tiled image formats, with different ways of organizing the tile files. A tiled image on ...
0
votes
1answer
64 views

Domain Driven Design: Should Specification Pattern exist in Repository or Application level for Paging?

In Domain Driven Design, should the specification pattern for paging/pagination exist on the Repository level or Application level, or another layer? Trying to see what Eric Evans author of DDD stated....
0
votes
0answers
17 views

When to fetch/send data in an Android application

I am currently creating an Android application and I have the following questions: We have a server which provides data for the app in form of a REST-JSON-API. The App is following the MVVM ...
0
votes
0answers
50 views

Pure Components in Software Architecture [on hold]

Like "Pure Functions" in functional programming, which do not have any side effects, are there equivalent abstractions in Software Architecture/System Design? One of my main considerations during ...
0
votes
1answer
103 views

Which tree or graph structure to solve this problem?

I have the following interface, it defines a loadable resource that depends on other resources that should be loaded first so it can load itself: It does its job, the Find method allowing to search ...
0
votes
1answer
55 views

Application architecture using CQS and DDD Aggregates

I am working on a microservice architecture using CQS and with domain objects built using DDD aggregates. I am just beginning to learn about CQS, CQRS, Domain Driven Design, so excuse me if what I ...
0
votes
0answers
13 views

Turn based access to update shared resource such as inventory

I am trying to design a system where a Product can only be sold while inventory is available. This is an e-commerce platform where users can buy specific products with designated inventory. A similar ...
-4
votes
0answers
22 views

Web app architecture for pulling in, manipulating and emitting JSON [closed]

I need to build a small web app that will pull in JSON files from external sources (multiple JSON objects from multiple sources), combine and correlate them and then publish a new set of JSON APIs. ...
0
votes
1answer
43 views

How process dynamic rules for product configuration?

I need to find a software architecture to support object configuration and validation in a dynamic environment. Lets say I want to configure a bike where I have many physical components available to ...
0
votes
1answer
64 views

Domain Driven Design // Navigation Properties and Aggregate

I'm currently making a REST API, using DDD. As ORM i use Entity Framework Core, this ORM has easy mappings for navigation properties, as you sure are familiar with. My question is about navigation ...
-1
votes
0answers
31 views

How to store ensemble run outputs so that the output results can be located based on inputs used? [closed]

For my application the goal of model storage is to have the ensemble results be available to a user for lookup, such that the user selects between the combination of inputs and can view the results ...
2
votes
0answers
134 views

Using distributed locks in microservice environment

I'm developing distributed system and trying to use best practices of microservice architecture. I was faced with a situation when I think I need something like distributed locks. Since I have not so ...
-2
votes
0answers
25 views

Toggle between back end database exposed as webservice to database as failover [closed]

We are developing an API. Here our API will consume data from database exposed as web service for real time. In case if our back end database (web service) goes down (on-premises) , our API should ...
-2
votes
2answers
123 views

Separating Persistence Layer and Domain Layer [closed]

I have been reading a lot about Domain Driven Design lately, and starting to feel a little more confident, than when i first touched this topic. I'm using a Asp Core project, with class libraries for: ...
0
votes
1answer
47 views

Data replication with microservices using a messaging broker

I have a microservice based application like so: User.Microservice - stores , user information. Product.Microservice - stores products that user created. Order.Microservices - stores product orders ...
1
vote
2answers
90 views

Microservice Decomposition and Inter-service communication

I read theory but I need practical architectural advice on the actual implementation in java language for microservices. In the context of the attached screenshot. Here is my setup. Order Project ...
0
votes
1answer
69 views

Repository structure for microservices

As part of a larger project, my team is building a microservices API layer. We do not have experience with building microservices so we have been trying to figure out how to go about the project. The ...
0
votes
1answer
73 views

Web application and persistence choices

Right now we have a highly analytical system which collects tons of various metrics. We need to display this data in a web ui for users to consume. Since we are in early stages of development we are ...
1
vote
2answers
93 views

How to scale complex node.js application

Imagine a large node.js app with a multi-purpose api for mobile and frontend with a serving static files, with a websocket server, lot of cron jobs and workers. Basically I can horizontally or ...
0
votes
1answer
105 views

Is duplicating, deleting, pushing, and/or an object to/between lists a code smell?

I'm thinking about a structure like this. cardGame: players: - john: hand: - card: id: 1 suit: diamond ...
0
votes
1answer
83 views

Does this architectural design “smell” like Service Locator and can this be dealt with in a more robust manner?

I have an architecture based on a domain with multiple object types. These objects (many and of disparate types) must reside together with each other because they make up a use-case. The types are not ...
0
votes
1answer
161 views

Is it appropriate to run everything through web applications? [closed]

I work for a company in which the majority of our overall platform consists of a massive, monolithic web application. Nearly all of the application's functionality resides on 2 servers. Our main, ...
2
votes
3answers
373 views

TDD: Create a Game logic using Test-First Programming

I'm implementing a simple command line game using TDD principles and Unit Testing. My goal is to implement the whole game using Test-First Programming, so every behaviour/class is created from a test. ...
0
votes
1answer
74 views

Solving Event Dependence in Event Driven Systems

There are 60 Million Shipments per day. Each shipment has about 50 metrics to be calculated. Each metric is calculated based on a type of the event(Let's say event_1 has the required information to ...
1
vote
1answer
72 views

Design question on synchronization of two asynchronous data streams

I have two async streams suppose- Trip : {tripId, date, city} Bill : {billId, tripId, date, amount}. I need to design a system to get real time aggregated view of following nature: City, TripCount, ...
1
vote
3answers
90 views

DDD - operation on one aggregate that creates another aggregate

Let's say I am designing a TODO application and therefore have an aggregate root called Task. The business requires to keep a list of TaskLogEvent that provides them with a history of how the task ...
0
votes
0answers
54 views

How to avoid circular dependency from abstracting navigation in desktop application?

I am trying to abstract some functionality from my desktop application (JavaFX) for changing views. So, what I am thinking is: Navigator interface with methods like goToAccountsOverview(), ...
-1
votes
1answer
68 views

What would be a best design for a 'cloud relay' application? [closed]

I'd like to build a client/server application that doesn't require the client to open a port in its firewall for incoming connection requests. In other words, the clients will be able to communicate ...
-1
votes
1answer
62 views

CQRS and GraphQL

Context Domain I have a CQRS domain with requests, authorizers, handlers, response objects, entities, filters, pagination. It only depends on: external services (email, other APIs, etc...) a ...
2
votes
2answers
110 views

Granularity of microservices and containers

Let's imagine I have a single web app containing features which are topically related, but have highly differing implementation requirements. Let's imagine that this web app is about fruit, and ...
0
votes
1answer
79 views

How to keep inter-service authorization maintainable?

In our environment (as in many others), it is often the case that one microservice must call another in order to accomplish a task. In our environment, authentication is clear enough - we have a ...
2
votes
3answers
224 views

Are Result objects the cleaner way to handle failure, than exceptions? [duplicate]

I was watching the following video by Vladimir Khorikov, which recommends to "Refactoring Away from Exceptions" pluralsight.com - Applying Functional Principles in C# - Refactoring Away from ...
-1
votes
1answer
67 views

How to handle major changes (cross-cutting concerns) in REST API?

Let's say we have a REST API application A consumed by other 30 applications. Application "A" uses a cross-cutting security implementation using a Security NuGet package 1.0. All minor/major changes ...
0
votes
0answers
84 views

How can I economically scale to 100+ instances of my .Net Core app without using 1 container per instance?

Currently I have a .NET core application, which fires up a new thread to hold each customer account. Each thread instance: Is long running for many months or more Holds open SignalR Websockets and ...
0
votes
1answer
51 views

Should repositories always return Rx Single or Observable?

Let' assume we have an IFiltersRepository repository that provides data about a list of "filters" that are used on the search screen of an app (filter by color, by price etc). The repository has the ...
1
vote
1answer
119 views

Implementing Business Logic in Architecture

I am currently making architecture for one application in which we have different types of user and every user has different types of functionalities to perform. I am confuse in one point if i try to ...
0
votes
5answers
179 views

What if there is specific logic for one particular value of an enumeration class?

Background: I have seem some argument for using enumeration classes instead of enum in C#, in particular, this section from a book available at MSDN. On the references there is this "Enums are Evil" ...
-1
votes
1answer
53 views

What is the best design for this use case regarding bidirectional relationship? [closed]

For this question let's consider a system in which the users can match with each other (let's say for simplicity exactly like the dating apps). User1 matches User2 (and the other way around) only in ...
1
vote
2answers
119 views

Architecture/algorithm for unusual recommendation system

There are thousands (or tens of thousands) of possible movie titles. New user enters my website and selects hundreds of titles that he likes. The only single goal of my website is to output the list ...
1
vote
2answers
32 views

Excel Addin VBA, Backend/Frontend

I have a question regarding what is supposed to be backend and frontend for desktop applications and in this special case, an Excel Addin VBA. My application contains lot of forms and modules. I ...
1
vote
0answers
104 views

Circular dependence and many references to the same object

I have tried to design a class diagram for my first game. But then I realized that there are some ugly parts. First, there is reference from StateSystem to State and from State to StateSystem. The ...
2
votes
0answers
68 views

How to design generic bug-tracker integration? [closed]

I'm looking for ideas on how to design a "generic" bug-tracker integration architecture for Kiwi TCMS (opensource test case management system). Background: at the moment we support integration with ...
0
votes
1answer
52 views

Data backend for a 'Nearby' places application

Context I am building an application for searching places 'Nearby' akin to Yelp/Google. Objective for this question Recommend a strategy to do paginated searches based on location and ask for ...
-1
votes
3answers
177 views

Is it ok to have a class contain a list of its parent object?

I'm working on a software in which the client wants the admin to have all the rights to view and update the info of other employees. The admin is an employee itself so this is what I've come up with ...
1
vote
3answers
204 views

Should business logic be in the app or in the backend?

I've recently started applying the Clean Architecture while developing an Android application. And so I divided my application in 4 different parts. Data layer Contains the implementation of ...
1
vote
1answer
48 views

Front-end supporting multiple back-end versions - Maintaining backward compatibility

I know it's a broad question so I'll try to be as specific as possible. This question is probably as much an "organisational" question as a technical one. Our company is selling our software/platform ...
2
votes
3answers
125 views

Doubt about package-by-feature and circular dependencies

I am implementing a library that: Takes some input data (I put data structures and classes in the parsing package) Stores the data in a structure (I put data structures and classes in the storage ...