How to choose RIGHT DATABASE ? | Type of Database | Code Decode | System Design Interview Question

preview_player
Показать описание
In this video of code decode we have explained best database to choose from. This is very Important Interview questions with respect to System Design

Udemy Course of Code Decode on Microservice k8s AWS CICD link:

Course Description Video :

Scenarios where we need to choose between NOSQL DB and relational DBs ?

Scenario 1: READ Vs WRITE Intensive Application

When your application is read intensive the use NOSQL db .

If the application is Write Intensive then go for Relational DB.

Why ? If we have to read a lot and update less, then having multiple relational DBs and having join queries to read a lot of data base will decrease the performance. So better go with Non relational DBs. Now everything will be in one document and no joins, views complex queries wool be required which decreases the readability, performance , speed and other non functional parameters of aplication

Scenario 2: Unstructured VS Structured Data

When your application is going to persist the data which is not structured, there is no guarantee on how many fields we will get and we need to store then its unstructured data. Then go for No sql DB choice as there is no restriction on columns or fields in which data has to be inserted .

But If we are very sure the data structure wont change ever in whole life cycle of application then even relational DB is also a good choice

Scenario 3: Concurrency and atomicity is top priority

In applications like hotel / movie ticket booking - Several users simultaneously read and write the data.

To prevent data inconsistency, such as the double booking of hotel rooms, we must coordinate such transactions.

Transactional access to the data in a relational database manages concurrency.

A transaction is regarded as an atomic operation, making it possible to roll back or commit a transaction after a successful execution in error handling.

To facilitate this feature we need Relational Dbs .

Scenario 4: Cost associated

If we are allotted a very less budget for the project, go for open source NO Sql db as many NoSQL databases are open source and freely available..

While with Relational DBs, these are not open source usually n we need to purchase the License for it.

Hibernate Interview Questions and Answers:

Spring Boot Interview Questions and Answers:

Subscriber and Follow Code Decode

#dsa #leetcode #codedecode
Рекомендации по теме
Комментарии
Автор

Really like the difference you explained between Key-Value DB and Document DB.

I am 11 years experienced Senior Fullstack engineer. I have System Design interview in an hour at USA product based company and got this notification. Its a good quick revision for me.

ShreyasBalar
Автор

Happy to see you are taking this channel to the next level . extending your helping hands . great work . Thank you so much.

bv
Автор

Nice explanation, please do continue to cover more topics in system design😊

Since your way to explain things is very nice and clear the each concept so I would like to request you to whichever topic you pick please cover the all subtopic don't wait or ask to cover it for example if you take java 7 then consider all topic of java7 similarly for other as well like system design, db etc. 😊

sotsebd
Автор

Excellent content on this play list... System Design, LB, Databases... thanks for this and please continue to educate with your knowledge

dilipkg
Автор

I don't know how much you earn from YouTube, but i pray for your success. Your videos helped me a lot in recent days. Thanks a lot ❤

chandrakantamirdha
Автор

Very nice and helpful video on db, too much informative. Thanks for such a detailed video. One request, could you please try to create a video on Docker? What is it and how to create a Docker file etc.

vishaldhamde
Автор

Please do a video on partition and sharding..your videos are awesome ..!!

jitsarkar
Автор

Please cover all the topics which you mentioned in the end of video

paridhikhare
Автор

Amazing explanation madam. You are working in which company?

vaibhavgarg
Автор

Hi Ma'am
This was great explanation. Just wanted to know, can we get this pdf also, it is very organized.

SB-jinj
Автор

Can you also please create a video on difference between relational db like SQL, MySQL, Oracle

bhavanadurga
Автор

Can you please upload angular interview questions

rohitbhujbal