Coder Social home page Coder Social logo

webthing-cpp's People

Contributors

bw-hro avatar

Stargazers

 avatar

Watchers

 avatar

webthing-cpp's Issues

double properties will not be updated when json input is provided as integer

Some http clients automatically transform json request body like {"myDoubleProperty":123.0} to {"myDoubleProperty":123} which conforms to the json standard but makes type checking for C++ harder.

Webthing-CPP should support both input variants for double properties. At the moment it responds with 400 - value type not matching.

Add config options to limit number of stored events and actions

At the moment all emitted events as well as requested actions will be saved in memory. For long running applications with limited resources this could become a problem.

Possible attempts:

  • limit number of actions/events that will be stored.
  • limit duration how long to keep objects in memory (e.g. 1hour, 1day, 1week, ...)
  • limit memory used e.g. 256MB

when limit is reached

  • Oldest element will be removed to store new one. (like rolling appenders known from logging)
  • removed objects could be persisted as backup. e.g. in a text file, sqlite db, ...

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.