Book Image

Stream Analytics with Microsoft Azure

By : Ryan Murphy, Manpreet Singh
Book Image

Stream Analytics with Microsoft Azure

By: Ryan Murphy, Manpreet Singh

Overview of this book

Microsoft Azure is a very popular cloud computing service used by many organizations around the world. Its latest analytics offering, Stream Analytics, allows you to process and get actionable insights from different kinds of data in real-time. This book is your guide to understanding the basics of how Azure Stream Analytics works, and building your own analytics solution using its capabilities. You will start with understanding what Stream Analytics is, and why it is a popular choice for getting real-time insights from data. Then, you will be introduced to Azure Stream Analytics, and see how you can use the tools and functions in Azure to develop your own Streaming Analytics. Over the course of the book, you will be given comparative analytic guidance on using Azure Streaming with other Microsoft Data Platform resources such as Big Data Lambda Architecture integration for real time data analysis and differences of scenarios for architecture designing with Azure HDInsight Hadoop clusters with Storm or Stream Analytics. The book also shows you how you can manage, monitor, and scale your solution for optimal performance. By the end of this book, you will be well-versed in using Azure Stream Analytics to develop an efficient analytics solution that can work with any type of data.
Table of Contents (18 chapters)
Title Page
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface

Preface

In this book, guidance will be provided for data architecture professionals, cloud architects, big data developers, and data scientists who would like to grab an end-to-end understanding of real-time complex streaming architecture. It's a comprehensive guidance on developing real-time event processing with Azure Stream Analysis.

And it's an implementation guidance for interactive data processing in fields such as the Internet of Things (IoT), social media, sensor data processing with BI, integration of streaming analytics with machine learning, and so on.

What this book covers

Chapter 1, Introducing Stream Processing and Real-Time Insights, describes a paradigm shift that is underway in data processing, from a legacy of handling static data in batches to handling continuously moving data in streams. We explore the fundamental architectural concepts of stream processing as well as its benefits in Real-Time Insights.

Chapter 2Introducing Azure Stream Analytics and Key Advantages, introduces Microsoft's Azure Stream Analytics, a real-time analytics service built for the stream processing era. We walk through a basic Stream Analytics job configuration and then discuss its key features that drive down the total cost of ownership of streaming solutions. 

Chapter 3Designing Real-Time Streaming Pipeline, discusses the components of stream processing pipelines and how they differ from traditional batch pipelines, including temporal concepts such as windowing, hot and cold paths of data movement, and others. To see how streaming design concepts can be applied to a technical architecture, we then look at the canonical Azure streaming pipeline from data generation to intelligent action.

 Chapter 4Developing Real-Time Event Processing with Azure Streaming, covers various tools for provisioning a Stream Analytics job. The integration steps of job input and output are demonstrated.

Chapter 5, Building Using Stream Analytics Query Language, explores the SQL-like query language used in Azure Stream Analytics to run transformations and computations on streaming data. Common and complex stream processing requirements can be met with straightforward queries.

Chapter 6, How to achieve Seamless Scalability with Automation, covers deploying at the enterprise-grade with features and patterns for scaling and deployment automation. After demonstrating automated deployment using Azure Resource Manager (ARM), we explore vertical and horizontal partitioning and scaling in Stream Analytics to increase job capacity and performance.

Chapter 7, Integration of Microsoft Business Intelligence and Big Data, discusses the modern data solution architectures Lambda and Kappa, how to use Stream Analytics to comport with these architectures, and compare it with a popular alternative, HDInsight Storm. We then walk through a sample pipeline, implementing a real-time dashboard based on the Power BI output connector for Stream Analytics.

Chapter 8Designing and Managing Stream Analytics Jobs, explore solutions to complex challenges of managing streaming jobs, starting with the common need to integrate streams with static data. We then discuss integration with Azure Data Lake Store and Cosmos DB as examples of Azure services whose native integration with Stream Analytics offers unique opportunities to enhance streaming pipelines.

