PgDog is a connection pooler, load balancer and database sharder for PostgreSQL. It's written in async Rust. It implements the PostgreSQL network protocol: applications connect to PgDog, PgDog connects to Postgres, and neither know there is a proxy in between.
Load the /rust skill. Don't follow C/C++/Go norms.