elastic / elasticsearch-rs

Official Elasticsearch Rust Client
https://www.elastic.co/guide/en/elasticsearch/client/rust-api/current/index.html
Apache License 2.0
702 stars 72 forks source link

Add connection pools #35

Closed russcam closed 4 years ago

russcam commented 4 years ago

This commit adds a ConnectionPool trait, used to manage a pool of connections to nodes in an Elasticsearch cluster. Two implementations are included

Refactor Connection and ConnectionBuilder to introduce Transport and TransportBuilder. A transport is responsible for making requests to Elasticsearch, retrieving a connection from a connection pool to use to make the request.

Closes #7