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

Limiting and controlling a write queue

Open 2mik opened this issue 1 year ago • 2 comments

Proposal: According to the docs, WriteApi supports batching. If I understand correctly, there is something like an internal queue to send data to server in batches. An application is actively writes data, but I cannot control from my code if sending is fast enough and data are not infinitely collected in memory. It would be very useful to control the current size of the queue and set it's max size.

Current behavior: Cannot find how to control and limit writing to DB server.

Desired behavior: Be able to setup and control how data is written.

Alternatives considered: Without the requested function, I have to implement my own queue and add new data by WriteApiAsync.

Use case: Industrial monitoring systems generate a lot of data (we develop SCADA). And it's important to clearly understand if our service is able to send all data or not, and avoid using too much memory. Thank you for your work.

2mik avatar Mar 05 '23 14:03 2mik