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
1 vote
5 answers
15k views

Business Logic Layer in MVC Application

In my ASP MVC application I decided to add another Business Layer and made the model only to have properties. All other functionality like save to db, get from db is done on this new Business layer. ...
3 votes
2 answers
133 views

AWS Serverless Microservice design

I am building an open source task management and note taking service that runs on AWS. I'm building it mostly as a hobby in my spare time and will eventually ship a mobile app that consume it into an ...
1 vote
1 answer
342 views

Help defining architecture - async messaging; web app as portal in web page

I don't know if this is a legitimate architecture that I've been playing with. It consists of nodejs servers for services and to create web app front ends. And it is using async messaging (Redis) to ...
2 votes
1 answer
79 views

Granularity of API Gateways to Service Balancers

OSS API Gateways typically come bundled with built-in load-balancing capabilities. We see this with Netflix Zuul and Kong. In a service-oriented architecture, where many microservices are talking to ...
-1 votes
0 answers
30 views

API architecture and best-practices for multiple use cases

I have some questions regarding architecture for our API setup at work. We're in the process of creating a new API, but we're not sure what's the best approach for our requirements. The API needs to ...
1 vote
2 answers
140 views

Maintainably converting flowchart ideas to an architecture

My team is communicating proposals for the interaction of several processes as a flowchart. I've been drafting a codebase architecture we can use as a starting point. There are two ways intended ...
-2 votes
0 answers
81 views

Using a hybrid watermarking/fingerprinting approach for identifying GPS geolocation data [closed]

Our backend is made up of thousands of micro-services. My team deals with and owns geolocation data for our entire backend ecosystem. We get different types of geolocation data from customers: GPS, ...
7 votes
3 answers
1k views

Is the architecture of my project a common one? What's its name?

I am responsible for a software project for a few years now (a Java desktop application, which is mostly event-driven). I started it from scratch, and at the beginning of this project I made some ...
0 votes
0 answers
35 views

Separating Typeorm Entities from Domain Entities [duplicate]

Is it a bad approach to add domain logic inside typeorm entities if following the domain model pattern to organize business logic. import { Entity, PrimaryGeneratedColumn, Column } from "typeorm&...
1 vote
1 answer
202 views

How to boost reusability and extendability in a MVVM .Net application?

I'm a software engineer that primarily writes C code but now and then makes .Net applications for fun. This is a question about the fun part. Over a duration of about 15 years, I have used and ...
1 vote
1 answer
297 views

MVC-like architecture: Model-Controller communication of results/status

I'm struggling on designing a solid architecture for my project. In particular, I don't know how to handle the communication between the models and the controllers. My goals are: Following the ...
2 votes
1 answer
347 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, ...
0 votes
2 answers
75 views

Publish-subscribe inside a single application

I've been using the publish-subscribe pattern for a while for communicating devices and it works really well, making it easy to add extra services without touching the rest. I'm thinking of using it ...
4 votes
2 answers
1k 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 ...
1 vote
3 answers
132 views

How to split out shared authorization logic across spring microservices

Currently working on a project where we have multiple services that all need to consume the same authorization service when their endpoints are hit. Right now we have the authorization boilerplate ...
0 votes
1 answer
294 views

Azure Service Fabric - Designing a Calculation Engine

Suppose I have the following devices: Device A Device B Device C (...) Also, for each device, I have the following measurements: Measurement 1 Measurement 2 (...) Each measurement event includes a ...
24 votes
2 answers
11k views

Alternative patterns for web development? (non-MVC) [closed]

Recently I've been reading some blog posts regarding MVC and how it doesn't fit the web. I've learned about alternative patterns like the RMR Architecture. I'm curious what other patterns people are ...
2 votes
2 answers
302 views

Microservices: Is the Saga Pattern correctly applied here?

I'm trying to understand and learn how to build microservice messages the best and came up with this task for myself: Services given: Accounts Service Token Service Email Service When a user ...
2 votes
1 answer
117 views

Golang / React Webapp Architecture

A project is structured as so: A build server listens to changes in two repositories: a frontend and backend repo. When it picks up a change it builds, tests, and deploys the updates to a production ...
9 votes
5 answers
8k views

Are there memory-memory instructions?

From Tanenbaum's Structured Computer Organization, Most instructions can be divided into one of two categories: register-memory or register-register. Register-memory instructions allow memory ...
0 votes
0 answers
34 views

Design efficient real-time data subscription to reduce service workload

I am designing a service for a hobby app in JavaScript and looking for feedback on best way to design the service. TickerService Accepts an array of stock tickers. eg: ['AAPL', 'AMZN', ...] ...
1 vote
1 answer
66 views

Guaranteeing different availability requirements

I have different availability requirements (90%, 95%, 99% guaranteed uptime) for certain subsets of data. For example, the subsets of data are split based on the possible values A, B, C. What would be ...
4 votes
1 answer
1k views

Why does GNU AS use different characters for single-line comments depending on the architecture?

The GNU Assembler as uses different characters depending on the architecture to specify single-line comments, such as # on x86, ; on 29k, or @ on ARM. Moreover, regardless of platform, C-style ...
2 votes
2 answers
286 views

Design of a modular application

I'm developing an application (Java) in a modular architecture. I have two approaches in mind and I'm not sure which one will be "better code" in case of maintenance and conventions. I have ...
-3 votes
1 answer
233 views

Is this the right mechanism for 2 way heartbeat?

What is the right way to do it for a service runing on 2 places?
4 votes
1 answer
174 views

ReactJS with Elasticsearch App Architecture

I want some advice regarding my architecture and hosting options. I'm attempting to build an e-commerce site for e-books. It will use nestJS for the backend and ReactJS+Typescript for the frontend. ...
2 votes
3 answers
1k views

