ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Database Replication and Single Point Of Failure | Pratiksha Bakrola

Автор: Pratiksha Bakrola

Загружено: 2022-04-24

Просмотров: 6183

Описание: #SystemDesign #SystemDesignInterview #DatabaseReplication #SPOF #SinglePointOfFailure #SDE #SDEInterviewPrep
Connect with me on Facebook :   / pratikshabakrola  
Subscribe to my channel:    / @pratikshabakrola  
Connect with me 1-1: https://topmate.io/pratikshabakrola

In this video, I am going to answer these three questions:
1) What is SPOF- Single point of failure ?
2) What is Database Replication ?
3) How to use database replication to avoid SPOF and improve your system availability?
If you want to learn these things, keep watching.
In the last video we created this design, and learned what is vertical and horizontal scaling and how to improve your web tier. If you haven’t watched that video, I encourage you to watch that as well.
Let’s dive in to our question number one.
So, what Single Point of Failure? When one component of the system fails and as a results, the entire system stops working , that is called SPOF.
Let’s use this design and to find single point of failure. Load balancer is the first component. If that fails, can your request successfully process? The answer is NO. So load balancer is a SPOF.
Now, let’s evaluate other components.
If your web server1 fails, can your request successfully process? The answer is yes. Your request will get routed to web server 2 and then to the database.
If your web server 2 fails, your request can successfully process using web server 1.
If your database fails, can your request process successfully ? The answer is no. In this design, your database is also SPOF.
Now, let’s answer the second question:
What is database replication? Database Replication is the process of copying data from one database to one or more databases.
Moving on to question number 3:
How to use database replication to avoid SPOF and improve system availability?
As you can see, you only have one database.if your database goes down, your entire system goes down. What we want to do is to have two database. One is Master Database and second is slave database. Only Master database supports write operations like Insert, update and delete commands. Copy of the updated data will be sent to slave database which supports only read operations.
This instantly improves performance because now we have two database and we can process more queries in parallel. This also failover and redundancy. If one database fails, your system can still function fine using the second database. So, your database is no longer a SOPF. If your master database fails, the slave database will be temporarily promoted to serve as master. If your slave database fails, your read operations will be temporarily directed to master database.
In any system, the need to read the data is much higher than to write or update the data. So if your user base is growing you can add more slave databases.
Now let’s say your servers are located in Japan
And you have two people accessing your website. One person is in Japan where the serves are located and another person is 10K km away in Germany. Will your website load equally fast for both these users? I will give you a moment to put your answer in the comments below. And don’t forger to to hit the notifications bell because in the next video will learn how to improve response time using ache and CDN- Content delivery network.

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Database Replication and Single Point Of Failure | Pratiksha Bakrola

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Проектирование системы: горизонтальное и вертикальное масштабирование: плюсы и минусы | Пратикша ...

Проектирование системы: горизонтальное и вертикальное масштабирование: плюсы и минусы | Пратикша ...

System Design was HARD until I Learned these 30 Concepts

System Design was HARD until I Learned these 30 Concepts

Репликация базы данных без лидера

Репликация базы данных без лидера

Facebook System Design- how to design social media- Instagram , TikTok system design

Facebook System Design- how to design social media- Instagram , TikTok system design

Database Replication Explained (in 5 Minutes)

Database Replication Explained (in 5 Minutes)

How to Ace a System Design Interview(From Amazon TPM)

How to Ace a System Design Interview(From Amazon TPM)

System Design Interviews

System Design Interviews

Стратегии распределенного консенсуса и репликации данных на сервере

Стратегии распределенного консенсуса и репликации данных на сервере

7 стратегий, которые необходимо знать для масштабирования базы данных

7 стратегий, которые необходимо знать для масштабирования базы данных

What is SPOF or Single Point of Failure?

What is SPOF or Single Point of Failure?

Концепции дизайна системы веб-сканеров, о которых никто не говорит

Концепции дизайна системы веб-сканеров, о которых никто не говорит

Cache Systems Every Developer Should Know

Cache Systems Every Developer Should Know

Single Point of Failure: The (Fictional) Day Google Forgot To Check Passwords

Single Point of Failure: The (Fictional) Day Google Forgot To Check Passwords

TPM от Amazon: руководство по собеседованию на должность системного проектировщика

TPM от Amazon: руководство по собеседованию на должность системного проектировщика

Запрет и учёт: как выглядит административная дисфункция

Запрет и учёт: как выглядит административная дисфункция

Как избежать единой точки отказа в распределенных системах ✅

Как избежать единой точки отказа в распределенных системах ✅

Deep House Mix 2024 | Deep House, Vocal House, Nu Disco, Chillout Mix by Diamond #3

Deep House Mix 2024 | Deep House, Vocal House, Nu Disco, Chillout Mix by Diamond #3

Объяснение репликации баз данных | Основы подготовки к собеседованию по проектированию систем

Объяснение репликации баз данных | Основы подготовки к собеседованию по проектированию систем

Sade - Ultimate

Sade - Ultimate

Интервью по проектированию системы Google: Design Spotify (с бывшим менеджером по маркетингу Google)

Интервью по проектированию системы Google: Design Spotify (с бывшим менеджером по маркетингу Google)

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]