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
0
votes
0 answers

Streaming of video

As youtube streams, is separate copy of the video needed for each stream to a separate user? I meant that if the same video v1.mp4 is watched by 3 different users, will 3 separate copies of v1.mp4 be created and each streamed separately to 3…
sankar banerjee
  • 101
  • 1
  • 3
0
votes
1 answer

Design of HA, consistent and responsive counter

Lets say flipkart launched a exclusive redmi sale by 12PM, stock is 10K but more people will access at same time. There are adv and disadv of keeping the counter in single machine or distributed. If we keep it in some in-memory data store single…
Kavin K R
  • 33
  • 5
0
votes
1 answer

implementation of template method pattern in the real world scenario

I have requirement as below to build report building system. I should be able to create connection, where connection can be different database or same database. connection entity consist of connectionID,userName of the dabase, password I should be…
0
votes
3 answers

Ensure key/value of enumerable type never changes between software revs

We have a client/server application where older servers are supported by newer clients. Both support a shared set of icons. We're representing the icons as an implicit enum that's included in the server and client builds: enum icons_t { // rev 1.0 …
codehearts
  • 483
  • 1
  • 9
  • 16
0
votes
1 answer

Sequence Diagram - UML 2.0 - object oriented (Basic)

I am learning UML and I've focused on a Netflix-like project on which to practice on. I'm trying to create a simple sequence diagram for 'stream movie' consisting of only the entity classes (so ignoring objects like the user interface, server, and…
AKL012
  • 399
  • 5
  • 14
0
votes
0 answers

Designing a generic library for calculating player turns in games

I was asked this question in an interview. Basically, I have to create a generic library which games can to use to calculate player turns. I came up with this soln. The library will define a Player class that needs to used by any game that was use…
Narayanan P S
  • 111
  • 2
  • 6
0
votes
1 answer

How to retrieve user information after login with RESTful services

What should be the standard approach for getting user information after login ? POST request to validate user/password and retrieve information on response POST request to validate user/password followed by GET request to retrieve information? As…
gcolucci
  • 438
  • 1
  • 5
  • 21
0
votes
0 answers

Python producer and consumer system design

If I'm writing a Python program that execute other two executables(C++) in a producer and consumer manner, what is the right lib to do? asyncio? multiprocessing? The main execution thread or process is: monitoring status of producer and consumer…
0
votes
1 answer

Designing non-real time, non-blocking, result-dependent system

Context: 1) We have a scheduler which picks up jobs and process them by calling another rest-call in a blocking manner. 2) Scheduler thread needs to wait for the rest-call to complete and in-turn do some another task based upon the result. 3) There…
0
votes
1 answer

embedded system design: partitioning resources

I want to design a device that supports both cellular connectivity ((ie. HSDPA/HSUPA) for high-speed downloads/uploads and telephony) and heavy multimedia applications (like playing streaming video in high resolution, streaming being done over the…
Mno
  • 281
  • 1
  • 2
  • 7
0
votes
0 answers

Table to be inserted is decided at runtime, all the possible tables have different fields

We have a parent type, lets say name of business sectors(eg Aviation,Defense) , based on sector we have dynamic forms that ask for sector specific data and on submit we need to store that data in table of Aviation(since user selected Aviation), also…
0
votes
0 answers

Entity relationships code first approach

I am building Patient Appointment booking system and using the code first approach of the entity framework. I have designed the models and their relationships. Could somebody let me know if there is anything incorrect ? I am assuming following are…
Tom
  • 8,175
  • 41
  • 136
  • 267
0
votes
2 answers

System design for Appointment Booking System

I am developing an Patient appointment booking system and following is the schema that I have come out with. Could you verify and let me know if the entities and their relation are correct. I am looking at a basic system where when the user logs in…
Tom
  • 8,175
  • 41
  • 136
  • 267
0
votes
1 answer

design system with server controlled UI display in Angular(Front-end)+ Java(Back-end)

I am building a single page web system by using Angular as front end and Java(Spring-Boot) as backend. This system has different roles and user must be assigned to one Role. Different role can do different operations. Let's say to keep it simple…
lorcel
  • 315
  • 1
  • 3
  • 12
0
votes
1 answer

Designing a service for scale. Number of servers needed

Suppose that I need to design a web service. To keep it simple, assume that I use LAMP (Linux-Apache-MySQL-PHP). I know that I will serve exactly N user requests per second. The requests are basically simple CRUD operations to the database, no file…
user1256821
  • 1,158
  • 3
  • 15
  • 35