Transaction Retries
2022-08-05
Demos & Tutorials
Description
This is an exercise from the Cockroach University course “Getting Started with Node.js and node-postgres”. In this exercise, we will be implementing transaction retries. These retries can be an important part of building a robust system and we will learn why they are important, and how to implement them properly. 00:00 How do you retry transactions? 02:07 Creating a helper for transactions 05:49 How do we implement the retry logic? 08:18 How do we handle the specific error cases? 12:36 Creating an update statement 14:45 What is the result of our transaction? 17:01 How do we merge objects?