Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Stream Analytics with Microsoft Azure

You're reading from   Stream Analytics with Microsoft Azure Real-time data processing for quick insights using Azure Stream Analytics

Arrow left icon
Product type Paperback
Published in Dec 2017
Publisher Packt
ISBN-13 9781788395908
Length 322 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (4):
Arrow left icon
Krishnaswamy Venkataraman Krishnaswamy Venkataraman
Author Profile Icon Krishnaswamy Venkataraman
Krishnaswamy Venkataraman
Ryan Murphy Ryan Murphy
Author Profile Icon Ryan Murphy
Ryan Murphy
Manpreet Singh Manpreet Singh
Author Profile Icon Manpreet Singh
Manpreet Singh
Anindita Basak Anindita Basak
Author Profile Icon Anindita Basak
Anindita Basak
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Introducing Stream Processing and Real-Time Insights FREE CHAPTER 2. Introducing Azure Stream Analytics and Key Advantages 3. Designing Real-Time Streaming Pipelines 4. Developing Real-Time Event Processing with Azure Streaming 5. Building Using Stream Analytics Query Language 6. How to achieve Seamless Scalability with Automation 7. Integration of Microsoft Business Intelligence and Big Data 8. Designing and Managing Stream Analytics Jobs 9. Optimizing Intelligence in Azure Streaming 10. Understanding Stream Analytics Job Monitoring 11. Use Cases for Real-World Data Streaming Architectures

Sample use case 


In this sample, we have a three automated tollbooth and cars pass through every few minutes. The goal is to calculate how many cars have passed through in a given duration.

  • No Partition:
SELECT COUNT(*) AS Count, TollBoothId
FROM Input1 GROUP BY TumblingWindow(minute, 3), TollBoothId, PartitionId
  • Partitioned Query:
SELECT COUNT(*) AS Count, TollBoothId
FROM Input1 Partition By PartitionId
GROUP BY TumblingWindow(minute, 3), TollBoothId, PartitionId
  • Split query with Partition and Non-Partition:
WITH Step1 AS (
 SELECT COUNT(*) AS Count, TollBoothId, PartitionId
 FROM Input1 Partition By PartitionId
 GROUP BY TumblingWindow(minute, 3), TollBoothId, PartitionId
 )
 SELECT SUM(Count) AS Count, TollBoothId
 FROM Step1
 GROUP BY TumblingWindow(minute, 3), TollBoothId

Summary of the result with the total Streaming Unit:

lock icon The rest of the chapter is locked
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 $19.99/month. Cancel anytime
Banner background image