cockroachdb_pool 1.0.1 copy "cockroachdb_pool: ^1.0.1" to clipboard
cockroachdb_pool: ^1.0.1 copied to clipboard

discontinuedreplaced by: postgres
outdated

CockroachDB connection pool with automatic cluster load balancing.

A library to control a maximized number of connections to a CockroachDB cluster server.

Features:

  • Scans nodes list (via HTTP API) periodically, automatically add/remove nodes.
  • On critical errors or elevated timeouts it marks the node as bad and uses other nodes instead.

Usage #

Once you've created the CrdbPool object, you can:

  • Use it as PostgreSQLExecutionContext (from package:postgres).
  • Use it as PgPool (from package:postgres_pool).
  • Use CrdbPool.run for non-transactional batches with optional retry.
  • Use CrdbPool.runTx for transactional batches with optional retry.
0
likes
0
pub points
0%
popularity

Publisher

verified publisheragilord.com

CockroachDB connection pool with automatic cluster load balancing.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

http, meta, postgres_pool, retry

More

Packages that depend on cockroachdb_pool