Giter Club home page Giter Club logo

Comments (3)

vlastahajek avatar vlastahajek commented on September 27, 2024

@kubaceg, write limiting is possible only in InfluxDB CLI. In fact, it controls reading rate, because conroling write could lead to buffer overflow.
So, you can control the rate by limit writes to this library.

from influxdb-client-go.

awfm9 avatar awfm9 commented on September 27, 2024

Hi @vlastahajek. A buffer overflow can easily be avoided by blocking calls to the write functions once the buffer is full. In my opinion, that's the intuitive functionality of a library such as this, and it seems like common sense to me.

from influxdb-client-go.

vlastahajek avatar vlastahajek commented on September 27, 2024

@awfm9, sure, this is the obvious way how to achieve that. As the library has two ways how to write data (sync and async), there is a couple of consequences:

  • Sync write returns an error, but the user will have to distinguish true write errors and rejected writes
  • Async write doesn't return an error

It seems to me that such a feature could be done by adding e.g. writeWithRate to both write APIs, which will return bool (and error in case of sync API), informing whether the write was accepted.

from influxdb-client-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.