In this video Sharon provides on overview of the various messaging services that can be implemented with your applications. Topics include: Azure Service Bus, Stream Analytics, and IoT Hub.
- [Instructor] You can also integrate Azure messaging services with your application. Let's start off with the Azure Service Bus which is a messaging as a service feature in Azure. You can connect across on-premise and your cloud environments and using this service allows you to decouple that front-end and back-end environment. We will be talking about Service Bus in more detail in the next chapter. We can also leverage event hubs which is a streaming event service and the event hub can receive and process millions of events per second.
The event hub will ingest data and then just forward it along. And sources for this data include IoT devices such as health trackers or mobile devices, think about your favorite traffic app. And finally we have IoT hub which is a fully managed service that provides reliable and secure bidirectional communication between IoT devices and an Azure back-end solution. As we can see here, again we can use similar sources for the IoT hub as we did for the event hub and it could be health monitors, cars, phones, smart devices, etc.
The IoT hub will then push out information into Stream Analytics which can leverage machine learning and then it's forwarded to a back-end solution. In the example I have here, it's Azure Storage. We just looked at both IoT hubs and event hubs and you may be wondering which one to use. Let's run through a high-level comparison of the two. When it comes to communications, IoT hubs allow for device to cloud and cloud to device whereas event hubs only ingest events so it's device to cloud.
The IoT hub stores and queries device state information. This is not available through event hubs. Both hubs use AMQP and AMQP over HTTP and WebSockets, but the IoT hub also supports MQTT and MQTT over WebSockets. When it comes to scale, IoT can serve millions of devices. IoT can also upload whereas event hubs cannot. And finally when it comes to security, the IoT hub supports per device identity and you can revoke access control.
When it comes to policies in event hubs, the policies are event hub wide and you have limited access to revoke. As you can see, there are several messaging services that you can integrate with your application.
- Creating compute-intensive applications
- Creating long-running applications
- Implementing messaging systems
- Azure Service Bus relays
- Using Azure Storage queues
- Creating an Azure Event Hub
- Creating Azure WebJobs
- Managing cloud environments with Azure Active Directory Domain Services