Netflix logo

Netflix Backend Engineer System Design Questions

36 practice questions for Netflix Backend Engineer interviews

Netflix backend engineer interviews typically focus on APIs, databases, system design, concurrency, caching, and data structures.

All Roles Software Engineer Backend Engineer Frontend Engineer Full Stack Engineer Mobile Engineer Data Engineer Data Scientist ML Engineer DevOps Engineer DevOps Engineer Product Manager SRE Security Engineer Engineering Manager Data Analyst UX/UI Designer QA Engineer

No verified questions yet for Netflix.

system design Medium messaging #1

1. [OA] Message Queue — handle asynchronous processing of streaming requests

Implement a Message Queue to manage the flow of streaming requests, ensuring reliability and performance under load. The queue should accommodate multiple producers and consumers.
Problem statement: Create a MessageQueue class with the following methods:
- push(message: str): add a message to the queue.
- pop() -> str: retrieve a message from the queue.
- size() -> int: return the current queue size.
Example 1:
Input: push('First message')
Output: size() -> 1
Explanation: A message was added to the queue.
Constraints:
- 1 <= message.length <= 100
- Queue operations must be thread-safe.
system design Medium api design #2

2. [OA] RateLimiter — control the rate of requests to streaming

Design a rate-limiting service for Netflix's API to prevent abuse and provide smooth customer experiences. Implement a class-based rate limiter that allows a specific number of requests in a given time window.
Problem statement: Create a RateLimiter class with the following methods:
- is_request_allowed(user_id: str, timestamp: int) -> bool: returns True if request is within the limit and False otherwise.
- put_request(user_id: str, timestamp: int): logs a request.
Example 1:
Input: user_id = 'user1', timestamp = 1
Output: True
Explanation: User makes a request at timestamp 1.
Constraints:
- 1 <= user_id <= 10000
- timestamp >= 0.

Related Netflix Backend Engineer interview prep

Start practicing Netflix questions

Sign up for free to access walkthroughs, AI-generated questions, and more.

Get Started Free