Storage
The StorageConnection trait allows interacting with a BonsaiDb multi-database storage instance.
There are three implementations of the StorageConnection
trait:
Storage
/AsyncStorage
: A local, file-based server implementation with no networking capabilities.Server
: A networked server implementation, written usingStorage
. This server supports QUIC- and WebSocket-based protocols. The QUIC protocol is preferred, but it uses UDP which many load balancers don't support. If you're exposing BonsaiDb behind a load balancer, WebSockets may be the only option depending on your host's capabilities.AsyncClient
/BlockingClient
: A network client implementation that connects to a server.