This course covers Redis's features for executing atomic operations using transactions and pipelines. Learn how to build transactions, implement watch and unwatch, improve efficiency with pipelines, and handle errors in transactions.
Overview
Syllabus
- Lesson 1: Introduction to Batching Commands with Pipelines
- Running a Redis Transaction with Pipelines
- Add a Decrement Operation to the Redis Pipeline
- Debugging Redis Pipeline for Transaction Integrity
- Batch Multiple Commands Using Redis Pipelines
- Batching Commands with Redis Pipelines
- Batch Setting Keys with Redis Pipelines
- Lesson 2: Introduction to Watch in Redis Using JavaScript
- Run the Redis `watch` Command Example
- Using Redis Watch Command for Consistent Score Updates
- Updating Balance with Multiple User IDs
- Updating Post Likes with Redis Watch
- Updating User Points with Redis Watch Command
- Lesson 3: Transitioning to Unwatch in Redis Using JavaScript
- Concurrent Key Updates with Redis Transactions
- Prevent Balance from Exceeding Maximum Limit
- Enhancing Transaction with Balance Limits
- Enhancing Transaction Control with Redis Unwatch
- Updating Player Points with Redis Transactions
- Lesson 4: Overview of Redis Lua Scripting for Transactions
- Running a Lua Script in Redis with Node.js
- Changing Lua Script to Decrement a Redis Counter
- Updating View Count with Lua Script in Redis
- Decrement Available Copies of a Book Using Lua in Redis
- Updating Player XP with Redis Lua Script
- Completing a Lua Script to Update Player Scores in Redis Using JavaScript