Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Robust Cloud Integration with Azure

You're reading from  Robust Cloud Integration with Azure

Product type Book
Published in Mar 2017
Publisher Packt
ISBN-13 9781786465573
Pages 696 pages
Edition 1st Edition
Languages
Authors (6):
Gyanendra Kumar Gautam Gyanendra Kumar Gautam
Ashish Bhambhani Ashish Bhambhani
Profile icon Ashish Bhambhani
Abhishek Kumar Abhishek Kumar
Profile icon Abhishek Kumar
James Corbould James Corbould
Profile icon James Corbould
Mahindra Morar Mahindra Morar
Profile icon Mahindra Morar
Martin Abbott Martin Abbott
Profile icon Martin Abbott
View More author details

Table of Contents (23) Chapters

Robust Cloud Integration with Azure
Credits
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface
1. An Introduction to Systems Integration in the Cloud 2. What Is an Azure App Service? 3. Getting Started with API Apps 4. What is Azure API Management? 5. Trigger Your First Logic App in Azure 6. Working with Connectors in Logic Apps 7. Azure Functions in Logic Apps 8. A Deep Dive into Logic Apps 9. Powerful Integration with SaaS Using Logic Apps 10. Advanced Integration with Powerful, Scalable Service Bus in the Cloud 11. Connecting to Event Hubs and an Introduction to IoT Hubs 12. EAI/B2B Integration Using Logic Apps 13. Hybrid Integration Using BizTalk Server 2016 and Logic Apps 14. Tooling and Monitoring for Logic Apps 15. Whats Next for Azure Integration?

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 2017 Publisher: Packt ISBN-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.
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}