mirror of
https://github.com/Cuprate/cuprate.git
synced 2024-12-23 12:09:52 +00:00
8 lines
440 B
Markdown
8 lines
440 B
Markdown
|
# Cuprate's `tower::Service` database abstraction.
|
||
|
|
||
|
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:
|
||
|
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
|