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.

learn more… | top users | synonyms

0
votes
0answers
8 views

How to compare objects with expanding amount of data?

Given a class like: class State { bool IsLessThan(State); int data; }; The State::IsLessThan(State) method can simply compare data in each class according to some logic. However let's say ...
5
votes
1answer
71 views

Functional core for elevator system design

How can Gary Bernhardt's "Functional Core / Imperative Shell" architecture be used to design software for an elevator system? Specifically, let's say there are a few elevators, each with call buttons ...
0
votes
2answers
95 views

Why do I need dependency injection and the depencency inversion principal in my case?

I'm a student of best practices, architectural patterns, and design principals. I have been studying dependency injection and inversion of control a lot lately, and have been "drinking the koolade" ...
0
votes
0answers
48 views

What should I consider while architecturing a loosely coupled modular application?

Introduction For some background, I am trying to architecture an application for my startup. My application is divided in 3 separate git projects, details are as follows. Backend API written using ...
0
votes
0answers
40 views

How to update a model with dependencies

I'm having a bit of a hard time figuring this out. I have a model (which you can see in the image below) this model can be changed (it won't happen often, but it can). When it changes I do not get the ...
0
votes
0answers
38 views

DDD. Layers and objects involved to generate a report

Let's say one of my user cases is to generate an XML report of a subset of columns of sales that satisfy certain criteria, in this case sales between 2 dates, beginDate and endDate. After having ...
0
votes
3answers
135 views

Pros and cons of designing PHP application with one public file approach?

I have an idea of making application in php that will not have any public files other than index.php i.e. different pages of project load as parameters sent to index.php Also if someone wants to ...
3
votes
1answer
84 views

Designing a secure system that verifies the person registering a product is the end-user/customer

The scenario: Our customer creates physical devices used in infrastructure across the globe Their new devices have IoT capabilities and can communicate their status and other sensor data to the cloud ...
0
votes
0answers
107 views

Should I avoid using CORS if possible?

I'm writing an API that will interface with an SPA front-end. For simplicity I currently have the API at api.example.com, and the SPA itself is at example.com. I have CORS set up and everything is ...
0
votes
2answers
83 views

Introspection vs polymorphism in C#

I'm wondering how costly C# introspection really is in terms of class type inspection. Let's say I have a problem, where in a method of D I have to decide to take an action depending on the type of ...
-2
votes
0answers
34 views

What sort of technology architecture should I use for a fantasy sports website? [closed]

So I'm planning a sort of fantasy sport website/service. Essentially players will be using a web browser to modify their team, make trades with other players, have a live draft, and a bunch of other ...
4
votes
3answers
183 views

How to translate a class diagram to code?

During the design stage, I usually come up with a class diagram that looks something like this However, during coding stage, I would never create a class like Librarian with issueStatus() or ...
5
votes
2answers
249 views

Separating business logic on code

I have a Category and Product tables in database and classes on project. Category class has {id, Name} properties Product class has {id, Name, CategoryId} and other relations. And I have repository ...
0
votes
0answers
105 views

Should all classes and interfaces ultimately derive from one Class, and how does this affect type safety?

