Throttling

When handling an input that sends data at a high rate (e.g. 1 time per second), it can be useful to "throttle" the inputs to avoid reporting each and every value.

This section uses the example of throttling the value of the light sensor included with the mangOH Red, to illustrate how periodically report the value every 10 seconds. By keeping the sensor period at 1 second, you can handle some Edge processes to run fast, but only send the data to the cloud at a slower rate.

Note that in this configuration, once the Observation has reported a value, any update on the Resource within the Throttling period will be dropped. In some cases it may be useful to also configure a buffer, function, and/or filter in addition to throttling, as described in the previous sections.

  1. Edit the Observation configured in the previous sections.
  2. Enable Throttle events.
  3. Enter 10 into Period. This specifies the time, in seconds, at which the current value from the light sensor will be reported.
  4. Click Save to complete the modification to the Observation.

🚧

Throttling filters and may drop incoming events

Throttling always assumes your underlying Resource is updated at a given period, and it will drop any update which happens more often than the Throttling Period.