Stack Exchange Network

Stack Exchange network consists of 175 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.

38
votes
4answers
4k views

How to keep consistency across the application architecture as a team grows?

As the sole developer in a startup, I had the luxury of being able to make a lot of decisions in the architecture and frameworks of our application. Fast forward 4 years and an acquisition later, I ...
5
votes
3answers
703 views

Architecture for UI Components Re-use in ASP.NET MVC

I've done a number of LOB ASP.NET MVC projects (MVC5) and would like to re-structure how I handle some things for a new project. Specifically, I have a component that I want to re-use throughout ...
0
votes
1answer
73 views

Sharing #define's between higher and lower layer. Where should shared types go? [on hold]

Let's say I have a stacked 2 layer app (High Layer (HL) and Low Layer (LL)) that is implemented in C. HL defines a few #defines. HL calls a LL function with a parameter that takes values of the #...
3
votes
1answer
76 views

Database structure for word co-occurrence frequencies in a large corpus

I would like to store the frequencies with which words co-occur with each other over a variety of contexts in a large (> 1 billion tokens) text corpus. I need to store the word pair, the type of co-...
1
vote
2answers
188 views

How to discover discovery service

We are designing an architecture of a high availability distibuted system and we are considering server side vs client side service discovery. There is one problem, I need to solve - how is it ...
-1
votes
1answer
95 views

Help designing a product model with vast amount of properties

I've been asked how to re-design a legacy system by a relative for a company that builds custom chairs. On their website you can customize your chair in about 30 permutations : chair type, material, ...
0
votes
2answers
103 views

Building Client Specific Application on Top of Standard Application

I have a standard application and in this case, it is an Accounting ASP Net MVC application. Now, I have a new client that has their own specific requirements like other fields and some custom ...
0
votes
1answer
42 views

Architecture for message processing with scheduling, at scale

I have to design the architecture of a system that processes messages in a distributed manner. If this were the only requirement, I would use a message queue like Kafka and distribute the work with ...
-3
votes
1answer
104 views

Is throwing exceptions in Debug mode a bad idea? [on hold]

I am working in an iOS project which have two schemes enabled from configurations, Release Debug As you know Debug scheme is used for developers while developing features and testing etc. However, ...
0
votes
0answers
10 views

Should I duplicate my Azure Web Job instance for increase flexibility?

I got a web job that has multiple routines, and for execute a specific routine, the routine's name is passed as job's argument. All these routines must be executed, and there's a dependency between ...
0
votes
4answers
110 views

Can systems have only one use case?

I'm building a news aggregation system that collects news articles from several websites, then classifies them into categories, tags them with keywords and saves them to a database. All actions are ...
3
votes
2answers
135 views

How security metrics are verified in testing phase?

I am required to analyze and make an architecture of an application. While analyzing the requirements I find, in my system user personally identifiable information (PII) confidentiality is a very ...
-1
votes
0answers
32 views

RealTime Parallel DSP (Digital Signal Processing) in Java [closed]

Hi, I have a project of DSP, Multi Thread in Standalone, using Java. I have a Sound Receiver, it is a single Capturer and pass data in Wav format, I selected 8KHz for Sampling Frequency 1 Byte per ...
0
votes
1answer
60 views

Design for an e-commerce site supporting discount coupons

This is a design question asked during interviews. The requirement is to build a "discount coupon" system that tracks coupons available in an eCommerce site. Something like: Coupon code CDSXGF can be ...
-1
votes
1answer
164 views

How to split my product into multiple variants

I have a product which is a combination of mobile apps and webapi . I am working web API. The webapi part created earlier and it build with layered model. Even thought this does not have a business ...
7
votes
2answers
2k views

best way to install local package into docker image

I have a python package that I wrote and I want to use it within multiple docker builds. However, I can't just install my local package situated outside of Dockerfile folder. And I don't want to ...
1
vote
1answer
136 views

Where to apply multi-tenant logic (ASP.Net Core)?

I'm developing a multi-teant SaaS application in ASP.NET core mvc and I was wondering what the general approach is to applying tenant logic in a shared database scenario (TenantId for each entity). ...
2
votes
2answers
116 views

Passing transient information between two systems

For a complex service that my team and several others maintain, two of my team's applications are called when processing one incoming request. The flow is as follows: an upstream system invokes an ...
1
vote
1answer
58 views

Using framework (WordPress) functions in layered architecture

I'm building an app with the usual layers like presentation, application, infrastructure. Right now, I have been using WordPress functions in both my controllers and repositories. I figured that ...
3
votes
1answer
122 views

Where to put domain knowledge for Authorization?

I hope this is the correct SE site for this kind of question. My team is currently developing an application which IMO needs access control beyond RBAC. Users can have access rights to entities based ...
0
votes
0answers
56 views

How should we do error/usage-logging and business metrics logging in one application / environment? [closed]

Challenge We offer several services for our clients which give them more insights in their data (sales, inventory, customers, leads). Currently we are investigating ways to get more hold on how our ...
0
votes
1answer
68 views

Why using ViewModel when using also Repository?

I read this guide about recommended app architecture for Android. Here is a graphical summery: The role of ViewModel is clear, but I don't understand why we need it if we use Repository. The purpose ...
0
votes
2answers
91 views

Approach to handling multiple instances of an application that make large database operations simultaneously

So, essentially the flow of my application works like this: A user selects some options to start a process on the server. Once they hit submit, on the server it opens up a console application that ...
2
votes
1answer
116 views

DDD / Onion architecture in JavaScript

