SQL vs. NoSQL Explained (in 4 Minutes)

  Рет қаралды 171,436

Exponent

Exponent

Күн бұрын

Make sure you're interview-ready with Exponent's system design interview prep course: bit.ly/3P2tvBy
Get our database cheatsheet: www.tryexponent.com/blog/syst...
Trying to decide between SQL and NoSQL for your next project or system design interview? Learn about well-structured data, ACID compliance, and horizontal scaling considerations.
The strengths of SQL databases include their relational nature, well-structured data, and ACID compliance. Still, they could be more effective for storing and querying unstructured data and challenging to scale horizontally.
NoSQL databases are more flexible and better suited for storing unstructured data, with horizontal scaling made easier by distributed databases. However, NoSQL databases can suffer from eventual consistency issues in write-heavy systems.
Chapters (Powered by ChapterMe) -
00:00 - Choosing databases in system design interviews
00:40 - SQL database strengths and weaknesses
01:43 - SQL databases take longer to set up, scale, query
02:13 - Benefits of simpler databases
02:53 - Tradeoff between strong database consistency and scalability
03:44 - Database techniques and exponents summary
Watch more system design videos here:
- Meta engineering manager answers a rate limiter interview question: • System Design Mock Int...
- Google SWE answers an algorithms interview question: • Google Software Engine...
- Google TPM answers Tiktok system design interview question: • System Design Mock Int...
- Flipkart EM “Design Amazon Prime Video” system design interview question: • System Design Intervie...
👉 Subscribe to our channel: bit.ly/exponentyt
🕊️ Follow us on Twitter: bit.ly/exptweet
💙 Like us on Facebook for special discounts: bit.ly/exponentfb
📷 Check us out on Instagram: bit.ly/exponentig
📹 Watch us on TikTok: bit.ly/exponenttikttok
ABOUT US:
Did you enjoy this interview question and answer? Want to land your dream career? Exponent is an online community, course, and coaching platform to help you ace your upcoming interview. Exponent has helped people land their dream careers at companies like Google, Microsoft, Amazon, and high-growth startups. Exponent is currently licensed by Stanford, Yale, UW, and others.
Our courses include interview lessons, questions, and complete answers with video walkthroughs. Access hours of real interview videos, where we analyze what went right or wrong, and our 1000+ community of expert coaches and industry professionals, to help you get your dream job and more!

