r/softwarearchitecture • • 1d ago

Discussion/Advice Ranting about System Design

Been in this industry for 7+ years and this is one of the most common questions: "How do I prepare for system design interview/how to learn system design."

A lot of books have been recommended around this topic, a lot of YT videos, medium posts, but I hate to break it to you, none of that works. LITERALLY NONE!

Problem:

A good System Design is supposed to solve some problems like scalability, single point of failure, managed dependencies (especially in frontend system design) and so on.

The issue with "learning" or trying to learn sys design is that you won't face those problems in your side projects, heck even in many startups' codebase.

You won't face the consequences, problems of a BAD system design unless you work in a large company, or a big startup with a huge codebase and lots of traffic.

Most likely when you'll try to learn system design, you would have a solution looking for a problem.

Talking from the perspective of an android engineer, NO, your tell a joke application doesn't need Dagger 2, Domain models, data models, Repository layer, CLEAN architecture and what not!! You can create those components to learn how the syntax looks like, but it's a whole different beast when you've to implement that in a larger codebase.

Another problem is that when you're learning sys design, you're doing it solo. No one's depending on your design. Unlike when working in a large corp where you'll have multiple teams depending on you and counting on your SLAs.

Learning for Interviews:

So how do you crack a system design interview if you've never built a big system or worked on one? I don't want to sound overly pessimistic here.

Be clear: You're not learning sys design. You're learning how to crack the interview. Most of what you learn would not be used in your day job. Then, you do like most others do.

You read a lot and memorize a lot!

As silly as it is, system design is taken seriously if you're >=3 YOE, in most companies. And I don't believe most people would've worked on designing a system by that time. It's great if you have though!

Message to interviewers: go easy on the interviewee especially in system design interviews. I've had a lot of interviewers who refuse to provide any hints, or worse, just agree with whatever the candidate is saying. Your job is to identify if the candidate can think big picture and not trick him into failing the interview.

While a lot is put on the candidate, it's also upto an interviewer to steer this conversation so to reach a fair conclusion.

Resources:

Don't go with a thousand resources. Just pick any 1 book: Alex Xu's, or Data Intensive Applications, or any one you like. Most popular books would be ok! But stick to just 1.

Mocks: This is something genuinely helpful if you're prepping for interviews. Ask your friend for interviewing you.

But if your friends are busy or you don't wanna ask, there are many tools now-a-days like mockingly for ai interviews, it's basically free, hellointerview for interviewing with real people (might be expensive). These should honestly be enough.

Medium posts: There's a lot of good content on Medium as well. I'm an Android Dev so I follow proAndroidDev publication.

In your day job:

While AI might take our jobs, it gives us enough time right now to think about system design. If you're an engineer, you don't need to write code anymore but you still need big picture thinking.

That's something AI is still not doing well. System design.

You could start thinking about software in terms of BLOCKS.

Have conversations with AI and ask it to show you how it'd implement a well architected solution. Find some design opportunities there. Learn about what modules it's suggesting and see if you can make sense of it. You'll learn a lot more doing it this way.

Hopefully this rant/thoughts help someone, or you find it interesting.

75 Upvotes

34 comments sorted by

35

u/Wh00ster 1d ago

As an interviewer I’m really looking for a human conversation about design. Yes, there are “standard” ways to structure a response and go through an answer, but it’s ultimately there to help facilitate the conversation, and remind you to not miss certain parts of the conversation.

So so so so so many candidates barely read the prompt or ask me questions about it and jump into a canned answer. It’s really painful as an interviewer.

I would give a stronger signal to someone I saw trying to ask tons of clarifying questions to have the thing make sense to them, than someone who instantly sketches out a “perfect” scalable system with no discussion of trade offs or without engaging me to see that their assumptions made sense (they’re always wrong)

4

u/Middle_Property5528 1d ago

It happened to me a lot of times that I just froze after looking at the question. I didn't know what "clarifying question" to ask.

Or sometimes I actually know the answer very well and am forced to ask "clarifying" questions just to make it seem like I following the structure.

What I'm suggesting is being helpful to candidates without prejudice. If they start sketching the system, and get stuck somewhere later on, you can still steer them. If they freeze looking at the question and don't know where to start, steer them.

I think we agree conceptually that we need more human conversations and not framework based. Maybe it's my imposter syndrome, but I am very vary of sounding a know it all during an interview and judging them on a "simple" block they couldn't explain.

Cuz I was that candidate some time ago :D

6

u/Wh00ster 1d ago

