Reader small image

You're reading from  Robust Cloud Integration with Azure

Product typeBook
Published inMar 2017
Reading LevelIntermediate
PublisherPackt
ISBN-139781786465573
Edition1st Edition
Languages
Tools
Right arrow
Authors (6):
Ashish Bhambhani
Ashish Bhambhani
author image
Ashish Bhambhani

Ashish Bhambhani is an Integration Sr. Premier Field Engineer working for Microsoft. He lives in the Seattle region. He has been working in the integration space for more than a decade. In his current role he helps Microsofts enterprise customers by architecting, designing, building, and maintaining their integration solutions. Recently, he has been able to roll out Azure technologies enterprise-wide for his clients and replace their legacy solutions. He is a content creator and master trainer for some of a Microsofts training that is delivered to clients worldwide. Additionally, he was part of the team that wrote the BizTalk performance whitepaper for msdn.com
Read more about Ashish Bhambhani

Abhishek Kumar
Abhishek Kumar
author image
Abhishek Kumar

Abhishek Kumar works with New Zealand Trade and Enterprise as an integration and data specialist. He is a Microsoft Azure MVP with deep expertise in software development and design. He is a co-author of Robust Cloud Integration and a seasoned contributor to Microsoft blogs, forums, and events. As a technological evangelist, he is specialized in cloud-based technologies such as Azure Functions, Microsoft Graph, Logic Apps, Web API, and Cosmos DB, along with various Software-as-a-Service (SaaS) such as Salesforce, Office 365, and ServiceNow. As a technology advocate, he promotes loosely coupled solution design along with event-based programming.
Read more about Abhishek Kumar

James Corbould
James Corbould
author image
James Corbould

James Corbould has been working in the IT sector since 2003, developing and supporting applications in New Zealand and the United Kingdom. Since 2010, James has been working in the software integration field, designing and building integration solutions using Microsoft technologies such as BizTalk, SQL Server, WCF, .NET, and now Azure, for a wide range of different customers. Recently, he has been working in the health insurance sector and in the building supplies sector.James currently works for Datacom Systems as a consultant and team lead.
Read more about James Corbould

Mahindra Morar
Mahindra Morar
author image
Mahindra Morar

Mahindra Morar has been working in the IT sector from 1997, developing Windows and website enterprise applications. In 2009, he has been focusing primarily on integrating systems as a principle integration consultant. Having come from an electronics engineering background, he is able to use this knowledge to design solutions that integrate between wetware, software and hardware.
Read more about Mahindra Morar

Martin Abbott
Martin Abbott
author image
Martin Abbott

Martin Abbott is a Microsoft Azure MVP living in Perth, Western Australia. He started his career developing subroutines for commercial computational fluid dynamics software, eventually moving on to more mainstream development and systems integration. He has been working with BizTalk Server since the early days of the product, has spent a lot of time with WCF, but more recently has moved in to providing his customers with integration solutions spanning both on-premises and cloud workloads.
Read more about Martin Abbott

View More author details
Right arrow

Chapter 11. Connecting to Event Hubs and an Introduction to IoT Hubs

This chapter provides a brief review of Azure Event Hubs and provides an introduction to IoT Hubs. It will teach you how to connect to Event Hubs and consume data using partitions and how to connect devices to the IoT Hub. It will discuss the various security and connectivity options available today when connecting devices to the Internet.

In this chapter, you will learn the following topics:

  • What are Event Hubs and IoT Hubs

  • When to use either Event Hubs or IoT Hubs

  • How to send and consume messages

  • How to enable bidirectional communication with IoT Hubs

  • Using an Azure IoT Hub in a simulated real-world example

An introduction to Event Hubs


Event Hubs are primarily designed to ingest large volumes of event and telemetry data in a high throughput manner from a variety of devices and services. They are similar in principle to Azure Queues and Azure Topics but with different characteristics and use cases. Although Azure Queues and Topics are used for enterprise messaging scenarios in which transaction support, dead-lettering, ordered delivery, and guaranteed delivery are of prime concerns, Event Hubs are biased toward very high throughput and event processing scenarios such as stream analytics.

Security in Event Hubs

When a device sends data to an Event Hub, it is normally to a virtual endpoint address defined by the publisher. A publisher requires a valid token to be passed with each message, which is a combination of a shared access signature (SAS) and a publisher name. The publisher name is normally the device's unique identifier.

Although it is not recommended, you can directly connect to the Event...

Introduction to Azure IoT Hubs


Connected things have been around for decades in the manufacturing, utilities, and resources industries and have solved the very real requirement of needing to know and understand how large-scale systems are operating; they have provided the Operational Technology (OT) to the more commonly talked about Information Technology (IT).

