Replies: 1 comment 5 replies
-
Like for async APIs you hardly know when something concretely happens. But with rocksdb, you are pretty sure that when a write returns, it actually is done. Also rocksddict is not async because rocksdb is not. It is an embedded db in the sense that you use its binary code directly. Not as Kafka or other DBs, which communicates through http requests. I think the reason for this basically is that KV db is designed with a different purpose in mind. It is more like the storage engine for DBs. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
Nowadays DB clients have an async version: asyncpg, aiokafka, etc...
Is there a reason for RocksDict to not be async? Is this just a design choice or there is another reason? Maybe it makes no sense?
With python
3.13 --disable-gil
we can now have a multi-core process and locking 8 CPU to read RocksDB is obviously a bad idea. I guess it can be solve by using aThreadPool
but a native async client could be great.Beta Was this translation helpful? Give feedback.
All reactions