pgcat
pgjdbc
pgcat | pgjdbc | |
---|---|---|
9 | 2 | |
1,511 | 8 | |
- | - | |
9.6 | 3.5 | |
about 1 year ago | 3 days ago | |
Rust | Java | |
MIT License | BSD 2-clause "Simplified" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pgcat
-
PostgreSQL with PGBouncer
You should check out https://github.com/levkk/pgcat
-
pgcat: a PostgreSQL pooler
I created a pool called "yugabyte" (pools.yugabyte), with pool mode 'session', so that a session remains connected to a backend. I created a pool of servers in pools.yugabyte.shards.0 (yugabyte shards pool 0), with all three of the YSQL nodes in the YugabyteDB cluster, and gave one the role of "primary" and the two others the role of "replica". For YugabyteDB YSQL this does not make sense. Currently, pgcat allows to have the roles to be all "replica", but not have more than one "primary".
-
Postgres Connection Pooling and Proxies
pgcat is pgbouncer rewritten in Rust with support for load balancing between replicas, failover in case a replica fails a health check, and sharding at the pooler level.
- pgcat - PgBouncer rewritten in Rust, with sharding, load balancing and failover support.
- Show HN: PgCat, Postgres pooler with sharding, load balancing and failover
-
Hacker News top posts: Feb 9, 2022
Show HN: PgCat, Postgres pooler with sharding, load balancing and failover\ (38 comments)
-
PgCat: Postgres pooler with sharding, load balancing and failover support
This is actually pretty amazing. I wouldn't normally trust a single author implemented project to sit between my application and my database, since that is a rather critical single point of failure. However, a grep that fails to find `unsafe` in a rust code base lets me know that this code is in fact pretty safe[1]. I don't need to trust the author, as much as I trust the Rust core team, and LLVM.
Since I can see basic functionality exercised in the test suites, and trust that Rust has validated its more general correctness, this gives me more confidence in your project than I would historically expect to be able to gather in such a short amount of time.
1: https://github.com/levkk/pgcat/search?q=unsafe
pgjdbc
-
pgcat: a PostgreSQL pooler
Of course an external connection pool like this should only be used if you cannot use an application connection pool, and for the use of YugabyteDB, if you can use a YugabyteDB driver, such as our java jdbc driver, it's highly recommended to do so!
-
YugabyteDB JDBC Smart Driver for proxyless HA/LB
wget -qc -O postgresql-jdbc.jar https://github.com/yugabyte/pgjdbc/releases/download/v1.0.0/jdbc-yugabytedb-42.3.0.jar export CLASSPATH=.:./postgresql-jdbc.jar
What are some alternatives?
pgbouncer - lightweight connection pooler for PostgreSQL
odyssey - Scalable PostgreSQL connection pooler
jdbc-yugabytedb - JDBC Driver for Yugabyte SQL (YSQL)
cloudpilot-emu - A PalmOS emulator for the web
PostgreSQL - Mirror of the official PostgreSQL GIT repository. Note that this is just a *mirror* - we don't work with pull requests on github. To contribute, please see https://wiki.postgresql.org/wiki/Submitting_a_Patch
pgcat - Enhanced PostgreSQL logical replication
Cargo - The Rust package manager
pgbouncer_exporter - Prometheus exporter for PgBouncer
yugabyte-db - YugabyteDB - the cloud native distributed SQL database for mission-critical applications.