What Database Does Netflix Use? SQL and NoSQL at Netflix

Netflix does not run one database. Most of the streaming path runs on Apache Cassandra, a NoSQL wide-column store. SQL is still there: MySQL for transactional records, CockroachDB where several regions need strong consistency, and Presto or Spark SQL for analytics.

So the short answer to "what SQL does Netflix use" has two halves. Online, the SQL engine is mostly MySQL. For analysis, thousands of people write SQL against a data lake.

A data lake is a large set of files in object storage that query engines read as if they were tables.

The stores Netflix uses and what each one is for

JobStoreType
Viewing history, profiles, most online dataApache CassandraNoSQL wide-column
Caching in front of those storesEVCache, built on memcachedIn-memory cache
Billing and other transactional recordsMySQLRelational SQL
Data that needs strong consistency across regionsCockroachDBDistributed SQL
Video files and data lake filesAmazon S3Object storage
Search and log queriesElasticsearchSearch index
Analytics over the data lakePresto and Spark SQL on Apache IcebergSQL query engines

Apache Iceberg is worth knowing. Netflix engineers built it and gave it to the Apache Software Foundation. It is a table format that lets SQL engines treat files in object storage as real tables, with schema changes and time travel.

Why Cassandra carries the streaming path

The read pattern on the streaming path is a key lookup. Give me this member's profile. Give me this title's metadata. Give me where this person stopped watching.

Joins are rare, and the same few queries run billions of times. That is the shape Cassandra was built for.

Three properties matter here:

  • No single leader. Every node can take a write, so one failed node does not stop writes.
  • Replication across regions. Copies sit near the members who read them.
  • Tunable consistency. Each query chooses how many replicas must answer.

Netflix trades strict consistency for availability on most of this data. A watch position that is one second stale is not a problem. A playback screen that will not load is.

Why SQL is still part of the design

Two jobs still want a relational database.

The first is money. Billing and subscription records need multi-row transactions and strict correctness. MySQL gives that, and Netflix has written publicly about running billing on it.

The second is analysis. Thousands of analysts, data scientists, and engineers query Netflix data. SQL is the language they all share, so the data lake exposes SQL through Presto and Spark.

CockroachDB sits between the two. It speaks SQL and keeps strong consistency, but it spreads data across regions like a NoSQL store.

SQL or NoSQL for a streaming service

Interviewers ask you to compare the two for exactly this system. Answer by workload, not by preference.

Question about the dataPoints to SQLPoints to NoSQL
Do you need multi-row transactions?YesNo
Is access a simple key lookup?NoYes
Does the write rate exceed one machine?Harder to doDesigned for it
Is the schema stable?YesIt changes often
Will people query it by hand?YesRarely
Is stale data acceptable for a moment?NoYes

Every large system uses both. The real question is which store holds which data, so map each data type to a store and give a reason for each choice.

A good answer for a streaming service looks like this. Put video files in object storage behind a CDN. Put catalog metadata in a relational store with a heavy cache. Put viewing history and watch position in a wide-column store. Put billing in a transactional SQL database. Send events to a stream for analytics.

How to Prepare

TAGS
System Design Interview
System Design Fundamentals
CONTRIBUTOR
Arslan Ahmad
Arslan Ahmad
ex-FAANG engineering manager and author or Grokking series.

GET YOUR FREE

Coding Questions Catalog

Design Gurus Newsletter - Latest from our Blog
Boost your coding skills with our essential coding questions catalog.
Take a step towards a better tech career now!
Explore Answers
What Is the Oracle Interview Process Like? (Round by Round)
Oracle's loop varies more by org than almost any big tech company: a timed assessment, two to three technical screens, a virtual onsite, and the Bartender round. What to expect and how long it takes.
Who is the highest paid on Pinterest?
What is the salary of L2 in Twilio?
Which language is used in MongoDB?
What is a mock technical interview?
What is a lexicographic order??
Related Courses
New
Grokking the AI System Design Interview course cover
Grokking the AI System Design Interview
Learn to design AI systems the way interviewers expect: classic ML products, LLM and RAG architectures, and agentic systems, all through the lens of the system design interview.
4.6
(3,192 learners)
Discounted price for Your Region

$123

Grokking the Coding Interview: Patterns for Coding Questions course cover
Grokking the Coding Interview: Patterns for Coding Questions
The 24 essential patterns behind every coding interview question. Available in Java, Python, JavaScript, C++, C#, and Go. The most comprehensive coding interview course with 543 lessons. A smarter alternative to grinding LeetCode.
4.6
Discounted price for Your Region

$197

Grokking Modern AI Fundamentals course cover
Grokking Modern AI Fundamentals
Master the fundamentals of AI today to lead the tech revolution of tomorrow.
4.1
Discounted price for Your Region

$72

Design Gurus logo
One-Stop Portal For Tech Interviews.
Copyright © 2026 Design Gurus, LLC. All rights reserved.