Update storage/service/README.md

Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
This commit is contained in:
Boog900 2024-08-05 16:01:47 +01:00 committed by GitHub
parent fd6712aa38
commit d4bd18ca57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,7 @@
# Cuprate's `tower::Service` database abstraction.
This crate contains the building blocks for creating a `tower::Service` interface to `cuprate_blockchain`.
This crate contains the building blocks for creating a [`tower::Service`] interface to [`cuprate_blockchain`](https://doc.cuprate.org/cuprate_blockchain).
It is split into 2 `tower::Service`s a read service which is backed by a `rayon::ThreadPool` and a write service which
spawns a single thread to handle write requests.
It is split into 2 `tower::Service`s:
1. A [read service](crate::DatabaseReadService) which is backed by a [`rayon::ThreadPool`]
1. A [write service](crate::DatabaseWriteHandle) which spawns a single thread to handle write requests