damccull / ravendb_client

2 stars 0 forks source link

Update stored server URLs based on retrieved topology information #4

Closed damccull closed 2 years ago

damccull commented 2 years ago

RavenDB can be run in clusters. In this case a single URL will not do, but forcing the user to create a list of URLs for an entire cluster could be a problem. If the client library can infer the cluster URLs from the topology data, it can be periodically updated.

damccull commented 2 years ago

The client now watches for the server to send a response header of "Refresh-Topology" set to true and, if it sees this, will spin off a new tokio spawn task to update the topology.