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
5
votes
2 answers

Design a Plugin based java application

I'm trying to make a plugin-based application which means, besides the basic framework, other functionalities should be added with a plugin style. The majar problem of such system, i think, is how to load new plugins at the runtime. I don't want to…
cn1h
  • 1,188
  • 4
  • 16
  • 24
5
votes
3 answers

Object oriented design to model generic device

I was asked below object oriented system design question in an interview. There are multiple devices like Echo show, Echo dot, Echo tab, Smart microwave, Fire tv stick etc. Echo show - It has display screen and speaker. It works on electric power…
5
votes
2 answers

How to calculate how many servers are needed for an specific QPS (queries per second)

Back of envelope calculations: Imagine that I have some requirements and after some calculations, I get that I will get about 100k request per second to my server. How many servers would I need? Let’s say server has 32CPUs and each request takes…
Cristian Avalos
  • 313
  • 3
  • 9
5
votes
1 answer

Is there a way to subscribe to Redis Streams similar to Redis pub/sub?

I am building a data pipeline that reads the MySQL binlogs in realtime using Maxwell Daemon and Maxwell Daemon pushes the data to Redis streams. I've built a client that consumes the data from Redis streams processes it. Currently, I'm polling the…
Utkarsh
  • 83
  • 2
  • 10
5
votes
2 answers

Access firestore directly from mobile app or via backend server?

System Design question: I'm using firebase for my mobile app with firestore as the DB and firebase functions as the backend. Do I: Access firestore directly from the mobile app Only allow indirect access via a middleware/backend server(e.g.…
5
votes
2 answers

Why are locks said to violate the principles of abstraction and composability?

I failed to find any definite answer on Google or even StackOverflow to answer this question. From my understanding Threads that use locks can break abstraction Locks are not composable But how and why does a lock break abstraction and…
Starwolf-001
  • 182
  • 11
5
votes
0 answers

Design messenger/chat server at Facebook scale

I found articles which have an overview of the architecture of facebook messenger, But I would like to understand in depth. Here are the few things I know (Correct me if I am wrong) When a sender sends a message we need to store in some persistent…
Tej
  • 583
  • 1
  • 6
  • 21
5
votes
2 answers

Creating a simple Non repudiation/fraud proof system

What are the key features should I consider if I want to create a simple fraud proof and non repudiation system? For this question, I am mainly concentrating on the integrity of the database rows. This is not a security permission question. Using a…
Syd
  • 1,526
  • 1
  • 15
  • 16
5
votes
4 answers

Design - How to handle timestamps (storage) and when performing computations ; Python

I'm trying to determine (as my application is dealing with lots of data from different sources and different time zones, formats, etc) how best to store my data AND work with it. For example, should I store everything as UTC? This means when I…
mr-sk
  • 13,174
  • 11
  • 66
  • 101
4
votes
0 answers

How to solve hot partition problem in consistent hashing Load Balancing

I am trying to understand how different Load Balancing strategy works. One way is to use consistent hashing algorithm where we divide the entire space into multiple virtual nodes and each physical node takes a set of vnodes. I am not able to…
Bishnu
  • 383
  • 4
  • 14
4
votes
3 answers

What are pros and cons of using AWS S3 vs Cassandra as a image store?

Which DB is better for storing images in a photo-sharing application?
4
votes
1 answer

What is a Content Delivery Network and Distributed File System?

I am trying to widen my knowledge with respect to distributed systems and systems design. I came across the terms such as Content Delivery Network and Distributed File Systems for storing/handling media data such as music, videos, pictures, gifs,…
4
votes
2 answers

CAP Theorm - Why Mysql is CA

As Per CAP Consistency - All nodes gave the same data Availability means the ability to access the cluster even if a node in the cluster goes down. Partition tolerance means that the cluster continues to function even if there is a "partition"…
nikhil roadi
  • 101
  • 1
  • 6
4
votes
2 answers

Which variant of Entity Framework to use in WCF based enterprise app

We are in a process of designing an application with approx 100 tables and complicated business logic. Windows Forms will be used on the client side and WCF services with MSSQL on the server. Custom DTOs are used for client-server communication,…
Bohdan
  • 1,987
  • 16
  • 23
4
votes
2 answers

Restful way of sending Pre-Post or Pre-Put warning message

I am trying to convert a legacy application to Restful web-services. One of our old form displayed a warning message immediately on form load. This warning message depends on a user property. For example, if there is a property isInactiveByDefault…
ntstha
  • 1,187
  • 4
  • 23
  • 41
1 2
3
41 42