khonsulabs / bonsaidb

A developer-friendly document database that grows with you, written in Rust
https://bonsaidb.io/
Apache License 2.0
998 stars 37 forks source link

Graceful shutdown should be something the Backend can control #274

Open ecton opened 1 year ago

ecton commented 1 year ago

Currently, graceful shutdowns just finish processing incoming requests and then close the server down. However, thinking of BonsaiDb as an API platform, this isn't adequate: a Backend should be able to look at each connected client's state and allow , for example, multi-request API transactions to finish before disconnecting the client.