# Monitoring and Controlling Networks of IoT Devices with Flink Stateful Functions

DevFeed: [Monitoring and Controlling Networks of IoT Devices with Flink Stateful Functions](<https://devfeed.tech/articles/monitoring-and-controlling-networks-of-iot-devices-with-flink-stateful-functions-48383.md>)

Original publisher: [Read original article](<https://flink.apache.org/2020/08/18/monitoring-and-controlling-networks-of-iot-devices-with-flink-stateful-functions/>)

Published: 2020-08-18T08:00:00Z

Content type: tutorial

Language: en

Sources: [Apache Flink® -- Stateful Computations over Data Streams on Apache Flink](<https://devfeed.tech/sources/apache-flink-stateful-computations-over-data-streams-on-apache-flink.md>)

Topics: [flink](<https://devfeed.tech/topics/flink.md>), [Stateful](<https://devfeed.tech/topics/stateful.md>), [Monitoring](<https://devfeed.tech/topics/monitoring.md>), [Internet of things](<https://devfeed.tech/topics/iot.md>), [Networks](<https://devfeed.tech/topics/networks.md>), [Grafana](<https://devfeed.tech/topics/grafana.md>)

Tags: [devices](<https://devfeed.tech/tags/devices.md>), [flink](<https://devfeed.tech/tags/flink.md>), [iot](<https://devfeed.tech/tags/iot.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [networks](<https://devfeed.tech/tags/networks.md>), [stateful](<https://devfeed.tech/tags/stateful.md>)

## AI overview

This technical blog post explains how Flink Stateful Functions can monitor and control networks of connected IoT devices. It describes aggregating device state through distributed logic and digital twins, then applies the approach to data center monitoring and alert correlation.

## Source excerpt

In this blog post, we'll take a look at a class of use cases that is a natural fit for Flink Stateful Functions: monitoring and controlling networks of connected devices (often called the "Internet of Things" (IoT)). IoT networks are composed of many individual, but interconnected components, which makes getting some kind of high-level insight into the status, problems, or optimization opportunities in these networks not trivial. Each individual device "sees" only its own state, which means that the status of groups of devices, or even the network as a whole, is often a complex aggregation of the individual devices' state.