An example of such a system is supervisory control and data acquisition (SCADA). Typically, a SCADA system consists of a large number of networked sensors reporting their data over proprietary protocols to a central resource that displays information and allow the decisions to be made. The data is stored in a large database known as a historian for ongoing analysis. These industrial control systems have existed for many years and are largely secure by default as they isolate the sensors and controls in a private network, for example, a process control network.

Because SCADA systems are largely proprietary or at least based on a few...

Scenario - bringing it all together


In this scenario, Sunny Electricals manufactures industrial electric motors. To ensure that these motors are well maintained, Sunny Electricals has embedded piezo sensors near the bearing housing and temperature sensors in the stator windings. These sensors are then wired to a microcontroller that sends the telemetry data to an Azure IoT Hub every minute.

With this information, Sunny Electricals can tell their customers of possible bearing failure or if the motor is working under stressful loads.

For the scenario, the microcontroller and telemetry data are simulated and posted to a single device in IoT Hub named motordata.

Once received by IoT Hub, the telemetry data is processed by an Azure Stream Analytics job that pushes all data to a Power BI dashboard to show the current data in an easily consumable format. The data is also processed using an Azure Function that makes use of the Event Hub endpoint of the IoT Hub. This process checks for error conditions...

Summary


In this chapter, we reviewed the functionality in Event Hubs to set the scene in order to take a deeper look at IoT Hubs.

The Internet of Things has been enabled due to the reduced cost of devices driven by a maker society and the advent of cloud computing.

This has driven a change in both cost and skills required to create a solution. By choosing cheaper hardware and standing up a simple pilot solution using Azure platform services, it is possible for organizations to understand the real value of a solution quickly, enabling them to move forward with confidence that the insights their IoT investment is delivering are valid and important.

Azure IoT Hubs are a key enabler to this process, providing a platform service that supports a near plug-and-play approach, while delivering trust in a secure solution that is difficult to compromise.

While physical devices can still be compromised, since they are outside the control of the Azure platform, having timebound and/or IP filtered secure...

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Robust Cloud Integration with Azure
Published in: Mar 2017Publisher: PacktISBN-13: 9781786465573
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Authors (6)

author image
Ashish Bhambhani

Ashish Bhambhani is an Integration Sr. Premier Field Engineer working for Microsoft. He lives in the Seattle region. He has been working in the integration space for more than a decade. In his current role he helps Microsofts enterprise customers by architecting, designing, building, and maintaining their integration solutions. Recently, he has been able to roll out Azure technologies enterprise-wide for his clients and replace their legacy solutions. He is a content creator and master trainer for some of a Microsofts training that is delivered to clients worldwide. Additionally, he was part of the team that wrote the BizTalk performance whitepaper for msdn.com
Read more about Ashish Bhambhani

author image
Abhishek Kumar

Abhishek Kumar works with New Zealand Trade and Enterprise as an integration and data specialist. He is a Microsoft Azure MVP with deep expertise in software development and design. He is a co-author of Robust Cloud Integration and a seasoned contributor to Microsoft blogs, forums, and events. As a technological evangelist, he is specialized in cloud-based technologies such as Azure Functions, Microsoft Graph, Logic Apps, Web API, and Cosmos DB, along with various Software-as-a-Service (SaaS) such as Salesforce, Office 365, and ServiceNow. As a technology advocate, he promotes loosely coupled solution design along with event-based programming.
Read more about Abhishek Kumar

author image
James Corbould

James Corbould has been working in the IT sector since 2003, developing and supporting applications in New Zealand and the United Kingdom. Since 2010, James has been working in the software integration field, designing and building integration solutions using Microsoft technologies such as BizTalk, SQL Server, WCF, .NET, and now Azure, for a wide range of different customers. Recently, he has been working in the health insurance sector and in the building supplies sector.James currently works for Datacom Systems as a consultant and team lead.
Read more about James Corbould

author image
Mahindra Morar

Mahindra Morar has been working in the IT sector from 1997, developing Windows and website enterprise applications. In 2009, he has been focusing primarily on integrating systems as a principle integration consultant. Having come from an electronics engineering background, he is able to use this knowledge to design solutions that integrate between wetware, software and hardware.
Read more about Mahindra Morar

author image
Martin Abbott

Martin Abbott is a Microsoft Azure MVP living in Perth, Western Australia. He started his career developing subroutines for commercial computational fluid dynamics software, eventually moving on to more mainstream development and systems integration. He has been working with BizTalk Server since the early days of the product, has spent a lot of time with WCF, but more recently has moved in to providing his customers with integration solutions spanning both on-premises and cloud workloads.
Read more about Martin Abbott