Implementing Distributed Transactions using Two Phase Commit Protocol

Опубликовано: 29 Март 2022
на канале: Arpit Bhayani
20,981
586

System Design for SDE-2 and above: https://arpitbhayani.me/masterclass
System Design for Beginners: https://arpitbhayani.me/sys-design
Redis Internals: https://arpitbhayani.me/redis

Build Your Own Redis / DNS / BitTorrent / SQLite - with CodeCrafters.
Sign up and get 40% off - https://app.codecrafters.io/join?via=...

In the previous video, I explained the theoretical aspects of a distributed transaction using a two-phase commit protocol. In this video, I implemented the protocol locally using Zometro's 10-minute food delivery scenario. I detailed the components needed, database schema understanding, and how the two-phase commit protocol ensures atomicity. By splitting the process into preparation and commitment phases, we achieved atomic transactions. The key focus was on user experience and avoiding resource contention in a distributed setup. The architecture involved order, store, and delivery services communicating to ensure seamless transactional experiences.

Recommended videos and playlists

If you liked this video, you will find the following videos and playlists helpful

System Design:    • PostgreSQL connection management and ...  
Designing Microservices:    • Advantages of adopting a microservice...  
Database Engineering:    • How nested loop, hash, and merge join...  
Concurrency In-depth:    • How to write efficient and fair multi...  
Research paper dissections:    • The Google File System - Paper Explained  
Outage Dissections:    • Dissecting GitHub Outage and things t...  

Hash Table Internals:    • Internal Structure of a Hash Table  
Bittorrent Internals:    • Introduction to BitTorrent and the pr...  

Things you will find amusing

Knowledge Base: https://arpitbhayani.me/knowledge-base
Bookshelf: https://arpitbhayani.me/bookshelf
Papershelf: https://arpitbhayani.me/papershelf

Other socials

I keep writing and sharing my practical experience and learnings every day, so if you resonate then follow along. I keep it no fluff.

LinkedIn:   / arpitbhayani  
Twitter:   / arpit_bhayani  
Weekly Newsletter: https://arpit.substack.com

Thank you for watching and supporting! it means a ton.

I am on a mission to bring out the best engineering stories from around the world and make you all fall in
love with engineering. If you resonate with this then follow along, I always keep it no-fluff.


На этой странице сайта вы можете посмотреть видео онлайн Implementing Distributed Transactions using Two Phase Commit Protocol длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Arpit Bhayani 29 Март 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 20,981 раз и оно понравилось 586 зрителям. Приятного просмотра!