You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proposal:
Extend the blocking API to allow writing a batch of already-aggregated line protocol records.
Current behavior:
The blocking API only accepts individual points, or points already converted to records. The implemented functions then go on to do the conversion and aggregation to create a batch.
Desired behavior:
To write a batch that I've created myself.
Use case:
I'm continuing my attempt to use this package in a context where I can't tolerate lost data due to the server being inaccessible.
The non-blocking API has a variety of problems raised in other issues, but the showstopper is that it will drop data without allowing the application to recover the data; e.g. in this path but also in a shutdown situation.
The documentation of WriteAPIBlocking notes that it should be used when:
there is a need to have explicit control of failed batches.
The problem in my situation is that WriteAPIBlocking accepts only on individual points or line-protocol records (possibly in a slice, but still separated). In my application, if I need to persist unwritten points the natural encoding is newline-separated (or terminated) line protocol records in a byte sequence. However, when I read that back off disk and prepare to resend it the current API requires me to split it into individual records at the newline, so that WriteRecord can then add the newlines back and aggregate it again.
This is cumbersome, but trivially avoided by extending the API to allow writing a batch.
The text was updated successfully, but these errors were encountered:
Proposal:
Extend the blocking API to allow writing a batch of already-aggregated line protocol records.
Current behavior:
The blocking API only accepts individual points, or points already converted to records. The implemented functions then go on to do the conversion and aggregation to create a batch.
Desired behavior:
To write a batch that I've created myself.
Use case:
I'm continuing my attempt to use this package in a context where I can't tolerate lost data due to the server being inaccessible.
The non-blocking API has a variety of problems raised in other issues, but the showstopper is that it will drop data without allowing the application to recover the data; e.g. in this path but also in a shutdown situation.
The documentation of WriteAPIBlocking notes that it should be used when:
The problem in my situation is that
WriteAPIBlocking
accepts only on individual points or line-protocol records (possibly in a slice, but still separated). In my application, if I need to persist unwritten points the natural encoding is newline-separated (or terminated) line protocol records in a byte sequence. However, when I read that back off disk and prepare to resend it the current API requires me to split it into individual records at the newline, so that WriteRecord can then add the newlines back and aggregate it again.This is cumbersome, but trivially avoided by extending the API to allow writing a batch.
The text was updated successfully, but these errors were encountered: