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
- Unit 1: Introduction to Batching Commands with Pipelines
- Running a Redis Commands in a Pipeline
- Add a Decrement Operation to the Redis Pipeline
- Debugging Redis Pipeline
- Batch Multiple Commands Using Redis Pipelines
- Batching Commands with Redis Pipelines
- Batch Setting Keys with Redis Pipelines
- Unit 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
- Unit 3: 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