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
2
votes
1 answer

Persist an object even after session gets expire

I'm currently working on a POC in which I need to persist a unique object for each request. My application post a form on some other site and wait for the response from that site on my response handler. So I want to get that unique object on my…
2
votes
1 answer

System design to aggregate in near-real time, the N most shared articles over the last five minutes, last hour and last day?

I was recently asked this system design question in an interview: Let's suppose an application allows users to share articles from 3rd party sites with their connections. Assume all share actions go through a common code path on the app site…
flash
  • 1,455
  • 11
  • 61
  • 132
2
votes
1 answer

Selection of Database to insert millions of rows everyday to plot graph for each user

I am writing a micro-service that needs to store and retrieve large amounts of net-worth vs time data to plot graph. Basically I need to store large amount of data through cron for each user's net-worth. There are 20K mutual funds in which user can…
2
votes
1 answer

Any testing tool or framework supporting multiple RPC protocol to test different component

I just wanted to know whether there is any testing tool or framework (Open-source preferred) available to test multiple type of APIs of component or module. In case there is no such things currently available, if someone can suggest how to address…
Rahul
  • 326
  • 2
  • 10
2
votes
1 answer

How to Sync Front end and back end validation

I have a project using micro services, front end communicate with back end with multiple Rest API calls. Both side (Front or Back) have validation. Is there a good way to sync back end and front end validation together. For example, if there's way…
Neil
  • 2,714
  • 11
  • 29
  • 45
2
votes
1 answer

Dynamically implement interface based on object property value in PHP?

Let's say that we have a Dog class and a Category class that dogs can be assigned to. class Dog { function categories() {} // Return the categories of the dog. } class Category { function dogs() {} // Return the dogs under this…
deko
  • 350
  • 4
  • 15
2
votes
1 answer

Optimization techniques

In the above diagram, we have a producer and a consumer. The producer takes about 1 unit of time to produce something and the consumer take about 9 units of time (4 to read and compute the data and 5 to write it back to the database). From a design…
latestVersion
  • 458
  • 1
  • 6
  • 17
2
votes
3 answers

Data structure and systems design questions

If one is asked to "Design a system for such and such" or "What data structure would you use for such and such?"...is it okay to answer with a relational database system design? Complete with the tables, entities, relationships between them, foreign…
2
votes
0 answers

Design pattern to reduce database reads

I have to create a Service, Which has to persist a flag against a userId using the api void register(String userId) and also the service has to vend a api boolean isRegistered(String userId) which says whether a UserID has registered for the service…
2
votes
0 answers

Scaling node.js servers

I have some basic doubts regarding node.js scaling Problem Explanation I am solving a problem where I have multiple devices that send data at high frequency, I need to process the data(Based on the data, some network I/O has to be done) and save it…
Abhishek Yadav
  • 342
  • 1
  • 2
  • 16
2
votes
1 answer

System Design: Global Caching and consistency

Lets take an example of Twitter. There is a huge cache which gets updated frequently. For example: if person Foo tweets and it has followers all across the globe. Ideally all the caches across all PoP needs to get updated. i.e. they should remain in…
user3833308
  • 1,132
  • 3
  • 14
  • 39
2
votes
2 answers

System design for url shortener

In the constraints video of https://www.hiredintech.com/classrooms/system-design/lesson/55, the narrator has to estimate the requests per month that should be handled. After reaching a figure of 100 MLN new urls per month to be generated (as a…
comos234
  • 31
  • 3
2
votes
1 answer

Using Strategy Pattern for supporting uploading file from multiple sources

I am working on a web app project which requires me to refactor file uploading feature. Our file uploading feature supports multiple sources of uploading file, such git repo, nexus URL, zip files and we also want to support more such as perforce in…
2
votes
2 answers

How to design an efficient Like system?

I'm trying to create a Like/Unlike system akin to Facebook's for an existing comments section of a website, and I need help in designing the system. Currently, every product on the website has a comments section and members can post and like…
Carven
  • 14,988
  • 29
  • 118
  • 161
2
votes
3 answers

How important is a good modeling tool toward system design

While a quick wiki/google flood me with numerous uml freeware, most of them doesn't meet my expectation (limited to "drawing" level instead of "modeling"). I know sparx's EA and IBM rational rose offers complete design-to-implementation toolkits but…
YeenFei
  • 3,180
  • 18
  • 26