Open Source IoT
Writing an MQTT client
From MQTT to InfluxDB
REST API to InfluxDB
Creating a Mobile App
Adding an Ingress Controller
Adding Authentication to the REST API
Realtime Browser Updates
Connecting a real device
FaaS to the Rescue
This small book will be your guide to installing the following and configuring the following components:
Kubernetes: the container orchestrator that runs all servers and custom services we will write
Mosquitto: a message broker that supports MQTT
InfluxDB: a time-series database
A custom service, written in Go, that forwards messages from MQTT to InfluxDB
A custom service, written in Go, that implements a REST API to retrieve messages from InfluxDB
A mobile application, created with Ionic, that uses the REST API to display received messages
A custom service, written in Go, that forwards messages from MQTT to Redis
All of these components are kept intentionally basic in order to demonstrate the capabilities and allow you to learn gradually. The code is not considered production ready and scalable.
You should use Kubernetes via a cloud provider such as Google or Microsoft because many examples use load balancers and dynamic volume provisioning.
This is a hands on book so expect to get your hands dirty!