Skip to content

brunojppb/node-distributed-lock

Repository files navigation

Distributed Lock in NodeJS

This is a project demonstrating how you can implement distributed lock in NodeJS using:

  • Redis as a distributed store
  • xstate to manage state machines on the server-side

This project implements the high-level implementation described on the Redis manual here.

Development

Install all dependencies with:

npm install

Run the dev server:

npm run dev