One reason I like .NET is because the 'solutions' and 'projects' lends themselves to good architecture. Good architecture makes it easy to follow the happy path of Domain-Driven Design. I've fallen ...
0
votes
1answer
49 views

How to approach to ES/CQRS in serverless cloud?

Let's say I want to use CosmosDB for Event Store, where have single collection for all events. Currently it is not horizontally partitioned, but it is a possibility for future. Now, I need to ...
0
votes
0answers
81 views

How should I go about designing my puzzle-solving application? [on hold]

I really need some guidance, as I've been losing sleep over this. I'm a hobbyist programmer caught somewhere in the middle of having read several books on programming, yet I'm completely unable to ...
0
votes
2answers
68 views

How possible it is to keep web scraped data in sync at scale

I have taken a look at Google Shopping for Hakko FX888D-23BY Soldering Station, and it gives this: Notice that Walmart is $115.19 here. Meanwhile, at Walmart.com it looks like this: So it's $97.79 ...
6
votes
1answer
7k views

System Design: Scalable Chat Server

Suppose you were asked to design a scalable chat server with the following requirements: The main use case is: player A sees B online, A sends a message to B, B receives it. The secondary use case is:...
0
votes
1answer
145 views

What architecture design is used to create a virtual queue?

What architecture design is used to create a virtual queue? A virtual queue, virtual waiting room or a virtual line can be described as: An online queue system which redirects excess end-users to ...
3
votes
2answers
2k views

File storage microservice design

Problem overview: I'm creating a spring application just for learning purposes. I would like to create a microservice just for files, which: at the beginning would have only two basic endpoints ...
0
votes
1answer
50 views

How large-scale production web crawlers improve performance when it comes to running into already visited links

I have built a very basic webcrawler running off my laptop so it has limited memory and limited hard drive space. The way I have it now is I'm using MongoDB to store the links I find on pages. I make ...
1
vote
1answer
68 views

Preventing unauthorized access to APIs

I have an application which calls various services to load data(of different entities shown in the web page). Opening the network tab in Chrome can tell me which APIs are being called. Now this can be ...
2
votes
1answer
58 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 ...
6
votes
5answers
2k views

Write data to SQL Server directly from BizTalk or use external service?

An external source will be sending us XML data that BizTalk will pick up and transform into an internal schema. We need this data to be loaded into a SQL Server database as we're going to expose some ...
1
vote
1answer
65 views

Writing Event Process architecture for multiple event handler interfaces

I am working on Java program which will listen multiple kind of events from multiple sources and store information to multiple sinks. Each interface will have its own source to listen and own sink ...
25
votes
3answers
6k views

Ways to share DTO across microservices?

My scenario is as follows. I am designing a system designed to receive data from various types of sensors, and convert and then persist it to be used by various front-end and analytics services later....
3
votes
3answers
1k 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 ...
4
votes
2answers
222 views

Does software architecture depend on framework being used?

When I was building my backend API I used Django combined with django-rest-framework (DRF) because it was the easiest and fastest way to create what I needed. And I haven't thought about an ...
0
votes
2answers
87 views

Would you use the mediator pattern for this scenario?

I'm wondering if you would use the mediator pattern on the following scenario. First of at all, the program must call an API, and persist this response on somewhere (it could be a database, a file, ...
0
votes
1answer
52 views

JAMstack vs Serverless architecture: what's the difference?

So I've been reading a lot about this new front-end architecture called the JAMstack, which is basically the modern way of building static web applications. Any dynamic pages are pre-built at build ...
0
votes
1answer
375 views

Architecture question about data migration

I'm facing a new enterprise project in Java about data migration. I did one of them in the past, now I want to do a better work and I think I need your considerations. So, let me explain the problem:...
2
votes
1answer
212 views

How to use ViewModels in a layered architecture?

I've got a Java application that is using a layered architecture, we have: presentation layer, business layer and data access layer. Our business layer uses the models to process the "requests". We ...
7
votes
1answer
3k views

How best to design Access Control Layer in n-tier architecture application

This is a typical architecture scenario for a 3-tier design: UI-tier Has Graphical User Interface components Middle-tier Has business logic including the following layers: Data Access Layer (DAL) ...
4
votes
3answers
479 views

If I unite many web apps into one, will I save resources?

I'm comparing 2 different approaches of J2EE application architecture: Divide independent parts as modules of one big web app. Divide independent parts as different web apps running on same server. ...
0
votes
0answers
16 views

What types of Google Cloud application should I consider for something running as a continually available service that subscribes to a pub/sub?

I want to create an application that will run as a service that subscribes to a Google Cloud pub/sub topic, and delivers emails based on 'alerts' that it receives through the pub/sub subscription. It ...
8
votes
4answers
5k views

Pattern for requests with long response times?

We are currently maintaining a homegrown python "web server" where generating the response for some requests can take a very long time mostly due to heavy computations - these requests are basically ...
1
vote
2answers
446 views

DDD - Referencing Aggregate Root of other bounded context?

I'm building a personal project, as an introduction to DDD, I'm doing a little bit of analysis and can't get my head around it. My ERD looks as follows: To go over it, as an admin you can setup a ...
0
votes
1answer
140 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 ...
0
votes
0answers
27 views

Object Data must be built on SQL side or in Code Side?

I am thinking of a very flexible application that will build a single entity object from a lot of tables joins. example for an object "Car" with a code something like this SELECT e.id, a1.attr_value ...
0
votes
2answers
48 views

Event sourcing in microservices: separate event stores + system-wide event store?

Say each microservice is using event sourcing which means it has it's own event store, do you typically add another "mother" event store that contains all events from all microservices as a source of ...