The Consumer and the Producer
- A consumer is an entity that takes information from a source.
- A producer is an entity that sources this information.
A client can still produce and consume.
This means that the client can both consume and produce data (usually from a database).
Embedded Device as a Data Source
The embedded device (STM32 with ESP32) typically acts as a data source, periodically sending data to the could via POST requests.
It's usually responsible for collecting sensor readings or status information, then posting this data to a RESTful API endpoint hosted in the could.
Web or Mobile Client as Data Consumer
In parallel, a different client, like a web or mobile application, retrieves the data from the could.
It uses GET request to pull the latest or historical data, which it can display on a dashboard.
This client often has features like data visualization, user alerts, and real-time monitoring.
This image was sourced from What is a Web Server? | Types of Web Servers | InforamtionQ.com