fastify/fastify-rate-limit

Does redis store do atomic increments?

TarasKalynii opened this issue · 1 comments

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the issue has not already been raised

Issue

Does Redis store use atomic increments, I mean that is all operations in memory, or distributed environment use atomic increments against race conditions?

Eomm commented

Redis is a single-threaded store so it does not deal with race conditions, the increments are executed in serial.