Chapter 9Optimizing Intelligence in Azure Streaming, discusses building intelligence directly into Stream Analytics jobs so that extensible functions and machine learning calls execute in real time as data moves. We cover integration with the Azure Machine Learning service and implementing user-defined JavaScript functions in Stream Analytics queries. Finally, we walk through using the Azure .NET SDK to enhance job management.

Chapter 10Understanding Stream Analytics Job Monitoring, looks into ongoing maintenance and job management. We discuss and demonstrate the job metrics, diagram, and logging features offered by Stream Analytics, as well as service health dashboarding and alerting.

Chapter 11Use Cases of Real-World Data Streaming Architectures, is an end-to-end real-life use case demonstration using the Azure IoT suite with Stream Analytics with implementation steps as PoC for Social Sentiment Analytics, IoT Remote Monitoring telemetry solution, connected factory, and PoC on fraud detection Analytics from the telecom industry.

What you need for this book

  1. A valid Azure subscription
  2. Visual Studio 2017/2015
  3. Azure SDK 2.7.1 or higher
  4. Azure Storage Explorer
  5. A Power BI Office 365 account
  6. Python SDK 2.7 (x64) bit and packages

Who this book is for

If you are looking for a resource that teaches you how to process continuous streams of data in real time, this book is what you need. A basic understanding of the concepts of analytics is all you need to get started with this book.

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "Once the ASA job is created, in the Solution Explorer, the job topology folder structure could be viewed as Inputs (job input), Outputs (job output), JobConfig.jsonScript.asaql (Stream Analytics Query file), Azure Functions (optional), and so on."

A block of code is set as follows:

Select input.vin, BlobSource.Model, input.timestamp, input.outsideTemperature, 
input.engineTemperature, input.speed, input.fuel, input.engineoil, 
input.tirepressure, input.odometer, input.city, input.accelerator_pedal_position, 
input.parking_brake_status,
input.headlamp_status, input.brake_pedal_status, 
input.transmission_gear_position, input.ignition_status, 
input.windshield_wiper_status, input.abs into output from input join BlobSource 
on input.vin = BlobSource.VI

New terms and important words are shown in bold.

Words that you see on the screen, for example, in menus or dialogue boxes, appear in the text like this: "To run the Stream Analytics job query locally, first select Add Local Input by right-clicking on the ASA project in VS Solution Explorer, and choose to Add Local Input."

Note

Warnings or important notes appear like this.

Note

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book-what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of. To send us general feedback, simply email [email protected], and mention the book's title on the subject of your message. If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for this book from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files emailed directly to you. You can download the code files by following these steps:

  1. Log in or register to our website using your email address and password.
  2. Hover the mouse pointer on the SUPPORT tab at the top.
  3. Click on Code Downloads & Errata.

 

  1. Enter the name of the book in the Search box.
  2. Select the book for which you're looking to download the code files.
  3. Choose from the drop-down menu where you purchased this book from.
  4. Click on Code Download.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR / 7-Zip for Windows
  • Zipeg / iZip / UnRarX for Mac
  • 7-Zip / PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Stream-Analytics-with-Microsoft-Azure. We also have other code bundles from our rich catalogue of books and videos available at https://github.com/PacktPublishing/. Check them out!

Downloading the color images of this book

We also provide you with a PDF file that has color images of the screenshots/diagrams used in this book. The color images will help you better understand the changes in the output. You can download this file from https://www.packtpub.com/sites/default/files/downloads/StreamAnalyticswithMicrosoftAzure_ColorImages.pdf.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books-maybe a mistake in the text or the code-we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title. To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.

Piracy

Piracy of copyrighted material on the internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the internet, please provide us with the location address or website name immediately so that we can pursue a remedy. Please contact us at [email protected] with a link to the suspected pirated material. We appreciate your help in protecting our authors and our ability to bring you valuable content.

Questions

If you have a problem with any aspect of this book, you can contact us at [email protected], and we will do our best to address the problem.