influxdb-client-csharp icon indicating copy to clipboard operation
influxdb-client-csharp copied to clipboard

Best practices regarding object lifetimes (InfluxDBClient, WriteApi)

Open naymore opened this issue 2 years ago • 1 comments

// 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.

naymore avatar Feb 06 '23 20:02 naymore