ycliper

Популярное

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

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

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

Топ запросов

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

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

Автор: Jordan has no life

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

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

Описание: 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.

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Two Phase Commit - Distributed Transactions | Systems Design Interview 0 to 1 with Ex-Google SWE

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

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

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

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

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

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

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

Why Thomas Tuchel Is PERFECT For England

Why Thomas Tuchel Is PERFECT For England

Microservices Architecture Patterns | 2 Phase Commit Design Pattern | Distributed Transaction

Microservices Architecture Patterns | 2 Phase Commit Design Pattern | Distributed Transaction

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

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

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

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

Anthropic's Opus 4.6 and OpenAI's Codex: New AI Models Compete

Anthropic's Opus 4.6 and OpenAI's Codex: New AI Models Compete

Saga Pattern | Distributed Transactions | Microservices

Saga Pattern | Distributed Transactions | Microservices

Do you know Distributed transactions?

Do you know Distributed transactions?

Distributed Transactions | 2 Phase Commit (2PC), 3 Phase Commit (3PC), Saga Pattern | System Design

Distributed Transactions | 2 Phase Commit (2PC), 3 Phase Commit (3PC), Saga Pattern | System Design

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

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

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

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

GeoSpatial Indexes - Why You Need Them | Systems Design Interview 0 to 1 with Ex-Google SWE

GeoSpatial Indexes - Why You Need Them | 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

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

Distributed Transactions: Two-Phase Commit Protocol

Distributed Transactions: Two-Phase Commit Protocol

CI/CD — Простым языком на понятном примере

CI/CD — Простым языком на понятном примере

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

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

Объяснение шаблона дизайна SAGA за 6 МИНУТ | Оркестровка против хореографии

Объяснение шаблона дизайна SAGA за 6 МИНУТ | Оркестровка против хореографии

Создайте надежный платежный сервис с использованием ключей идемпотентности

Создайте надежный платежный сервис с использованием ключей идемпотентности

Implementing Distributed Transactions using Two Phase Commit Protocol

Implementing Distributed Transactions using Two Phase Commit Protocol

Что такое шаблон транзакционных исходящих сообщений? | Проектирование микросервисов, управляемых ...

Что такое шаблон транзакционных исходящих сообщений? | Проектирование микросервисов, управляемых ...

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



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



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