Пікірлер: 43
@tryexponent
@tryexponent Жыл бұрын
Make sure you're interview-ready with Exponent's system design interview prep course: bit.ly/3P2tvBy
@ismaeltinta6118
@ismaeltinta6118 7 ай бұрын
I don't know but as a beginner I have noticed many of these videos LACK the most important sauce : ACTUAL USE CASES! If you would have featured examples like let's say you're building an app that does this or that for you might want to use SQL for this part of the scope BECAUSE etc... and for that part of the scope NoSQL might be preferred because etc.... There you go, I have just shared a framework for your next video lol. Thank you anyway for the content it shows the genuine interest to educate but could be better especially if you want to educate beginners.
@AjaySharma-me1sy
@AjaySharma-me1sy 5 ай бұрын
I'd take two examples to give some clarity on how you apply the principles explained in the video to decide on real-life situations: 1. Designing a social media system like Facebook. Consistency is not critical. Posts can be created and it's totally fine if they take some time to propagate to multiple users. Considering the post data will be mostly unstructured data (text/images/video) and that you will need horizontal scalability (billions of posts), you should use a no-SQL database. 2. Designing a payment system like VISA or Mastercard. Consistency is of utmost importance while committing the transaction. If there is issue in reflecting the transaction information, it can lead to unwanted consequences and angry customers. Considering that the data is structured and you don't need multiple users to see a single transaction, you should use a SQL like database.
@petar55555
@petar55555 8 ай бұрын
SQL databases can also scale horizontally as well. People could get in trouble during the interview, please clarify this point
@WaliSayed
@WaliSayed 6 ай бұрын
The points mentioned are informative but add bit more clear explanation here about the horizontal and vertical scalabilities of NoSQL and SQL database systems: NoSQL databases are designed to scale out horizontally, meaning you can add more servers or nodes to the database cluster to handle increased data volume, traffic, or performance requirements. On the other hand, SQL databases often scale up vertically by adding more CPU, RAM, or storage capacity to a single server to handle increased demands.
@tryexponent
@tryexponent 6 ай бұрын
Hey WaliSayed! Thanks for adding on and sharing your knowledge!
@shagenhokie
@shagenhokie 5 ай бұрын
Great overview. Thanks for sharing.
@vinaygupta2369
@vinaygupta2369 7 ай бұрын
Very precise to the points of differneces between sql and nosql. thanks for the good content as always❤
@FabioGoncalves-ry7zq
@FabioGoncalves-ry7zq 23 күн бұрын
Thank you for the amazing video. I now understand it better than I used to.
@apnashankar
@apnashankar 10 ай бұрын
Well Exaplanation ma'am❤! Now I've understood differences b/w SQL and NO-SQL. Thank you ❤
@mlavinb
@mlavinb 2 ай бұрын
Amazing! thanks for sharing
@abdullokhayrulloev9211
@abdullokhayrulloev9211 Жыл бұрын
So much valuable information in only 4 minutes
@swapnanjalisahoo97
@swapnanjalisahoo97 2 ай бұрын
Very informative and quick 😊
@michaelbradley6712
@michaelbradley6712 2 ай бұрын
I regard you as a very credible and lucid presenter.
@TTomni
@TTomni 4 ай бұрын
This was great thanks :).
@pranavjoshi7697
@pranavjoshi7697 3 ай бұрын
@1:12 MongoDB is also ACID-compliant after version 4.
@native-nature-video
@native-nature-video 10 ай бұрын
Thank you!
@adityyyaaa
@adityyyaaa 7 күн бұрын
No-SQL database can easily solve the "consistency" problem by implementing structures or schemas internally
@bigbigdog
@bigbigdog Жыл бұрын
❤thank you for this video
@shreyaschillal
@shreyaschillal Ай бұрын
Well &Cool explanation
@mvlinux
@mvlinux 10 ай бұрын
thank you 👍
@rolandocedeno6194
@rolandocedeno6194 3 күн бұрын
NoSQL databases were not originally intended for scenarios requiring strict data integrity, as ensuring data consistency across distributed systems can be complex. The best use case for NoSQL is often for data caching mechanisms, where a disconnected application stores data in a NoSQL database and later synchronizes it with a relational database like SQL Server, Oracle, or MySQL. Using NoSQL as a caching mechanism also enhances performance, as you can keep a list of products in a NoSQL database and refresh it only when changes occur, thereby limiting the number of server data requests. This approach effectively functions as a caching mechanism. In conclusion, the use case where the technology shines is a hybrid application.
@jacobsimon4699
@jacobsimon4699 Жыл бұрын
Awesome!
@jasonl412
@jasonl412 Жыл бұрын
so, is it a standard answer the the question of "Could you tell the difference between SQL and NoSQL"?
@michaelai8274
@michaelai8274 Жыл бұрын
There's not exactly one to choose. They both have use cases in which they're best in that category/
@Deepakkumar-dy1en
@Deepakkumar-dy1en 9 ай бұрын
Its very informative video ❤. But it could be better to add few use cases to use sql vs nosql in system design context. I think: Use sql db if acid property, more relational data and less need of scalability is there else use nosql db. Correct me if i am wrong.
@TecDM_EC89
@TecDM_EC89 Ай бұрын
I have never needed to implement a NoSQL database since I normally design my datasets correctly before development. When I tried to learn about NoSQL I found out that the lectures I was taking were leading me to "replicate" a relational structure in a NoSQL database. But, that's just my case. I can tell that everything will depend on the context.
@ashishgupta3247
@ashishgupta3247 3 ай бұрын
Great
@VishalGupta-mn2mn
@VishalGupta-mn2mn 2 ай бұрын
why dint you cover CID(consistency, Isolation and Durrability) for sql? why only atomicity you explained?
@AYJ959
@AYJ959 8 ай бұрын
good 👍👍
@klawtawar
@klawtawar Жыл бұрын
Also share some examples
@zhonglin5985
@zhonglin5985 3 ай бұрын
I don't think the video has explained why SQL databases usually can't horizontally scale for write-heavy systems. This statement can be easily challenged by the interviewers. Actually MySQL database has been proven be to able to horizontally scale for writes using sharding.
@HemanthChandra
@HemanthChandra Жыл бұрын
this is good, but too many technical jargons... so, some details mentioned here are not clear
@moisthero
@moisthero 10 күн бұрын
do product managers get asked system design questions in interviews?
@tryexponent
@tryexponent 2 күн бұрын
Generally not!
@jayakumar2927
@jayakumar2927 2 ай бұрын
How to convert db NoSQL to SQL DB?
@tryexponent
@tryexponent 2 ай бұрын
It's tricky because converting a NoSQL database to SQL requires defining a structured, relational schema that matches the unstructured data in NoSQL, which may vary significantly in format. I think you may want to evaluate whether SQL or NoSQL is more suitable for your application's needs and requirements before switching. Hope this helps!
@ethereal_mantis5755
@ethereal_mantis5755 6 ай бұрын
I got from the video that there's very few weak points for NoSQL
@mrrishiraj88
@mrrishiraj88 Жыл бұрын
🙏👍
@mohammedrezk8072
@mohammedrezk8072 Ай бұрын
Guys , is this an actress as well ?
@tryexponent
@tryexponent Ай бұрын
Our hosts are always real tech employees. In this case, a former ML engineer turned technical product manager.
SQL vs NoSQL or MySQL vs MongoDB
21:30
Academind
Рет қаралды 1,8 МЛН
小女孩把路人当成离世的妈妈,太感人了.#short #angel #clown
00:53
MongoDB Explained in 10 Minutes | SQL vs NoSQL | Jumpstart
11:18
How do NoSQL databases work? Simply Explained!
7:38
Simply Explained
Рет қаралды 1 МЛН
Database Replication Explained (in 5 Minutes)
5:02
Exponent
Рет қаралды 43 М.
This is why understanding database concurrency control is important
9:05
How To Choose The Right Database?
6:58
ByteByteGo
Рет қаралды 283 М.
Which Is Better? SQL vs NoSQL
9:43
Web Dev Simplified
Рет қаралды 278 М.
Database vs Data Warehouse vs Data Lake | What is the Difference?
5:22
Alex The Analyst
Рет қаралды 718 М.
APIs Explained (in 4 Minutes)
3:57
Exponent
Рет қаралды 620 М.