Ask HN: How to study for system design that doesn't include front end/back end?
25 comments
·March 13, 2025t-writescode
APIs are just building blocks and blobs of single-ish responsibility. It's good to ask lots of different questions to understand the actual question being asked, what the desired capabilities of the thing being asked are, etc.
From there, you should be able to start laying out the different components and how they interact.
Edit: here's some areas of consideration when designing a system:
* what does this thing do?
* what are the expected inputs and outputs of the whole system?
* what operations are we wanting to be able to perform against it?
* how frequently will each of these operations be done?
* how quickly do we want a response from this whole system?
* what different sorts of integrations do we expect for this system? Any?
* how often do we expect the system to change?
* where do we expect to expand the system the most in the future? What will that look like?
I'm sure others will have many, many more things to addsimonw
One general tip is to always ask (credible) clarifying questions. A lot of interviewers look out for this - they want to see you dissect the requirements a little bit, not just jump straight to solving the problem based on a bunch of assumptions you've made that might not be correct.
nextts
This is big. Often will be on the senior plus rubric. "Did they ask clarifying questions?". Tick.
It also gives you constraints. Which are your friend.
I can't find it now (I tried but it was a year ago) but on YT there are some excellent example system designs where someone does it and then they talk about it. What was good. Why it was senior vs junior or senior vs principal.
creakingstairs
IMO domain knowledge is crucial here. I don’t know anything about pricier or financial products so hard to reason about the system.
But to give a general advice, I’d approach it by trying to break down the domain into concepts, then think about how those concepts can be turned into abstractions. Then you can think about relationships between those abstractions and engineering solutions for those relationships.
Also, systems all take inputs and produce outputs. Validating those would be another interesting aspect given its finances related.
flashgordon
Depends on how to study. Ive been working on this for years. Many people just jump into a solution (or what they think is a solution) to the problem (or what they think is the problem). And this usually triggers interviewers who are looking for that gotcha moment. So you have to treat it as a careful game of getting requirements, setting expectations, managing time, communicating and more.
Source - I sucked at system designs for a good 5+ years until I had a ah-ha moment thanks to a couple of questions an Uber interviewer asked me (that interview sucked but I found my mojo after that). And back in that time I did not have the plethora of resources that are available now (not even mentioning GPT's ability to come up both problems and solution formats).
The key to these interviewers isnt just study but actually practicing mock problems. There are tons of those these days. Another way to learn is to - teach. Start writing up posts for each Design X kinda problem where you would lay it out as if you were presenting it in an interview, ie Requirements, Entities, APIs, High Level Design, Scalability Barriers, Deep Dives etc. Keep at it. A few failures isnt that bad.
geuis
Ok. What were the questions? What were your answers? What was the eureka moment?
Details are important.
flashgordon
Great point. I'm actually writing and putting things up in a blog. ETA end of april. If you are ok for rough notes happy to share high level notes over email (no I'm not planning on selling anything and frankly I didnt find any value in the paid platforms which were just doing an upsell).
For a very big tldr, Raghu Ramakrishnans Database book and designing data intensive applications by klepman were was amazing but they need a bit of time investment.
Raghus book especially on indexes was very useful. Not so much to understand how databases but specifically how indexes work and taking a quantitative approach to know which index works for what kind of use case. So in the Uber interview as I was rambling about key value stores and caches the interviewer decided to put me out of my misery with "enough of all that, what would the first failing request's latency be". that got me thinking about how to reason about slos and latencies in a design. And then seeing which index types gave what kind of perf characteristics and so on.
kadoban
> The key to these interviewers isnt just study but actually practicing mock problems. There are tons of those these days.
Do you happen to have any good sources or lists or anything?
nextts
System design has tonnes of YT videos. Watch them.
https://www.youtube.com/@jordanhasnolife5163
Pricer would have some kind of human interface. Even if just CLI that called API endpoint using some kind of SSO staff authentication. Then it is just a back end.
sgentle
I learned a lot about event-driven distributed systems by just building things with ZeroMQ. Even if you don't end up using it, learning its messaging patterns and the decisions behind them can give you a pretty solid mental framework.
The ZeroMQ guide really takes you through it in detail, for example check out Figure 19 here for a parallel job queue with cancellation: https://zguide.zeromq.org/docs/chapter2/#Handling-Errors-and...
cgio
Based on description I read this more like a framework rather than system design. Are the different pricers for the same product? Is there a dependency graph between pricers and/or their components (e.g. a MC simulation as input, an intermediate model for calibration, a database query for rates)? Is this an ad-hoc pricer? What is the use (e.g. for risk you might run the same across thousands scenarios etc.) This would not classify as general interview to me. To have an interesting discussion you need subject matter expertise, otherwise you merely define a function signature…
chaz6
It has been said that a system is not the sum of its parts, but the product of the interactions between its components. I hope someone can remind me who said this.
austin-cheney
There are two aspects to systems design.
* Flow control - This is the logical path the software takes from input, through computation, to output.
* Division of effort - This isn’t your division of labor but the organization of parts to account for reuse, documentation, testing and so on.
With enough practice writing and refactoring original software you just build a vision for it through repeated practice. If that isn’t you then this job may not be a good fit for you.
BOOSTERHIDROGEN
Can this insight be applied to human resources or business organization?
austin-cheney
Business organization is similar but people management is different. With people management you are attempting to ascertain their goals and constantly reading their communication to determine their motivation. As a leader it is up to you to set expectations and it is up to them to rise to those expectations. As for business organization the chief difference is with subordinate leaders, to put the right people in the right seats.
rahimnathwani
Maybe 'Design of computer programs'? https://www.udacity.com/course/design-of-computer-programs--...
Or study some of Peter Norvig's code for solving poker hands, sudoku etc.?
It's not obvious how to build abstractions at the right level, or to change those abstractions as requirements change.
harrall
System design is about connecting together black boxes that meet requirements. A black box is something with a certain defined behavior but you don’t necessarily care how it works.
Imagine if you got tasked with building an airport but you’ve never built an airport. Well, you’d have to first clarify requirements: What kind of planes? What’s on these planes? What kind of cargo? How many flights per year?
As you learn more about requirements, you need to start solving them, but remember to keep it at a black box level. Let’s say your airport will be moving both cargo. How will cargo come in? How will cargo get out? We probably need a “cargo movement sub-system.” A cargo conveyor sub-system is still a black box — you don’t yet know details but you do know, at this very early point in questioning, that you need “a system that moves cargo between the loading bays and the plane.” You don’t even know if it’s going to be a conveyor system or humans manually driving cargo yet. However, you are well on your way to building an airport system.
You keep at this and keep delving down deeper until you go from design to implementation. This is the process of how you build anything in any field.
null
I got a system design interview where I was asked to build a pricer for a financial product, then expand it to multiple pricers that might share inputs.
This was not the typical system design interview where you have to deal with APIs / load balancers / latency / etc
I have studied that a lot, but what about these type of general interviews?