questdb / go-questdb-client

Golang client for QuestDB's Influx Line Protocol
Apache License 2.0
47 stars 9 forks source link

Improve connection logic #10

Closed nightwolfz closed 8 months ago

nightwolfz commented 1 year ago

There are a few issues with the current approach:

Actually maybe it's not even a good idea to connect on NewLineSender() init, as there may be substantial delay between initialization and flushing, causing the connection to timeout (or disconnect due to any network error) before flush is even called.

puzpuzpuz commented 8 months ago

v3 shipped HTTP sender which has the automatic retry logic.