Skip to content

Commit 954213e

Browse files
authored
update readme for 3.2.0 (#61)
1 parent b0f310d commit 954213e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,16 @@ using var sender = Sender.New("https::addr=localhost:9009;tls_verify=unsafe_off;
126126
using var sender = Sender.New("tcps::addr=localhost:9009;tls_verify=unsafe_off;username=admin;token=NgdiOWDoQNUP18WOnb1xkkEG5TzPYMda5SiUOvT1K0U=;");
127127
```
128128

129+
### Multiple database endpoints
130+
131+
The client can be configured with multiple `addr` entries pointing to different instances of QuestDB.
132+
133+
This is **not** for publishing data concurrently to multiple databases.
134+
135+
Rather, this allows you to configure a backup database where data will be sent to in the event the primary database is unavailable.
136+
137+
The swap happens transparently within a given `retry_timeout`, and is performed in a round-robin fashion (try the next endpoint and write if it is available). Once a new endpoint is selected, it continues to be used for the lifetime of that `Sender`.
138+
129139
## Configuration Parameters
130140

131141
These options are set either using a config string, or by initialising QuestDBOptions.

0 commit comments

Comments
 (0)