← All videos

Engineering video

34:51 · 29 May 2024

Backend System Design Mock Interview 2025

Chapters 7 sections

  1. 0:00Introduction and Requirements Analysis
  2. 2:03Traffic Estimation and Scaling Front-End Assets
  3. 6:47Horizontal Scaling, Load Balancing, and REST APIs
  4. 11:42Database Optimization, Replication, and Sharding

Key concepts in this video:

1. System Requirements and Traffic Estimation

Translating user requirements and monthly active user counts into concrete request-per-second (RPS) metrics by accounting for geographic and time distributions.

Hear it at 0:31 →

2. Front-End Scaling and CDN Usage

Separating front-end and back-end services, utilizing Content Delivery Networks (CDNs) for caching static assets, and implementing compression and cache busting.

Hear it at 4:41 →

3. Horizontal Scaling and Load Balancing

Scaling backend compute resources horizontally using stateless services and distributing incoming traffic via load balancers with static or dynamic algorithms.

Hear it at 6:47 →

4. RESTful API Design

Structuring clean, resource-based URIs and properly utilizing HTTP verbs for actions while avoiding anti-patterns like putting verbs in the path.

Hear it at 9:39 →

5. Database Scaling and Architecture Patterns

Decoupling shared databases, calculating read-to-write ratios, and implementing read-replica clusters and database sharding.

Hear it at 11:54 →

6. Caching Strategies and Eviction Policies

Using in-memory caches like Redis to handle asymmetric product traffic and managing cache limits with least-recently-used (LRU) or least-frequently-used (LFU) policies.

Hear it at 19:10 →

7. Event-Driven Microservices

Transitioning from synchronous service-to-service calls to an asynchronous event-driven architecture using message queues for better scalability.

Hear it at 25:09 →

8. Security Best Practices

Securing applications using the least privilege principle, firewall rules, dependency vulnerability scanning, rate limiting, and input sanitization.

Hear it at 31:34 →

Transcript

hi there Foxx it's POG here from the senior Dev today we will solve a real system design interview focused on the backend this interview I got myself for a senior backend position and I passed the interview the offer was around 100K in the European market if you're in the United States Market this would be around 180,000 so a very highend kind of salary and I will go through exactly what I did in my process and the final design uh that actually got me to pass the interview let's get going so basically what they've been presenting me with is this uh kind of initial sketch so I didn't have to care too much