Nishith Pathak and Anurag Bhandari
IoT, AI, and Blockchain for .NET Building a Next-Generation Application from the Ground Up
Nishith Pathak
Kotdwara, Dist. Pauri Garhwal, India
Anurag Bhandari
Jalandhar, Punjab, India
Any source code or other supplementary material referenced by the author in this book is available to readers on GitHub via the book's product page, located at www.apress.com/9781484237083 . For more detailed information, please visit http://www.apress.com/source-code .
ISBN 978-1-4842-3708-3 e-ISBN 978-1-4842-3709-0
https://doi.org/10.1007/978-1-4842-3709-0
Library of Congress Control Number: 2018952633
Nishith Pathak and Anurag Bhandari 2018
This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed.
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein.
Distributed to the book trade worldwide by Springer Science+Business Media New York, 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail orders-ny@springer-sbm.com, or visit www.springeronline.com. Apress Media, LLC is a California LLC and the sole member (owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation.
Nishith dedicates this book to
Jai Gurudev
To the most important person in my life, my mother, the late Bina Pathak, for her guidance, sacrifices, prayers, and blessings, which made me what I am today. I miss her each day. To my father, Pankaj Pathak, for teaching me to do what I believe in. You are and will always be my role model and my hero for my entire life. To my Sadh-Gurudev, who has been an eternal guiding force and entirely changed my life. To my grandfather, the late Mahesh Chandra Pathak, for his blessings and moral values .
To my wife, Surabhi, for bearing with me, sacrificing her splendid career for our family, and always staying by my side through all the ups and downs. Getting married to you is the most beautiful thing in my life. You have given me the most precious diamond of my life, Shikhar, whom I love more than anyone else. I know this book has taken a lot of me and I havent been able to spend enough time with you, Papa, and Shikhar for the past year since Ive been working tirelessly to give this pleasant surprise. Surabhi and Shikhar, this book would not have been possible without all of your sacrifices .
To my lovely sister, Tanwi, and my niece, Aadhyayour smiling faces give me a lot of strength and inspiration to do better each day. To my Guruji, JP Kukreti, SS Tyagi, and Rajesh Tripathi, who have been there for me countless times and always provide me with comfort, understanding, spiritual beliefs, and lots of motivation .
Lastly, I thank God for blessing me with such wonderful people in my life .
Anurag dedicates this book to his late grandfatherDr. Y.P. Bhandaria tireless, unretired, and always learning doctor who was an evergreen source of inspiration to Anurag and hundreds of radiologists in India. To his late grandmotherMrs. Kaushalya Bhandarian epitome of sacrifice, selflessness, and righteousness. Mrs. and Dr. Bhandari passed away recently onto the heavenly realms a few days after one another. To his maternal grandmotherMrs. Kailashwati Soodfor her unending love and motivation. To his fatherPardeep Bhandarifor his sagely advice, composure, ideas, and for always being there. To his mother (from whom he inherits his creative genes)Meenakshi Bhandarifor imparting him ethos and values, and for being a constant motivation, apart from being ever-caring and ever-forgiving. To his sisterAshima Bhandarifor being his best friend and biggest teacher and for being his big data memory bank. To his wifeDivya Malhotrafor being understanding and motivating, and for being the perennially cheerful person that she is .
Introduction
We are in midst of a technological revolution. As with previous revolutions, an inability to adapt to the new ways will make your existing developer skills obsolete sooner than later. Starting with the Cloud revolution, Big Data, Internet of Things (IoT), and Artificial Intelligence (AI) have all changed the landscape of software development. As we enter a new era of AI and IoT, we have another technology currently creating disruptive waves across the globe. This new technology is Blockchain. The lethal combination of IoT and Blockchain, powered by AI, is ready to revolutionize software development yet again. We are talking about the AI 2.0 revolution.
This book introduces you to each component of AI 2.0 and Industry 4.0 in detail, viz. AI, IoT, Blockchain, and machine learning. Building on a strong conceptual base, it will provide methodical, hands-on and step-by-step approaches to solving practical real-world problems. In each applied chapter, you will build one module of our example solution for a fictional smart healthcare chain.
The book starts with quick and interesting introductions to AI, IoT, and Blockchain, and explains how these will be used in creating smart hospitals.
It then delves deeper into IoT concepts a developer must know and gives you a good understanding of Azure IoT Suite. From there, you build a centralized patient monitoring solution using real and fake IoT devices, leveraging the incredible power of IoT Suite.
The book then talks in detail about artificial intelligence, the various tasks that make up AI, and how developerswho do not need a background in applied mathematicscan use Azure Cognitive Services to make their applications smart and offer richer experiences to end users.
The book introduces the complex topic of Blockchain in ways that are easy to comprehend even by absolute beginners. It then teaches you to apply Blockchain in real lifeusing Azure Blockchain-as-a-Serviceby letting you design your own trust-based security and inventory management solution for our fictional chain of smart hospitals.
Real-time analysis of data received by IoT devices is sometimes useful in extracting key insights and at other times imperative in making crucial business decisions. You will learn to perform real-time analysis of IoT data at scalesaving thousands of lives on the wayusing Azure Stream Analytics and PowerBI.