Server

The database server provides a Postgres wire protocol compatible TCP server, implemented with the pgwire library.

This allows multiple client machines (for example, a pool of web servers) to use the database server for storing data and coordinating activity.

A notable difference from Postgres is that KantoDB's per-connection and per-query overheads are smaller (note: pending benchmark results). Postgres spawns a relatively heavy-weight process per connection; in KantoDB connections are just async contexts in Tokio, and currently live queries use a worker in a thread pool.

(Current limitations: no TLS, no UNIX domain sockets.)