If I have "Object" as the top level class, then I have various interfaces, ISomething, ISomethingB, ISomethingC, then I have Class x,y,z, all ultimately deriving from the class Object (these ...
2
votes
2answers
256 views

What's the suitable pattern to create a wrapper around the content of the application

I want to wrap every next web application with A top menu and right menu like this : Every new application should be integrated in this master wrapper. I thought to create a master page for the ...
0
votes
1answer
135 views

What is the cost implication on re-assigning a variable in an if statement

I have a piece of software which has different users (admin/user) In the admin version you are able to upload the changes straight away. Whereas a user doesn't have this ability have to save it to get ...
-1
votes
0answers
28 views

Moving legacy Spring 3 Backend towards Continuous Delivery

I want to move our legacy Spring 3 Backend towards Continuous Delivery (currently we have 3 week sprints). The challenges that we face are: our Web Services don't have Automated Functional Tests we ...
0
votes
1answer
47 views

Changing repository during Use Cases/Interactors in Clean Architecture

I'm developing an Android app whose architecture is based on the well known Uncle's Bob Clean Architecture. I have the following Use Case: Validate User Subscription It's based on this use case ...
0
votes
1answer
52 views

Can Package Manager be considered as an architectural solution

My client has a super Spaghetti codebase structure. Single solution with some hundreds projects in that solution, which are tightly coupled. They think that just using a package manager (like NuGet) ...
0
votes
1answer
53 views

What type of architecture style does the MEAN stack most resemble?

What type of software architecture style does the MEAN stack most resemble? I am thinking Client/ Server because of the way messages are communicated between the different modules in both. However, ...
4
votes
2answers
98 views

Where should HTTP calls resides in a layered architecture?

I have a client which depends on data fetching from two different domains. Client fetches the data from Domain "A"'s API layer and Domain "A"'s Data Depends on Domain "B" There is an implementation ...
3
votes
0answers
52 views

How to store and validate data between state transitions?

I'm developing a largeish application that will have custom finite state machines. That is, the admin users of the application will be able to create their own state machines, limited by little pieces ...
4
votes
1answer
51 views

How to Implement Service Discovery for External Docker Swarm Clients

I have a question regarding a specific case with our product. Let's say I have two services; Service A and Service B. (The number of services varies from an installation to installation). They are ...
8
votes
4answers
290 views

Code structure to handle multiple markets? (different business rules for every state in the USA)

We're developing an app that has slightly different requirements for each business market (countries and states) that it's available from. It seems like a common situation but I can't seem to find a ...
0
votes
2answers
80 views

Notifications in a microservice architecture: In Application Logic vs. Database Triggers

Context Our group builds and is responsible for maintaining multiple apps for a larger institution. We are in the process of breaking up our monoliths into reusable microservices (hooray!). When we ...
0
votes
1answer
52 views

Where should I store stream wide metadata in stream processing?

I am building a stream processing architecture and was wondering what to do with metadata about the stream. For instance, every message of data coming from a source has the same attribution, as it ...
3
votes
1answer
81 views

Two frameworks one repo

So I am going to use ReactJS for the front-end for a web application The application is mostly CRUD stuff but with some ajax UI etc. For the back-end I am using Laravel Right now I have both the ...
1
vote
2answers
92 views

Evaluating the cost of a query in database

We are working on a project using Google App Engine + Google Cloud Datastore. The language used is Python. At some points of our API, we check if some arg is passed in request, and we make some query ...
0
votes
1answer
60 views

Where does Data import task/service fit in DDD?

I'm currently trying to build my first solution following DDD principles. Until recently everything was more or less clear, but now I have a task to import configuration data for my application and I ...
-1
votes
1answer
58 views

Example of high availability voting tactic

As I read in Software Architecture in Practice by Len Bass, Paul Clements and Rick Kazman about availability voting tactic, the definition of voting tactic in fault recovery is: Processes running ...
1
vote
1answer
82 views

Proper way to difference user types in OO

I'm designing an application where I have users and admins (further down in the future, I can have different sub-ranks, where each one can have access to some area of the application). Currently, I ...
0
votes
2answers
123 views

How to handle fast data generation vs slow data storage efficiently

I'm working on a project that generates massive amount of data and store that data in a SQL database. I'm talking about like 1 thousand records per second. Next I've to push that data to a database. ...
3
votes
2answers
93 views

Is polymorphism appropriate for modeling natural language form (structure), or is there something better?

Let's take French and Japanese adjectives as simple examples. French adjectives have gender (masculine or feminine) and number (singular or plural), whereas Japanese nouns have neither. However, ...
-1
votes
0answers
35 views

When should I built my application on top of an Operating System and when should i use an embedded Architecture? [duplicate]

I have trouble to think about the implications of the usage of an Operating System for an Application. According to this presentation Toyota has developed for their "LEXUS LS-460" an embedded system. ...
2
votes
1answer
91 views

API Gateway security (for microservice architecture)

we have started with microservices recently, but we have some problems with implementing the Security layer. The idea is that the request comes to Gateway, the Gateway looks to authorization header, ...
3
votes
1answer
78 views

Design verification - chat application architecture

So for my newest hobby project, I want to create a simple chat application where users can just log in with a nickname (no passwords) and talk to anybody on the network. Off the top of my head, I'm ...
0
votes
1answer
142 views

How can I inspect a huge mess of projects for references

My current workplace has several disconnected teams that depend on each other. There are several legacy prjects with project files. I want to find a way to find a way to visualize our architecture so ...
6
votes
2answers
92 views

Does decentralization infer distribution?

I'm exploring the relationship between decentralization and distribution, and I've come to a question for which I've found no real explanation. Does the qualification of a system as "decentralized" ...
0
votes
1answer
102 views

OOP design in php

So I have to create an object design for this application, it is just problem for practicing. You are building application that will load data from several different advertising systems and then ...
2
votes
2answers
321 views

Should Microservices talk to each other?

I'm designing an application using Micro-Services and I'm unsure on the best mechanism to use to collect data from multiple services. I believe there are two options: Integrate an 'inter-service' ...
1
vote
0answers
49 views

Architecture recommendation for Android

Recently I developed Android application which is very difficult to maintain and We stuck in complicated situation. We developed Android Apps which contains 500k LOC and another team developed same ...
2
votes
1answer
82 views

App Servers vs. Web Servers

I serve static content from Tomcat. Someone suggested moving the static content to a web server in order to optimize performance. How are web servers designed that makes them better at delivering ...
2
votes
1answer
85 views

Future data integrity (n years)

So recently, I had a client ask me to restructure his Database hierarchy which consisted mainly of changing table names and column names and creating cross-references to stop red locks. He later ...
6
votes
2answers
189 views

Adding microservices to a monolithic architecture?

Does it make sense to add microservices to a monolithic architecture? E.g. if the monolithic system is old and is seen as too big, can it slowly be turned into a microservice based architecture? ...
0
votes
0answers
14 views

AWS EMR for running reports on data stored in S3

We have a bunch of measurement data that we are continuously uploading to different S3 buckets, depending on the location of where the data is coming from. The data is sensor measurement data ...
-1
votes
1answer
100 views

How to handle legacy versions of DAL and Database?

Lets say you have a Database, and a Data Access Layer (DAL) The DAL will be consumed by a various number of products which access the Database. As time goes on, you add new fields and tables to the ...
13
votes
5answers
535 views

Autonomous Microservices, event queues and service discovery

I've been reading a lot about micro-services lately, and here are some of the conclusions I got so far (please correct me if I'm wrong at any point). Micro-services architecture goes well with domain ...
1
vote
2answers
132 views

monolith vs microservices for app idea

I have decided to start building a SAAS app. I wish to keep hosting costs low initially, whilst still providing a good user experience. Here are the components that will make up my app: Front End ...
3
votes
1answer
137 views

A design pattern that mimics a UML?

I am designing a process of transforming a JSON object to HTML/CSS. It consists of: Identifying special components Extracting the special components Parsing the styles Parsing the layout etc... I am ...
4
votes
3answers
175 views

Is loop unrolling one of the examples of “targeted” compilation and faster instruction set?

I'm taking the Computer Architecture course in my undergraduate study. I see that in loop unrolling, one of the constraints is the number of available registers. Since the number of registers ...