influxdb-client-csharp
influxdb-client-csharp copied to clipboard
Best practices regarding object lifetimes (InfluxDBClient, WriteApi)
// tried feature request and it didn't work, I swear!
Proposal: Line out best practices in the documentation how to efficiently write to InfluxDB using the C# SDK
Current behavior: I'm uncertain which object to keep as a singleton and which ones to keep transient. Currently I am holding on to my InfluxDBClient instance and create a new WriteApi instance every single time I need to write a new measurement.
Desired behavior: Explanation how to be efficient.