Популярное

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

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

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

Топ запросов

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

Two Phase Commit - Distributed Transactions | Systems Design Interview 0 to 1 with Ex-Google SWE

Автор: Jordan has no life

Загружено: 2023-05-21

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

Описание:

Anyone in the 3% of my viewership looking for me to two phase commit to them?

Thanks @Cricket for bringing this up. I'll add this here since I think this is cool.

It's also worth mentioning three phase commit. In a three phase commit, instead of just sending messages to our participant nodes twice, we add a middle stage called "prepare to commit" which the coordinator sends out after all the participants respond "OK" in the prepare stage. Now, if the coordinator goes down in the last stage of 3PC, the participant nodes can query one another and see that at least one node had "prepare to commit" status, meaning that they should all commit the transaction. If they decide together (probably requires distributed consensus) that none of them had "prepared to commit" status, they can then abort the transaction. Now, in the event that a coordinator node goes down, we can actually recover. Note that if a participant goes down, we still need to keep trying to write to it forever.

Saga commits seem to be a bit of a different thing, and the concept is more so that instead of attempting to write to many nodes at once, write them one at a time, and if some of the writes fail, attempt to perform a separate "compensating transaction" in order to revert that write and bring the database back to its old state. Obviously here you run the risk of that revert failing.

Two Phase Commit - Distributed Transactions | Systems Design Interview 0 to 1 with Ex-Google SWE

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

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

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

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

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

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

Consistent Hashing - Rebalancing Partitions | Systems Design Interview 0 to 1 with Ex-Google SWE

Consistent Hashing - Rebalancing Partitions | Systems Design Interview 0 to 1 with Ex-Google SWE

Распределенные транзакции / Что выбрать? Saga или 2pc? / Как подружить микросервисы

Распределенные транзакции / Что выбрать? Saga или 2pc? / Как подружить микросервисы

Распределенные транзакции сложны (как работает двухфазная фиксация)

Распределенные транзакции сложны (как работает двухфазная фиксация)

Do you know Distributed transactions?

Do you know Distributed transactions?

SQL против NoSQL: война окончена

SQL против NoSQL: война окончена

Distributed Transactions: Two-Phase Commit Protocol

Distributed Transactions: Two-Phase Commit Protocol

SQL vs NoSQL - Who Wins? | Systems Design Interview 0 to 1 with Ex-Google SWE

SQL vs NoSQL - Who Wins? | Systems Design Interview 0 to 1 with Ex-Google SWE

Распределенные системы 7.1: Двухфазная фиксация

Распределенные системы 7.1: Двухфазная фиксация

What's Stream Processing + When Do We Use It?  | Systems Design Interview 0 to 1 with Ex-Google SWE

What's Stream Processing + When Do We Use It? | Systems Design Interview 0 to 1 with Ex-Google SWE

Сисадмины больше не нужны? Gemini настраивает Linux сервер и устанавливает cтек N8N. ЭТО ЗАКОННО?

Сисадмины больше не нужны? Gemini настраивает Linux сервер и устанавливает cтек N8N. ЭТО ЗАКОННО?

Шаблон «Исходящие»: устранение сбоев событий в архитектуре, управляемой событиями

Шаблон «Исходящие»: устранение сбоев событий в архитектуре, управляемой событиями

The Windows 11 Disaster That's Killing Microsoft

The Windows 11 Disaster That's Killing Microsoft

Saga Pattern | Distributed Transactions | Microservices

Saga Pattern | Distributed Transactions | Microservices

Google Gemini — это новая Siri. Что это значит для владельцев техники Apple? Техно новости недели

Google Gemini — это новая Siri. Что это значит для владельцев техники Apple? Техно новости недели

Введение в разбиение | Собеседование по системному проектированию от 0 до 1 с бывшим инженером-ра...

Введение в разбиение | Собеседование по системному проектированию от 0 до 1 с бывшим инженером-ра...

Kubernetes — Простым Языком на Понятном Примере

Kubernetes — Простым Языком на Понятном Примере

Как ПРАВИЛЬНО выполнять распределённые транзакции? Микросервисы

Как ПРАВИЛЬНО выполнять распределённые транзакции? Микросервисы

Как базы данных на самом деле хранят ваши данные (разъяснение B-деревьев и LSM-деревьев)

Как базы данных на самом деле хранят ваши данные (разъяснение B-деревьев и LSM-деревьев)

Implementing Distributed Transactions using Two Phase Commit Protocol

Implementing Distributed Transactions using Two Phase Commit Protocol

7: Design a Rate Limiter | Systems Design Interview Questions With Ex-Google SWE

7: Design a Rate Limiter | Systems Design Interview Questions With Ex-Google SWE

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



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



Контакты для правообладателей: infodtube@gmail.com