Skip to main content

Google System Design Interview Preparation

 What is a system design interview?


  • You would be asked a question to design a solution to a real world engineering problem

  • It can cover anything from large service architecture (gmail or gmaps), to algorithms, to hardware constraints.

  • It’ll be more of a conversation with you taking the lead - if you have in depth knowledge of a certain area, take the opportunity to showcase your depth of knowledge to the interviewer


What are our interviewers looking out for?


  • Your ability to provide a concrete, realistic and quantitative design (i.e. Does your design work for that problem? You might have to go into specific details like numbers - i.e. numbers of machines required, possible queries per second, etc)

  • Your ability to implement API and interface design (i.e. whether its easy to use and works well with other teams in the organization, or with existing parts of the system)

  • Your ability to discuss the properties of the system (i.e. Given a certain architecture, does it favor latency?)

  • Your ability to discuss the tradeoffs and options ( i.e. Don’t just mention that you will use a database. Explain why you choose that? What are the alternative options? Talk through the options and explain why you’ve made that choice)

  • How do you productionize: Reliability and scale


How can I prepare for a system design interview?


  • Review distributed systems concepts

  • Consider the entire spectrum of requirement gathering: time, cost, throughput, users, latency, storage, etc

  • Think about: How would I determine what is a good latency? How robust and how scalable can it be? How do I productionize it and scale it in a manner that caters to the users?

  • Think about: How will you build a flexible design? What components will you keep variable, and what components will you set in stone?


Approach you can adopt for a system design interview


  1. Scope the requirements

    • Always ask clarifying questions! The problem statement will be incomplete, so ask for solid requirements

  2. Design the solution

    • Feel free to start with something simple!

    • Be flexible! Don’t be afraid to make changes on some of the designs you have laid out. Interviewer  might be giving you hints and guiding you in a certain direction.

  3. Deep Dive in sub-areas

  4. Iterate

    • Improve and adapt. Consider scalability, reliability, flexibility and maintainability

    • Always think about backup plans - On scalability, have you designed it in such a way that it can handle data center outage?


Useful resources


 

Other resources for practice/ refresher


Reading materials if you have time:



You might want to prepare on the following topics (not all will be assessed):


  • API design

  • Systems architecture

  • Capacity/ latency/ throughput

  • Scalability

  • Network Design

  • Fault tolerance

  • System level interactions and trade-offs

Comments

Popular Topics

Top trending concepts in System Design Interviews.

  Here are some trending topics on system design:   Microservices Architecture: Microservices architecture is a design pattern that structures an application as a collection of small, independent services that communicate with each other using APIs. It allows for more flexibility and scalability, as each service can be updated, deployed, and scaled independently.   Serverless Architecture: Serverless architecture is a design pattern where the application is hosted on third-party servers, and developers don't have to worry about the underlying infrastructure. It is a cost-effective and scalable option for developing and deploying applications.  examples are  Azure Functions and AWS Lambda            Cloud-Native Architecture: Cloud-native architecture is an approach that utilizes cloud computing to build and run applications. It allows for rapid development, deployment, and scaling of applications. There are 3 major platf...

Domain Driven Design (DDD) Pros and Cons

  Domain Driven Design   Domain-Driven Design (DDD) is a software development methodology that emphasizes the importance of understanding the domain of a problem before creating a solution. DDD involves collaborating with domain experts and creating a shared language to develop a deep understanding of the problem domain. It also focuses on designing the software around the core business processes and models, rather than around technical concerns.   The benefits of DDD include:   Improved collaboration: By involving domain experts in the development process, DDD fosters collaboration and understanding between developers and domain experts .   Better alignment with business needs : DDD focuses on designing software around core business processes, which helps ensure that the software aligns with the needs of the business . Improved software quality: By focusing on the core business processes and models, DDD helps ensure that the software is more maintainab...

How to improve performance of a system?

There are several ways to improve the performance of a system using system design concepts: Caching: Use caching to reduce the response time for frequently accessed data. This can be done at various levels, such as application-level caching, in-memory caching, and CDN caching.   Load balancing: Use load balancing to distribute the workload across multiple servers or nodes. This can help to improve the throughput and reduce response times.   Database optimization: Optimize the database by using indexing, query optimization, and database replication. This can help to improve the database performance and reduce response times.   Sharding : Use database sharding to horizontally partition data across multiple servers or nodes. This can help to improve scalability and reduce response times.   Asynchronous processing: Use asynchronous processing to offload non-critical tasks to background threads or queues. This can help to reduce response times and improve the...