-
Notifications
You must be signed in to change notification settings - Fork 95
Questions with regards to lifetimes #105
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Hi @CumpsD,
Yes
It depends on your use-case. The Otherwise you could dispose a client on every write. Currently we have in review a new Regards |
Thanks! What happens to I found influxdb-client-csharp/Client/WriteApi.cs Lines 194 to 198 in b6b8e97
Does it rebuilt itself and retry on exception? Or is there a way to? That seems to be the only concern I have with keeping |
It depends on type of error:
|
Thanks @bednar! I see now, the exception bit I linked is really for unhandled exceptions in the WriteApi, not for the stuff you deal with like the non retryable errors. |
A few questions with regards to best practices for object lifetimes.
Is the client created by
InfluxDBClientFactory
safe to be registered as a Singleton for the lifetime of the application?Is the WriteApi created by
GetWriteApi
intended to be created and disposed on every write?What I'm playing with now:
The text was updated successfully, but these errors were encountered: