Beginning Serverless Architectures with Microsoft Azure
Design scalable applications and microservices that effortlessly adapt to the requirements of your customers
Daniel Bass
![BIRMINGHAM - MUMBAI Beginning Serverless Architectures with Microsoft Azure - photo 1](/uploads/posts/book/157409/images/00001.jpeg)
BIRMINGHAM - MUMBAI
Beginning Serverless Architectures with Microsoft Azure
Copyright 2018 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Acquisitions Editor: Aditya Date
Content Development Editors: Darren Patel, Tanmayee Patil
Production Coordinator: Ratan Pote
First published: July 2018
Production reference: 1250718
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78953-704-8
www.packtpub.com
mapt.io
Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.
Why Subscribe?
- Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals
- I mprove your learning with Skill Plans built especially for you
- Get a free eBook or video every month
- Mapt is fully searchable
- Copy and paste, print, and bookmark content
PacktPub.com
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at service@packtpub.com for more details.
At www.PacktPub.com , you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.
Contributors
About the Author
Daniel Bass studied Masters of Physics at University College London before becoming a developer at a large financial company. He's part of a team that develops complex backend systems entirely on Azure, making heavy use of event-driven Azure Functions and Azure Data Lake. He's currently working with Azure Web Apps, Sitecore CMS and Build and Release Automation using Visual Studio Team Services.
About the Reviewer
Chantel Spencer-Bowdage likes to break problems apart and build solutions. She is currently working as a full stack software developer with Memrise. She is also a technology director with Girls in Tech, London. She gained experience working with companies such as M&G Investments and MWR InfoSecurity. She completed her Master of Engineering from the University of Southampton. Chantel enjoys a range of hobbies, from drawing to learning Spanish. She also likes travelling to new places. You can find out more about Chantel on her LinkedIn profile: chantelsb.
Packt is Searching for Authors Like You
If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.
Table of Contents
Preface
Many businesses are rapidly adopting a microservices-first approach to development, driven by the availability of new commercial services like Azure Functions and AWS Lambda. In this book, we'll show you how to quickly get up and running with your own serverless development on Microsoft Azure. We start by working through a single function, and work towards integration with other Azure services like App Insights and Cosmos DB to handle common user requirements like analytics and highly performant distributed storage. We finish up by providing you with the context you need to get started on a larger project of your own choosing, leaving you equipped with everything you need to migrate to a cloud-first serverless solution.
After completing this book, you will be able to:
- Identify the key advantages and disadvantages of serverless development
- Build a fully-functioning serverless application and utilize a wide variety of Azure services
- Create, deploy and manage your own Azure Functions in the cloud
- Implement core design principles for writing effective serverless code
Who This Book Is For
This book is ideal for backend developers or engineers who want a quick hands-on introduction to developing serverless applications within the Microsoft ecosystem.
What This Book Covers
, Introduction to Azure Functions, will walk you through the basic understanding of Azure Functions and then its serverless functionalities. In this chapter, we will learn to create, debug, and deploy the Azure Functions. Later in the chapter, we'll deal with serverless runtime functions of Microsoft's Azure Function.
, Deploying Azure Serverless, will help you to integrate your Azure Function with Cosmos DB, and with an Azure App Service. Later in the chapter, we'll use APIs to secure the Azure Functions and using Azure Application Insights we'll combine a complete logging and monitoring solution.
, Architecting Serverless Solutions, will be dealing with triggering functions with Cosmos DB and changing the functionality from an old .NET app to an Azure Function. We'll be developing a weather-dependent notification for our personal finance app. Later in the chapter, we'll analyze how to integrate old applications using serverless architecture.
To Get the Most out of This Book
You should have a basic knowledge of C# and a general knowledge of Azure. K nowledge of ASP.NET/MVC is beneficial but is not mandatory. The minimum hardware requirements are: Intel Core i3 or equivalent, 4GB RAM, 10 GB hard disk, and a stable internet connection. You'll also need the following software installed in advance:
- Google Chrome or Mozilla Firefox (Latest updates installed)
- Postman app for API Development Environment
- Visual Studio 2017 with Azure Development Workflow (Latest version)
- Node.js with Azure-functions-core-tools version 1.x installed via npm
- .NET Framework 4.6 or higher