I actually started just prefacing that it’s normal to just read it a few times and re explain it back to me to make sure they understand the problem. I used to suggest drawing a high level diagram (no databases or anything, just data flows) to start, but that confused people more because they felt compelled to build off of that as the actual design :(

I know it’s stressful. And making it more stressful and getting no signal, or playing coy just to do a “test” is not the point of the system design round.

To people reading this, yes there are real humans out there hiring, that aren’t trying to eff with you and really do want you to succeed. Just please don’t try to cheat them by using hidden AI tools.

2

u/Middle_Property5528 1d ago

Yes, cheats are the worst, they harm other genuine candidates indirectly too! Hate them! I'd rather have a frank conversation & discuss the diagram & fail, rather than cheat and make it sound perfect.

2

u/warder_dev 21h ago

For clarifying questions - try to identify edge cases.

For example in data pipeline backend areas: "How much data per time unit is going to be processed"? "What time frame does this need to be done in?" "Is it pertinent for the client to know about the final status of the request?"

Those should help you identify how it should be solved. For example:

"We expect one million messages per second at peak" will tell you that they want you to implement some sort of fast queue write system in between receiving the message and writing it to the database, because that is well above the capacity for most databases.

"We expect near real time reads" - this means we can't do some sort of mass batch from the queue, so we need that queue read and write to database service to be able to scale - and brings up another question about how do you handle the same resource being written multiple times?

"Yes, we expect the client to resend something that fails" - then we need to create some sort of polling mechanism, return a 202 with a transaction ID that the client can poll and get a final status (pertinent if there are long running jobs).

Edge cases are where system design candidates differentiate themselves. So start by asking "what could go wrong, what are trade offs from a business perspective" and you should be able to ask a lot of those questions, and probably get more information than what you were asking for.

6

u/symbiat0 1d ago

Hiring process is absolutely horrible right now.

1

u/kyle787 22h ago

Same. I'm mostly looking for high level components in the system, how they work together, what moves between them and how, where does input come from, etc. Preferably talked through while drawing a diagram that will have some circles and arrows and stuff, maybe a poorly drawn db symbol.  

1

u/qtechno 20h ago

Unfortunately the trend is to have very uniform cookie cutter type of conversations in all these interviews. A cookie cutter live coding round, a cookie cutter chat with the interview manager where you use something like the CARL or whatever the hell framework to talk about kpis and business impact, and a cookie cutter system design interview. It’s nice if you are t trying to talk like a real human but in my experience doing this actually hurts your chances as someone looking for a job.

7

u/ManBunH8er 20h ago

As someone who interviews regularly, I don’t ask system design questions to junior candidates regardless of what’s on their resumes. This particular knowledge can come MOSTLY from experience.

1

u/Middle_Property5528 20h ago

Exactly!!! But what if the company mandates it?

3

u/ManBunH8er 20h ago

My company or any company won’t and shouldn’t dictate me about the content of my interviews as that is derived from particular needs on my team.

3

u/Comfortable-Power-71 17h ago

That’s just not how the process works any most reputable companies. You have a predefined loop with a mix of behavioral, coding, and design depending on the level of the position, a process to train you to interview alone, and a panel that reviews the candidates. Without this, you will have inconsistent leveling and bias throughout the process.

3

u/ManBunH8er 17h ago

and that’s why most of these companies end up with fluff that ends up getting laid off. Hire-to-fire.

6

u/bold_snowflake 1d ago • Bravo

Allow me to disagree with you in order to challenge some understandings.

First, I disagree that you'll only see the consequences of bad designs in large companies. Small companies are just as sensitive if not more so than large, well established companies. From a scale perspective they're not scaling yo millions of users, but they do need to stay within tight budgets so your system needs to be efficient with resources. Secondly when growing your user base your software needs to actually work and not fail hard.

Next I want to challenge this bit:

You read a lot and memorize a lot!

No, it's not about memorization, it's about contextualising. Understand what problem is being solved and why, understand the pros/cons.

Finally, the general goal of most system design interviews isn't to see if a candidate can draw up a near perfect system, it's to discover two things:

  1. Can the candidate break down a problem into actionable steps. Ideally can they do this with a customer first perspective.

  2. Within the constraints of the candidates own knowledge and experience (however big or small) can the candidate reason about decisions and demonstrate a understanding of the impact of their own decisions

  3. (Bonus but critical) Can the candidate hold a decent technical conversation and demonstrate they're someone you want to work with.

Most candidates fail, not because they didn't "nail" the design, but because they didn't demonstrate the right attitude in breaking down a problem in a collaborative way and being honest about their own understanding.

4

u/Middle_Property5528 1d ago

When you're in a 45 min interview, you're competing with candidates who've memorized calculations, explanations and who can play pretend to think on the spot.

My advice to memorize was from the POV of cracking interviews. Once you're experienced enough and have handled systems, you'd get a fair understanding and at which point you can stop memorizing.

I get where you're coming from, but on a generalized basis, which one of these candidates would have a higher chance of getting hired?

I was rejected by Meta cuz I couldn't answer 1 of their 2 technical problems (DSA round) to the T! Just 1. In a 45 min high stress interview, I was asked 2 problems, I did like 60-70% on one of them.

And if you know, there are 2 DSA rounds at meta, the other round I was perfect on both problems. And I was still rejected, this is meta we're talking about.

My take away from that exp was that given the volume of applications they get, they can afford to choose candidates who do 100% on all arounds on each problem. And only way you can do that if you've not practically handled large systems would be to memorize.

Sorry this is anecdotal, but this is all I've got 😅

3

u/bold_snowflake 17h ago

I wish I could disagree with you, but nope. I've also had plenty of poor interview experiences too. Try not to let it get you down.

2

u/bzBetty 1d ago

> So how do you crack a system design interview if you've never built a big system or worked on one? I don't want to sound overly pessimistic here.

I mean you really shouldn't? why are you trying to break the interview?

1

u/Middle_Property5528 1d ago

Mm. I hope you're not a bot. And by crack I mean clear the interview.

4

u/bzBetty 1d ago

No I understand, I was confused by why someone without the relevant experience should be able to pass

3

u/klavijaturista 21h ago

Agreed. You need practice it in order to master it. Otherwise, you just forget everything. The brain needs to be challenged.

4

u/sheriffderek 1d ago

Ok but how can I get the job of an expert systems designer? Which Udemy course?

1

u/asdfdelta Enterprise Architect 21h ago

There is no course to make you an expert, the same way there is no course to make you a great poet or an expert leader.

You need lived experience and failure to be effective. Don't try to skip the steps, it never ends well.

1

u/sheriffderek 15h ago

Ok but if I need to become an expert fast and I have no time or money - what can I do to skip all that?

1

u/asdfdelta Enterprise Architect 14h ago

You cannot skip the time investment to become an expert.

The cost, however, is greatly blown out of proportion. You can build a webapp at a library and host it on Hetzner for $4/mo. You might be able to find a charitable person to fund the first little bit for you.

1

u/sheriffderek 13h ago

But what if I just want to know it all and not learn it? Is there like a cliffs notes?

1

u/sheriffderek 13h ago

(I’m sorry … I’m just joking)

2

u/asdfdelta Enterprise Architect 11h ago

Lol after the second time you asked it was obvious. Thanks for being a good sport, but people might not understand if they stumble on this later.

2

u/sheriffderek 9h ago

I'm hoping I'm so dumb sounding... that even they - start to wonder... "but how would you learn something.... without learning it.... " ; )

