How to Rock a Systems Design Interview
blog.palantir.com
blog.palantir.com
However, for what it's worth, the two best resources I've seen for systems design are:
Hints for Computer System Design: http://cseweb.ucsd.edu/classes/wi08/cse221/papers/lampson83....
How to Design a Good API: http://www.youtube.com/watch?v=aAb7hSCtvGw
What else should be in this bibliography?
One of our guys plotted the memory latency benchmark here:
http://www.bitmover.com/mem_lat.jpg
He shows you that and says "tell me everything you can tell me from this graph". It's usually a two hour conversation.
That's a cool graph.
Look at the colors again. L1 is ~12KB or less. 300kbish is probably L2.
I tried hard to recognize the CPU from the graph, and failed. Any help?
All those access times are nanoseconds. Traditional hard drives are usually in the 4-8 millisecond range. Even SSDs clock in at around .2 milliseconds...which is 200,000 nanoseconds.
It's a tiny set of tests and if you memorize the results you can sit in any design session, decompose a problem into the basic events, and prove that the design can or can not work in short order.
From what hardware you run to what software stack you use. A good systems architect will make these decisions on the fly.
To get better at designing systems you have to actually look at ones in practice. Especially ones you think are bad. Because often what led to that design was a series of tradeoffs. And systems design tends to run end to end. You have to think about not only speed and reliability but often ease of use.
How many people remember the pseudo-code for quick sort right away? A true engineering test or interview should be done in coding tests and his/her ability to QA his/her own code, and explain it in a clear fashion.
Once you've done that, you'll understand a ton about how to think and how design decisions will affect you later on.
More specific advice depends on what your background is and what you're doing now. (For example, are you a student? A CS student? How much of a CS background to you have? Are you working full-time? If so, does your job involve programming? Do you have time to hack on the side?)
Although we have two courses on System's design and System's engineering, teachers here are not very good, and I feel I didn't learn almost anything from them. That's why I want to read more about it and really improve my skills there.
At my daily job I work on several short-time projects, using MS technologies. Sometimes I code .NET, do some basic design for an application, but nothing really big. I don't stop and think about scalability, performance, etc. Those things usually come unannounced later when the application starts to fail in some environments. So, you can see, I'd benefit from learning more about System's design.
There are several books I would recommend:
1) Database Design and Implementation by Edward Sciore:
http://www.wiley.com/WileyCDA/WileyTitle/productCd-EHEP00071...
This book teaches RDBMS from conceptual perspective up to implementing your own RDBMS (using Java albeit).
2) OS Design XINU Approach (look for the PC edition)
http://www.amazon.com/Operating-System-Design-XINU-Approach/...
3) Bunch of UNIX/Linux books
- The Design of the UNIX Operating System (M. Bach)
- Design and Implementation of BSD 4.4/FreeBSD 5.2
Unfortunately I don't think jumping to the most recent Linux kernel books would be feasible.
4) Look for any books that teaches both concepts and provide simple implementation of the said concepts.
For example:
http://www.amazon.com/Definitive-Guide-SQLite-Experts-Source...
Find a book that teaches the concept of Graphics Pipeline and try to implement it yourself: http://www.viznet.ac.uk/files/d39pipeline.gif
5) Check out the Java SDK (the actual implementation, not how to use the library) and HotSpot VM guides
- Concurrent, NIO/IO, Networking, Threading
- Garbage Collection, optimization, Class Loading, etc
I think the more you learn, exercise, and understand many system designs out there could help you to build your own "intuition" in the future.