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

1
vote
0answers
49 views

How do Chrome notifications work internally?

I recently learnt how mobile push notifications work but did not get any relevant tutorial how push notifications work on the Chrome browser. Here is my understanding how Chrome notifications must be ...
0
votes
1answer
47 views

Can a class factory also save the object to a database?

How can a factory also save the object in the database? I want to create an object that consists of other objects. Pseudocode: firstObject = db.get....; secondObject = db.get....; expectedObject = ...
3
votes
0answers
53 views

Context separation in microservices

I work in a small company and we are about to delve into the Microservices world. As expected, we are hitting a few bumps. As of now, we are working on a new software to manage heavy machinery, but ...
0
votes
0answers
63 views

How to decide what architecture to take

Let's say I want to start a new project from scratch: There are just a few users for the new software and it should be a web-application. I do have a MySQL-Database. Since I am hyped of Spring Boot ...
-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 ...
1
vote
1answer
49 views

Some questions on mobile push notification?

I need to work on android mobile push notification. I have recently gone through some of the tutorial on google. I would like to summarize the my understanding first Developer registers the app with ...
1
vote
2answers
141 views

How should I Implement a general method that could be used across several view models?

Currently I have implemented a method in to a model to take a screen shot like so E.G. Interface public interface ICapture { void CaptureMethod(); } This is the model that implements that ...
0
votes
0answers
44 views

Challenges in Consuming Slow API's

We need to integrate a chatting software in our web application (and mobile app). The chat software could be accessed by our users from outside of our application too. The integration goal is to let ...
1
vote
2answers
125 views

Why are most language virtual machines designed with a load/store architecture? Is there a speed advantage vs. a register-memory architecture?

I am developing a virtual machine for personal use (open source of course!) In researching and looking at the source code of other virtual machines, especially those of scripting languages; I noted ...
2
votes
1answer
24 views

MQ Architecture: How to handle old messages in the queue and releasing a consumer/producer upgrade

So for example if I have a producer that sends a message {id: 1} to a consumer that expects that json object. And there's a ton of messages sitting in the queue waiting to be processed. I'm also ...
-2
votes
0answers
40 views

How do we define, how much software architecture needs to be really created for a given project? [closed]

When we start of on a project, what are the parameters we need to check before coming to a conclusion on the quantum of architecture we need to define for a project. Ex Scenarios: If the project is ...
1
vote
0answers
20 views

User level customised activity feed design

I am working creating api for activity feed of user. Feed contains different type of entities. Before that let me give you bit overview about the app. Its a video app where Users can ask questions ...
1
vote
3answers
109 views

Wrapping pthread and time.h: future proofing or paranoia?

I work at a company where we have wrappers for pretty common things: pthread library and time.h functions. Management claims that this was done so that if we ever need to switch to another thread lib ...
0
votes
4answers
128 views

How to guarantee HTTP message delivery in fault tolerant way

When an application A communicates with an external/3rd party system B, there is always a chance that B is down. Say that A raises an event that should be sent as a message to B via HTTP, what is the ...
1
vote
2answers
65 views

Externalized component and communication approach - REST or RPC?

This is a hypothetical scenario with some concrete parts. Say that I have built a system that allows users to interactively arrange living room layout. The result of this arrangement is presented to ...
2
votes
0answers
42 views

Suggestions for data structure to create extrapolation?

I'm trying to write good code to make extrapolation on economic data and I have a hard time finding an efficient/ingenious way to do it. (to have a nice code that can be used in a different way later ...
6
votes
4answers
391 views

If a microservice architecture needs a separate database per microservice then it's too costly & unmanageable. Why do we even need it?

I read about microservices and it seems illogical to me to create a separate DB per service just to achieve isolation. I can achieve the same using only web services and a single database. Why do we ...
0
votes
1answer
45 views

Calculating time an object stays in a state

