In the future, more and more devices will be connected to the internet. Analysts predict this number will reach 50 billion devices in 5 years. IoT will be used in cars, factories, agriculture, smart buildings, healthcare, homes, cities and so on. IoT devices generate sensor data such as state and other metrics, send event notifications, generate video data and need to be remotely controlled. Sensor data can then be analyzed in realtime to provide insights and actions. With the sheer volume of sensor data, there is clearly a challenge to transfer and store all that data and conduct smart analytics and machine learning in realtime.