Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best practices regarding object lifetimes (InfluxDBClient, WriteApi) #463

Open
naymore opened this issue Feb 6, 2023 · 2 comments
Open

Comments

@naymore
Copy link

naymore commented Feb 6, 2023

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

@snoopiedoom
Copy link

+1 would be greatly appreciated
In our case, we're running a client for each bucket/retention policy with custom batching, delivering the client an array of line protocol strings, works for now.

@harzus
Copy link

harzus commented Dec 18, 2024

and once you're at it, would you include also python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants