IoT system architectures