RUVIDEO
Поделитесь видео 🙏

Implementing Distributed Transactions using Two Phase Commit Protocol

System Design for Beginners: https://arpitbhayani.me/sys-design
System Design for Experienced Engineers: https://arpitbhayani.me/masterclass
Become a member for exclusive in-depth videos: https://www.youtube.com/c/ArpitBhayani/join
Redis Internals: https://arpitbhayani.me/redis

Previously, we built a theoretical foundation of Distributed Transaction using the Two-Phase Commit protocol. In this video, we implement the Distributed Transaction locally and mimic the food delivery system locally. While implementing we understand how to make the individual operations atomic and the entire distributed transaction atomic. We address resource contention while guaranteeing a consistent user experience.

Outline:

00:00 Revising the Two-Phase Commit
07:35 Designing Database Schema
11:40 Defining API Endpoints
12:24 High-Level Architecture and Request Flow
19:55 No inconsistent data - Atomicity
24:14 Code walkthrough

# Arpit's System Design Masterclass

I teach an 8-week cohort-based course on System Design - a masterclass that helps you become great at designing scalable, fault-tolerant, and highly available systems.

The program will have a blend of Live Classes happening on weekends, 1:1 Mentorship sessions happening on weekdays. The program is designed to be intense and crisp to accelerate overall learning.

You can find more details about the program at https://arpitbhayani.me/masterclass.

### Subscribe to my free newsletter

? Once a week, in your inbox, an essay about programming languages internals, a deep dive on some super-clever algorithm, or just a few tips on building highly scalable distributed systems.

https://arpitbhayani.me/newsletter

### Follow me on other social platforms

Github: https://github.com/arpitbbhayani
LinkedIn: https://linkedin.com/in/arpitbhayani
Twitter: https://twitter.com/arpit_bhayani

### Relevant Video

https://www.youtube.com/watch?v=7FgU1D4EnpQ


### Things I use to make these videos

Apple iPad Pro 12.9 Inch: https://amzn.to/3jb4keI
Apple Pencil 2nd Generation: https://amzn.to/3DJ1Gq8
Boat Airdopes 621: https://amzn.to/3DIqGO6
GoodNotes Notetaking App: https://www.goodnotes.com/

Stay Awesome,
Arpit
#AsliEngineering

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Implementing Distributed Transactions using Two Phase Commit Protocol», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.