One db per microservice, on the same storage engine?

It is considered the best approach that a microservice db is private to it and shared nothing approach is the best. I recently came across a cloud based system which used postgres, mongodb & ...
0 votes
0 answers
37 views

Should Infrastructural Services Listen to Domain Events

I'm building an infrastructural service with my team. We are building a service that will help other teams in our org send out a notifications to end users when certain events occur. We are currently ...
1 vote
1 answer
79 views

"Protect" published events using auth, Event driven architecture

I have a system that publishes events to a message broker, lets call that system A. I also have system B and system C that subscribes to the "events"/messages. My payload/message looks like ...
-1 votes
1 answer
516 views

What operating systems use both a Render thread and a UI thread? [closed]

Microsoft employees commonly describe Windows 8 as having both a Render thread and UI thread. Typically they say the Render thread performs animations and the UI thread handles most other operations: ...
0 votes
1 answer
54 views

Clean Architecture for React App: Component / View / Page

Abstract I'm trying to figure out a solid, scalable, clean and practical architecture for react projects. As a a playground I have a project with two Screen and a JSON server. When I try to apply a ...
0 votes
0 answers
42 views

How big should database adapters/gateways be?

Outline When you build an Adapter that connects your application and the database, How big should you make this adapter? Should it contain all possible queries that could be made to the DB? Do you ...
4 votes
1 answer
269 views

Dynamic Object Abilities When Saving State

I have n classes that extends from a State class, the purpose of the State class is to manage the state of the extended classes. For each class we need to save it in the database, remove it and select ...
0 votes
1 answer
64 views

Updating data when fetching

Is it possible to fetch data and update it if a time constraint has been met? Originally, my implementation was a cron job that regularly updated the data in my PostgreSQL table every minute on the ...
4 votes
4 answers
6k views

Designing a Feed and Notification system in MongoDB

I'm developing a NodeJS API that will be consumed, for now, by an Android app. I need 2 important things here: a News Feed and a Notification system. And I need it to be scalable. I'm using ...
0 votes
0 answers
42 views

Handling recurring events

I have a application built with nodejs. It's hosted on AWS and uses postgres as the database. The application allows for users to create bookings. When a booking is created, an email is sent to the ...
0 votes
2 answers
349 views

Application Horizontal and Vertical Scaling

I'm hoping the experienced Java developers here can share some insight about this problem we have been trying to solve for so many months. We're currently building a Java web application that uses ...
3 votes
2 answers
155 views

How to manage the entity which have collection of child entities in DDD?

A play arena contain a list of Machines and Amenities playArena : guid : GUID name : string location: Location owner: string amenities: Amenities playing_machines: PlayingMachines ...
3 votes
1 answer
378 views

Where should I implement Ports with Hexagonal Architecture?

I have been doing some research on the Hexagonal/Ports & Adapters architecture. For the most part, it makes a lot of sense. My initial understanding was that "Driver Ports" were to be implemented ...
0 votes
0 answers
22 views

How to implement an approval queue for created/updated/deleted records?

Say I have 5 different types of records which can be created, updated, and deleted. Each time one of these actions are performed, an item is added to a global queue which people need to look through ...
0 votes
1 answer
77 views

How are asynchoronous problems handled with imperative programming?

Context To level set, I've been working with OOP and FP for my whole career, so my experience with the imperative paradigm is limited. The team I joined is made up of very senior (20+ years xp) ...
22 votes
4 answers
4k views

Architectural differences between dynamic and static languages

Are there any major architectural differences when designing applications that will be built on static languages (such as C# or Java) and dynamic languages (such as Ruby or Python)? Which are the ...
0 votes
0 answers
68 views

How do we logically divide a Chatbot app meant to support both Slack & Microsoft Teams

We are building bot application that suppose to support both Slack & Teams. Both Slack & Team has a single Web hook endpoint which makes the app code tightly coupled with them and hard to make ...
0 votes
1 answer
107 views

Confusion in UML 2 state chart design for a CAN bus data logging sensor

I have the following requirement to design behavior of a software component for logging sensor, which writes data to SD card a: Datalogging sensor can write data to a FAT16-formatted SD card that is ...
0 votes
2 answers
131 views

What is the computational overhead when running a relational database in several docker services instead of a single instance?

I want to move my current relational database installation into a docker container or a set of a docker containers. I have a web server with an associated relational database. I provide a set of 40 ...
0 votes
2 answers
172 views

Are microservices unfit for our domain logic

I work in a software company with a single product, a 25 year old monolith application (1.2m lines of code) handling all HR related data (employments, salary, collective agreements etc.). I've been ...
2 votes
2 answers
2k views

Best practice for mapping between data/business/model and etc

What is the best approach to mapping between Entity, View Model or dataContract. For example I've seen the following modelling structures for SOA. WCF -> DataContract distributed to client. ...
24 votes
6 answers
19k views

Which platform to choose, Java or .NET? [duplicate]

I am working in a private bank, a leading mid size bank in local market. We are going to create our core banking solution. Existing solution has been developed on Java using IBM Visual Age 4.0. It is ...
9 votes
2 answers
6k views

Handle localization in microservices architecture

I'm developing a multi culture application with different microservices, The microservices communicate with each others with integrations event, so when a new record is inserted the owner of the data ...
1 vote
2 answers
175 views

Is Kafka a good idea for connecting a REST API with Worker which runs large computations per job in a queue?

We currently have a REST API service (let's call it as A) written in Python which triggers various heavy calculation jobs for Worker (W) written in Python as well. Both services are interconnected ...

1
2 3 4 5
67