Questions tagged [system-design]

Systems design is the process of defining the architecture, components, modules, interfaces, and data for a system to satisfy specified requirements. (wikipedia)

Systems design is the process of defining the architecture, components, modules, interfaces, and data for a system to satisfy specified requirements. Systems design could be seen as the application of systems theory to product development. ref

618 questions
3
votes
1 answer

Approach on API/System design

I was watching a video on "Design Uber api mock interview". for most of the APIs, the candidate just used "userId" and left on the system to resolve "rideId" Example - cancelRide(userId: string) For this api, user is just passing userId to…
user10712989
3
votes
3 answers

Modelling these roles using actors in a use case analysis

I am modelling a system that has (amongst others), these types of roles: Individual player Group player Here are some additional facts: There is a set of functional requirements for an individual player There are several types of group players…
oompahloompah
  • 9,087
  • 19
  • 62
  • 90
3
votes
0 answers

Socket file structure with react native

Hello everyone I am working on socket.io and react native and this is my first application for both. I am looking for a file structure or system design to work. Now I have a file structure, in which first there is a: -splash screen -login screen …
3
votes
0 answers

Can the load balancer replay a request to a different instance upon failure?

There are multiple types of failures in an application: network machine database application In case of application failure specifically, it is possible that a different server might be able to serve the request successfully. For instance, request…
Muhammad Umer
  • 17,263
  • 19
  • 97
  • 168
3
votes
3 answers

Does Kafka replaces the Load Balancers completely?

I was asked a question to achieve scaling a system. The system itself processes customer data and creates filtering on that data and produces some analytical information. 1) The First iteration: My initial answer was to provide a Kafka cluster…
Neslihan Bozer
  • 179
  • 3
  • 12
3
votes
2 answers

Are workflow engine and event stream framework alternatives for an orchestration layer?

I have to implement a document management service as an orchestration layer that orchestrates between underlying service such as storage , parsing , anti virus scan etc. The requirement is to make the layer flexible so that different flows for…
redzedi
  • 1,957
  • 21
  • 31
3
votes
1 answer

System Design Interview - Car API

System Design Question: You are given a dataset of a few million used cars and information about them -- miles, color, price, etc. You have to create an API endpoint in two days that allows users to query the dataset. This was the answer I…
Jed
  • 494
  • 1
  • 6
  • 15
3
votes
1 answer

Best design pattern for passing values through different classes

I am building an extensible system which have following requirements: Each request will have 2 attributes: type, region Based on the values of type and region, different configs will be selected There are over 20+ classes which need to select…
3
votes
1 answer

Design a data quality check application in Python

I am developing an application that performs data quality checks over input files and captures counts based on reported DQ failures in the data. Does the approach I use make sense or would recommend better way to do this? I am trying to write an…
Hardy
  • 109
  • 1
  • 9
3
votes
1 answer

How to handle sequential and concurrency in Event ticketing System Design

Assume an event ticket website where to handle volume and concurrency, tickets are distributed on different servers and database. For example, on "server1" 10 tickets are left and on "server2" 5 tickets are left. If at the same time "User1" (whose…
3
votes
0 answers

Disadvantages of multi-level caching in system design

I am working on an application which has multi-level caching. So its guavacache->redis->database to fetch anything without directly going to database. But I read somewhere that having multi level caching might always not be a good idea. I am totally…
shasha12
  • 45
  • 2
3
votes
1 answer

Relational database for storing video data

While interviewing for a job recently, I was asked what storage system I would use for storing video data if I were building a video streaming service. I proposed a solution where I stored the actual video on a distributed file system (such as…
frodo
  • 1,561
  • 3
  • 21
  • 36
3
votes
1 answer

can websocket exhaust webserver's connection pool

I have seen a lot of people have written Ajax(polling) vs websocket. I have not seen anyone mentioned below disadvantage of websocket. As we know for each http request web-server needs connection.There are maximum number of concurrent connections…
Nishat
  • 881
  • 1
  • 17
  • 30
3
votes
2 answers

How to design a system in which we can query top results in last n hours

I was asked this question in an interview. The details were that assume we are getting millions of events. Each event has a timestamp and other details. The systems design requires ability to enable end user to query most frequent records in last 10…
wayfare
  • 1,802
  • 5
  • 20
  • 37
3
votes
2 answers

Difference between Software Design Document and System Design Document

I am working on a design document for a module of a web application and while I was researching about the design document, I came across templates with name such as Software Design Document (SDD)/Software Design Description(SDD), System Design…
Reagan Ochora
  • 1,642
  • 1
  • 19
  • 22