LearnThatStack Ace your next interview
Elasticsearch · question
Question 3 of 49

What is the difference between Elasticsearch and traditional relational databases?

beginner
← All Elasticsearch questions
Re-explain

Elasticsearch is built to search and analyze data across many machines, while a relational database stores records and changes them safely in transactions. Elasticsearch keeps denormalized JSON documents spread over nodes. A relational database keeps normalized rows in tables and joins them at query time.

Elasticsearch Relational database
Data model Document-oriented JSON Tables with rows and columns
Schema Flexible Fixed
Scaling Horizontal, by adding nodes Mostly vertical
Guarantees Near real-time search ACID transactions
Relationships Denormalized data Normalized data with JOINs
Interface RESTful API SQL queries
Workload Optimized for read-heavy search Balanced reads and writes

Elasticsearch is the better fit for search, analytics and unstructured data. A relational database is the better fit for transactional work that needs ACID properties, such as orders and payments. Many systems use both. The database stays the source of truth, and Elasticsearch holds a copy of the data for search.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

The diagram below the answer is the concept . Jump to it ↓

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

Saved in this browser - sign in to keep your review list.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Interview lens

Likely follow-ups, what you can say, and the weak answers to avoid.

Sign in free to open it Free account - the lens opens as soon as you're back.

Want a quick review of the fundamentals? See the Elasticsearch cheatsheet.

← Back to all Elasticsearch questions
Pro · $10/mo

44 of 49 Elasticsearch answers are in Pro.

Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.

  • Full answers + code
  • AI explanations, simpler or deeper
  • 1,000 AI credits / month
  • Cancel anytime