cuprate-hinto-janai/storage/service
Boog900 1a178381dd
Storage: split the DB service abstraction (#237)
* split the DB service abstraction

* fix ci

* misc changes

* Apply suggestions from code review

Co-authored-by: hinto-janai <hinto.janai@protonmail.com>

* review fixes

* Update storage/service/Cargo.toml

Co-authored-by: hinto-janai <hinto.janai@protonmail.com>

* Update storage/service/Cargo.toml

Co-authored-by: hinto-janai <hinto.janai@protonmail.com>

* fix clippy

* fix doc

* `bc` -> `blockchain`

* doc fixes

* Update storage/service/README.md

Co-authored-by: hinto-janai <hinto.janai@protonmail.com>

* cargo fmt

---------

Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
2024-08-05 21:47:30 +01:00
..
src Storage: split the DB service abstraction (#237) 2024-08-05 21:47:30 +01:00
Cargo.toml Storage: split the DB service abstraction (#237) 2024-08-05 21:47:30 +01:00
README.md Storage: split the DB service abstraction (#237) 2024-08-05 21:47:30 +01:00

Cuprate's tower::Service database abstraction.

This crate contains the building blocks for creating a [tower::Service] interface to cuprate_blockchain.

It is split into 2 tower::Services:

  1. A read service which is backed by a [rayon::ThreadPool]
  2. A write service which spawns a single thread to handle write requests