On Tue, Jul 10, 2018 at 5:05 PM, Pedro Machado <pe...@205datalab.com> wrote:
> Are there ways to reduce the footprint of these sensors so that they use
> less CPU and memory?

Sensors are basically long running I/O polling tasks. In some cases
they are sleep-based tasks. Both lands perfectly on asyncio: instead
of spawning full features OS process which runs a sensor, you need
just a single process which spawns coroutines instead and takes care
about them. This will reduce resource consumption a lot when you run
hundreds sensors. And no need to dance with retries and timeouts,
workers starvation wouldn't be a problem as well.

--
,,,^..^,,,

Reply via email to