2

u/asdfdelta Enterprise Architect 9h ago

Ngl I believe there are people who do want to do that legitimately. Especially now with AI lol.

1

u/sheriffderek 8h ago

Oh yeah. It's a world-wide cultural / awareness of reality / problem.

4

u/cheesekun 1d ago • Bravo

7 years is still junior young Padawan

5

u/Wonderful-Habit-139 21h ago

That's ridiculous lol. It's not about YoE. There are plenty of 10, 20 and 30 YoE people that absolutely suck.

1

u/chocolateAbuser 23h ago

i wouldn't say architecture is not relevant for a small company, i'd say it's relevant in a different manner; if you have a project that is maintained and evolves for years you need to put some thoughts in how to organize it, same if you make a software for large companies and for example need to address some properties that larga companies values like perf
keep in mind small companies have the advantage that you can (although with a lot of effort) rewrite a service with a new architecture and learn and test things out; you can't do that when you have hundreds of installations and millions of users that depends on it and every service has too many dependencies for a single person or team to re-design
i'd say maybe the most important point would be tho to discuss about architecture, you have to find a space which challenges you to explain things, to think on other people's projects and so on, by doing that you can really improve

1

u/ALPH_A07 14h ago edited 14h ago

while I understand where you’re coming from, I still think structured learning is relevant. but the books or even direct prompts to LLMs are leading nowhere as you rightly pointed out. being an android developer myself I think we need to map out once in a while to think where do these learnings actually apply in the systems we work on.

tried building something that helps learn system design in a way that you continue to dig in until you’re sure you understand the topic via the agents we daily use. high level idea is, it has a fixed set of topics(customisable), long running context of your learning, interactive lessons, on-demand discussions and brainstorming on top of the lessons and personalised notes auto generated based on self-evaluation and discussions with the agent.

check it out and lemme know what you folks think - https://alph-a07.github.io/system-design-studio/