Snapchat / KeyDB

A Multithreaded Fork of Redis
https://keydb.dev
BSD 3-Clause "New" or "Revised" License
11.34k stars 572 forks source link

a new dedicated workqueue only for async write commit, and block clients while committing changes #741

Open yzhao244 opened 10 months ago

yzhao244 commented 10 months ago

Based on Ankita's initial async commit code, this PR contains a few new enhancements are introduced in this MR. Please review to see if the implementation makes sense

  1. a new dedicated writeworkqueue only for async write commit
  2. block clients while committing writes in background thread
yzhao244 commented 10 months ago

@JohnSully Hi John, this PR is like a continuation of async commit which includes a specific workqueue for async commit and client blocks. @paulmchen