I use Python sqlalchemy to store my model in a MySql database. One of my objects has a 'state' field (for simplicity let's assume there are two states: AVAILABLE and UNAVAILABLE). There are ...
0
votes
1answer
53 views

Cross-cutting concerns in package-by-feature structure

What is your suggestion on where to put cross-cutting concerns in a package-by-feature structured app? This aspect seem to be missing from most of the pro package-by-feature articles I have read. ...
0
votes
1answer
44 views

Domain events or services to achieve domain model consistency?

Recently began implementing domain events in my domain layer which really allows me to decouple the application from the domain. Eventually, I would like to get a full-scale CQRS w/Event Sourcing ...
1
vote
2answers
87 views

Architecture for slot machine game

I am building a slot machine game for a client (virtual money, not real-money gambling). They started out with a template game and hired me to reskin it and make "minor" changes for a "quick" release. ...
3
votes
1answer
136 views

Single responsibility of Program class in C#

I do not follow SOLID strictly in general, but I do try making sure to separate responsibilities of my classes. I was developing a small app with a Windows service powered by Topshelf and realized ...
0
votes
0answers
31 views

Build a Application Level Syncing Architecture

We are a company which provides Facebook Marketing Solution. We want our users to use our platform completely and do not use Facebook Business Manager for their work. We take some extra inputs and ...
9
votes
4answers
403 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 ...
1
vote
1answer
58 views

How can you take a table and turn it into a workflow graph

I have a set of tables that defines the workflow. Say possible states are New, InProgress, Cancelled, Complete. I have a worfklow steps table that defines which new state the current state goes to ...
1
vote
2answers
161 views

Best practice on how can I change the structure of a live database without losing data inside

Suppose I have a live website running on a live database and I have a dev website that is a duplicate of the live website. The live database is where customer transactions are stored. Suppose I do ...
2
votes
1answer
80 views

How to white label my website in php

I have a website that follows the following structure: www.example.com/city1 www.example.com/city2 ... Programmatically we change the logo which is hard-coded in a specific config file for city 1, ...
2
votes
2answers
148 views

Clean Architecture Dependencies

I'm thinking about adopting the clean architecture. the main thing in this architecture as I understand it is the dependency flow from top to bottom. so the first thing that I asked myself is what ...
1
vote
2answers
95 views

Difference between MVC and ECS

Following reading Thomas Owens response (many thanks to him) on Is it reasonable to build applications (not games) using a component-entity-system architecture? and his explanation on what is ECS ...
0
votes
1answer
60 views

Architecture layout for SPA application

I have an existing SPA application where api calls from user browser are forwarded to application server hosted separately. My application server have all business logic and repository to connect to ...
-2
votes
0answers
25 views

Should subscriber contain application logic?

Should subscriber/listener contain application logic? For example my subscriber is listening Post object for send mail. Manage for sending (setting the recipient, sender, subject and content and ...
-1
votes
2answers
136 views

Are agile (and other software development process/methodologies) really bad for architecture and design?

I was wandering around google and saw a paper in which the author says in introduction that Agile methodologies, (in my own word) does not put enough emphasis on software architecture and design... ...
-2
votes
1answer
74 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 ...
13
votes
7answers
653 views

Saving high-frequency events to a connection-limit constrained database

We've got a situation where I have to deal with a massive influx of events coming in to our server, at about 1000 events per second, on average (peak could be ~2000). The problem Our system is ...
2
votes
3answers
80 views

Business Logic Entities and Data Access Layer Entities

I am thinking on how to structure a project. I wonder if it is a good practice to use different entity classes between the BL and DAL in order to decouple these layers. I have worked on projects ...
1
vote
1answer
112 views

Can a class represent two implementations?

I'm unsure about several things: I have a class that implements a NotificationDispatcher interface. This class I named WhatsappNotificationDispatcher, another implementation goes by ...
3
votes
2answers
183 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 ...
-4
votes
0answers
53 views

How to design an Android app?

GOAL: I've started to write my first Android app and I made a lot of mistake, for example: putting every method and variable inside the main activity; not using single responsibility principle; ...
3
votes
0answers
94 views

On layered architecture with ddd

I've been working on an architecture, trying to learn more about DDD, layered architecture, etc. Here's what I have: Domain Here I have my entities, the classes that directly map to a database table....
-2
votes
1answer
87 views

How can I find the address of my first memory location

If i'm writing my own kernel I will have access the the physical memory (instead of a virtual memory). Now assume I want to make a loop starting from the first memory location until the last one and ...
0
votes
1answer
72 views

Maintaining list of items seen by an user

I am developing an app and I need to tackle a problem here. The app is kind of an e-commerce app where each user will be shown a list of items daily. The problem is, I need to keep a track of all the ...
-1
votes
3answers
91 views

What does it mean when data bus is 32 bits wide

I understand that it's referring to the Register size of the CPU. If register size is 32 bits it makes sense to have a 32 bit data bus to transfer the data. My question is, is the bus actually ...
0
votes
1answer
46 views

How can I keep a web application easy to self host while still breaking it up in to multiple smaller components

I am working on an open source web application that I will be hosting on my own server and I estimate most users will use that but I also want to easily allow users to run the application themself. ...
1
vote
1answer
72 views

Change request of a behaviour implemented deep in the call stack but is configured in the first calls

Problem: I have a complex system with many layers of abstractions. I need a different behaviour low in the abstractions, but to be configured high in the abstraction. Solution 1: Having a parameter ...
1
vote
1answer
104 views

How should we approach layered-architectures that need large amounts of continuous, real-time, communication?

Background In much of the literature I've read online with respect to multi-layered architectures, many people describe how to create the simple application where: UI presents static model objects ...
3
votes
3answers
282 views

One Database for Multiple Applications?

Has anyone worked in an environment where multiple in-house applications are all under one database with each application given its own schema within that single database? I don't just mean a few ...
6
votes
3answers
199 views

Repository Pattern vs DAL Object Creation

As far as I've learned, the IRepository should contain CRUD. Then we inherit this IRepository in our other Interfaces like IProductand implement IProductconcrete class ProductRepository, with methods ...
4
votes
3answers
218 views

How to handle foreign key constraints when migrating from monolith to microservices?

My team is migrating from a monolithic ASP.NET application to .NET Core and Kubernetes. The code changes seem to be going as well as can be expected but where my team is encountering a lot of discord ...
3
votes
1answer
100 views

Is good or bad practice to share reporting modules between systems/apps?

At my new work, a few people want to share modules between systems/apps, and I'm a bit skeptical about it. Context: we have a lot of little apps living in different servers, some of them are ...
1
vote
1answer
105 views

Should in-house integrations use our open API and webhooks?

Background I'm currently working for a relatively small ticketing company with many clients and customers. We have developed an 'open' (as in it can be used by anyone) Serverless GraphQL API in Node....