Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Mastering Redis Transactions and Efficiency with Node.js

via CodeSignal

Overview

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.

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

Reviews

Start your review of Mastering Redis Transactions and Efficiency with Node.js

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.