Playback starts YouTube’s embedded player (privacy-enhanced mode).
How to avoid a single point of failure in distributed systems
ChannelGaurav SenDescription from the creator
A single point of failure(SPOF) in computing is a critical point in the system whose failure can take down the entire system. A lot of resources and time is spent on removing single points of failure in an architecture/design.
Single points of failure often pop up when setting up coordinators and proxies. These services help distribute load and discover services as they come and leave the system. Because of the critical centralized tasks of these services, they are more prone to being SPOFs.
One way to mitigate the problem is to use multiple instances of every component in the service. The graph of dependencies then becomes more flexible, allowing the system to resiliently switch to another service instead of failing requests.
Another approach is to have backups which allow a quick switch over on failure. The backups are useful in components dealing with data, like databases.
Allocating more resources, distributing the system and replication are some ways of mitigating the problem of SPOF. Hence designs include horizontal scaling capabilities and partitioning.
It is important to note that the CAP theorem does not allow removing SPOFs if perfect consistency is required.
Looking to ace your next interview? Try this System Design video course! 🔥
get.interviewready.io
Course chapters:
1) Design an email service like Gmail
2) Design a rate limiter
3) Design an audio search engine
4) Design a calling app like WhatsApp
5) Design and code a payment tracking app like Splitwise
6) Machine coding a cache
7) Low level design of an event bus
The chapters have architectural diagrams and capacity estimates, along with subtitled videos. Use the coupon code of 'earlybird' to get a 20% discount.
References:
docs.oracle.com/cd/E19693-01/819-0992/fjdch/ind…
stackoverflow.com/questions/7943211/web-app-hig…
ieeexplore.ieee.org/document/6214760/
spkaa.com/blog/how-to-deal-with-single-points-o…
en.wikipedia.org/wiki/Single_point_of_failure
Single points of failure often pop up when setting up coordinators and proxies. These services help distribute load and discover services as they come and leave the system. Because of the critical centralized tasks of these services, they are more prone to being SPOFs.
One way to mitigate the problem is to use multiple instances of every component in the service. The graph of dependencies then becomes more flexible, allowing the system to resiliently switch to another service instead of failing requests.
Another approach is to have backups which allow a quick switch over on failure. The backups are useful in components dealing with data, like databases.
Allocating more resources, distributing the system and replication are some ways of mitigating the problem of SPOF. Hence designs include horizontal scaling capabilities and partitioning.
It is important to note that the CAP theorem does not allow removing SPOFs if perfect consistency is required.
Looking to ace your next interview? Try this System Design video course! 🔥
get.interviewready.io
Course chapters:
1) Design an email service like Gmail
2) Design a rate limiter
3) Design an audio search engine
4) Design a calling app like WhatsApp
5) Design and code a payment tracking app like Splitwise
6) Machine coding a cache
7) Low level design of an event bus
The chapters have architectural diagrams and capacity estimates, along with subtitled videos. Use the coupon code of 'earlybird' to get a 20% discount.
References:
docs.oracle.com/cd/E19693-01/819-0992/fjdch/ind…
stackoverflow.com/questions/7943211/web-app-hig…
ieeexplore.ieee.org/document/6214760/
spkaa.com/blog/how-to-deal-with-single-points-o…
en.wikipedia.org/wiki/Single_point_of_failure
About this tutorial
Gaurav Sen published this 6:34 video tutorial on November 6, 2018. It has been watched 243,352 times on YouTube.
- Channel
- Gaurav Sen
- Category
- Education
- Duration
- 6:34
- Published
- November 6, 2018
- Views
- 243,352
- Likes
- 4,749
Tags
Share
This tutorial in other languages
- FRComment éviter un point de défaillance dans les systèmes distribués
- ES¿Cómo evitar un único punto de fallo en los sistemas distribuidos
- PTComo evitar um ponto único de falha em sistemas distribuídos
- ITCome evitare un singolo punto di errore nei sistemi distribuiti
- DEWie man einen Single Point of Failure in verteilten Systemen vermeiden
- NLHoe maak je een single point of failure in gedistribueerde systemen te vermijden
- RUКак избежать единой точки отказа в распределенных системах
- PLJak uniknąć pojedynczego punktu awarii w systemach rozproszonych
- JA分散システムにおける単一障害点を回避する方法
- ARكيفية تجنب نقطة واحدة من الفشل في النظم الموزعة
- HIवितरण प्रणाली में विफलता का एक बिंदु से बचने के लिए कैसे
- IDBagaimana menghindari titik tunggal kegagalan dalam sistem terdistribusi