Related Articles
Newsletter
Join our blog
Join other Azure, Power Platform and SQL Server pros by subscribing to our blog.
Start with the FREE community plan and get your lifetime access to 20+ courses. Get Instant Access Now!
Need help? Talk to an expert: (904) 638-5743
Private Training
Customized training to master new skills and grow your business.
On-Demand Learning
Beginner to advanced classes taught by Microsoft MVPs and Authors.
Bootcamps
In-depth boot camps take you from a novice to mastery in less than a week.
Season Learning Pass
Get access to our very best training offerings for successful up-skilling.
Stream Pro Plus
Combine On-Demand Learning platform with face-to-face Virtual Mentoring.
Certification Training
Prepare and ace your next certification with CertXP.
Private Training
Cheat Sheets
Quick references for when you need a little guidance.
Nerd Guides
Summaries developed in conjunction with our Learn with the Nerds sessions.
Downloads
Digital goodies - code samples, student files, and other must have files.
Blog
Stay up-to-date on all things Power BI, Power Apps, Microsoft 365 and Azure.
Community Discord Server
Start here for technology questions to get answers from the community.
Career Guides
Breaking into the field? Let these guides help get you started with a plan.
Affiliate Program
Earn money by driving sales through the Pragmatic Works' Training Affiliate Program.
Reseller Partner
It's time to address your client's training needs.
Foundation
Learn how to get into IT with free training and mentorship.
Management Team
Discover the faces behind our success: Meet our dedicated team
Contact Us
How can we help? Connect with Our Team Today!
FAQs
Find all the information you’re looking for. We’re happy to help.
IOT Hub, Event Hub and Event Grid are Azure services that have some similarities in name but today I’d like help with any confusion between them by talking about how they are related and how they’re different.
I’ll start with IOT Hub and Event Hubs. Both Azure services are designed for large scale data ingestion, from either an IOT enabled device or from an application. The primary difference between these is that Event Hubs only take in data, whereas IOT Hub can facilitate 2-way communication to an IOT enabled device.
For example, IOT Hub can receive a signal from a device that’s sensing a pressure and it can also send firmware or software updates back down to that IOT device. An Event Hub is only one-way communication; it can’t talk back to the device that is sending the information.
In the screenshot below of a reference architecture published by Microsoft, it shows an example of using data from an Event Hub to then perform some stream analytics or maybe pump that data into a machine learning algorithm or data warehouse. For this illustration, you could substitute Event Hub for IOT Hub as they are both services for capturing large amounts of data and then analyzing or consuming it.
Moving on to the Event Grid. This is designed to process events, not data. An Event Grid would be made aware of an event and then take action when a certain event takes place. This screenshot below (another diagram from the Microsoft Event Grid page), is an illustration of how it fits into the event processing world.
On the left side you see event sources or systems that can output information or events. Those events are received by the Event Grid and once received it can take some action.
Let’s say a file was placed in a certain blob storage container. I could send that info to the Event Grid and it would perhaps fire off a logic app, for instance. The two boxes I show in red are Event Hub and IOT Hub, showing that you could use Event Grid to sense when an Event or IOT Hub received a message, then based on that message, take some additional action.
The box on the lower left is Custom Topics. This indicates that you can create your own custom events from a custom application. So, if you’ve written your own application, you can submit events to the Event Grid and then kick off other processes in the Azure ecosystem.
Another common use of the Event Grid would be at the subscription or resource group level. If something changed in the subscription or a resource was added to a group, you could take some action like notifying people that a new resource was added.
I hope this quick overview of the similarities and differences between IOT Hub, Event Hubs and Event Grid cleared up any confusion as to how they are used. If you have more questions about these services or any Azure service, you’re in the right place. Click the link below or contact us, we’re here to help.
ABOUT THE AUTHOR
Free Trial
private training
Newsletter
Join other Azure, Power Platform and SQL Server pros by subscribing to our blog.
Leave a comment