Reader small image

You're reading from  Beginning Serverless Architectures with Microsoft Azure

Product typeBook
Published inJul 2018
PublisherPackt
ISBN-139781789537048
Edition1st Edition
Tools
Concepts
Right arrow
Author (1)
Daniel Bass
Daniel Bass
author image
Daniel Bass

Daniel Bass is the author of ‘Beginning Serverless Architectures with Microsoft Azure' and a developer with a major financial services firm that is moving to Azure. He is a key member of the team that is creating the first major greenfield projects purely on Azure in the company, utilizing a combination of serverless functions, web apps and data lake analytics. He has designed solutions from scratch for ingesting complex information from legacy data sources using serverless functions, processing it using data lake analytics and reforming it using serverless functions. He is actively developing serverless solutions in a team that designs it's own releases, so he is completely familiar with both the release tooling and development tooling. Daniel also has several years experience as a tutor of GCSE and A-Level students, producing quality education support for students across a broad spectrum of age and ability. He enjoys teaching and sharing knowledge with others. His own educational background includes a 1 st Class Honours in Physics MSci from University College London.
Read more about Daniel Bass

Right arrow

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

Chapter 1, 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.

Chapter 2, 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.

Chapter 3, 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. Knowledge 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

Download the Example Code Files

You can download the example code files for this book from your account at www.packtpub.com. If you purchased this book elsewhere, you can visit 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 at www.packtpub.com.
  2. Select the SUPPORT tab.
  3. Click on Code Downloads & Errata.
  4. Enter the name of the book in the Search box and follow the onscreen instructions.

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/TrainingByPackt/Beginning-Serverless-Architectures-with-Microsoft-Azure. In case there's an update to the code, it will be updated on the existing GitHub repository.

We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Conventions Used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "The example is called BeginningAzureServerlessArchitecture, so all code snippets will refer to that namespace."

A block of code is set as follows:

{
Amount: 47.32,
ExecutionTime: "2018-01-01T09:00:00Z"
}

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

class Transaction
{
public DateTime ExecutionTime { get; set; }
public Decimal Amount { get; set; }
}

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Right-click on your project and select Publish. Select Create New Azure Function App."

Activity: These are scenario-based activities that will let you practically apply what you've learned over the course of a complete section. They are typically in the context of a real-world problem or situation.


Warnings or important notes appear like this.

Get in Touch

Feedback from our readers is always welcome.

General feedback: Email feedback@packtpub.com and mention the book title in the subject of your message. If you have questions about any aspect of this book, please email us at questions@packtpub.com.

Errata: Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you have found a mistake in this book, we would be grateful if you would report this to us. Please visit www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details.

Piracy: If you come across any illegal copies of our works in any form on the Internet, we would be grateful if you would provide us with the location address or website name. Please contact us at copyright@packtpub.com with a link to the material.

If you are interested in becoming an author: If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, please visit authors.packtpub.com.

Reviews

Please leave a review. Once you have read and used this book, why not leave a review on the site that you purchased it from? Potential readers can then see and use your unbiased opinion to make purchase decisions, we at Packt can understand what you think about our products, and our authors can see your feedback on their book. Thank you!

For more information about Packt, please visit packtpub.com.

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Beginning Serverless Architectures with Microsoft Azure
Published in: Jul 2018Publisher: PacktISBN-13: 9781789537048
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.
undefined
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 €14.99/month. Cancel anytime

Author (1)

author image
Daniel Bass

Daniel Bass is the author of ‘Beginning Serverless Architectures with Microsoft Azure' and a developer with a major financial services firm that is moving to Azure. He is a key member of the team that is creating the first major greenfield projects purely on Azure in the company, utilizing a combination of serverless functions, web apps and data lake analytics. He has designed solutions from scratch for ingesting complex information from legacy data sources using serverless functions, processing it using data lake analytics and reforming it using serverless functions. He is actively developing serverless solutions in a team that designs it's own releases, so he is completely familiar with both the release tooling and development tooling. Daniel also has several years experience as a tutor of GCSE and A-Level students, producing quality education support for students across a broad spectrum of age and ability. He enjoys teaching and sharing knowledge with others. His own educational background includes a 1 st Class Honours in Physics MSci from University College London.
Read more about Daniel Bass