Real-time analytics at IoT scale