Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Beginning Serverless Architectures with Microsoft Azure
Beginning Serverless Architectures with Microsoft Azure

Beginning Serverless Architectures with Microsoft Azure: Design scalable applications and microservices that effortlessly adapt to the requirements of your customers

Arrow left icon
Profile Icon Daniel Bass
Arrow right icon
£6.99 £10.99
eBook Jul 2018 100 pages 1st Edition
eBook
£6.99 £10.99
Paperback
£12.99
Subscription
Free Trial
Renews at £16.99p/m
Arrow left icon
Profile Icon Daniel Bass
Arrow right icon
£6.99 £10.99
eBook Jul 2018 100 pages 1st Edition
eBook
£6.99 £10.99
Paperback
£12.99
Subscription
Free Trial
Renews at £16.99p/m
eBook
£6.99 £10.99
Paperback
£12.99
Subscription
Free Trial
Renews at £16.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Table of content icon View table of contents Preview book icon Preview Book

Beginning Serverless Architectures with Microsoft Azure

Deploying Azure Serverless

Most of what was covered in the previous chapter could apply to any serverless product; even runtimes that seem unique are fairly similar. You can easily find analogues for most of the previous chapter in AWS or Google Cloud. In this chapter, you will learn about Azure-specific features. You'll integrate your function with other Azure services to create a serverless RESTful API. Azure Application Insights will also be integrated into your solution, providing your support team with unparalleled data about what your application is doing. Finally, your serverless functions will be secured using API keys, to prevent unauthorized use.

By the end of this chapter, you will be able to:

  • Integrate an Azure Function with Cosmos DB
  • Combine a complete logging and monitoring solution with Azure Application Insights
  • Secure your Azure Functions using API keys
  • ...

Integrating with Other Azure Services

As a developer, you are constantly asked if your service can talk to a new product. There is an emphasis on moving from the walled garden architecture of old to open, modular, easy-to-integrate services. Even software companies are struggling to catch up with this new demand, with many products still shipping as closed systems, without basic API layers.

So far, Cosmos DB has been mentioned several times in this book, but what is it? It's Microsoft's flagship cloud database. It's a fully elastic, dynamically resourced database which is schema agnostic. It has multiple APIs available. It has a native SQL API, which supports JSON documents, a MongoDB API, a Cassanda API, a Graph API and a Key-Value pair API. It can be tuned to maximum performance/parallelism and lower consistency, or back to the more traditional Atomicity, Consistency...

Logging with Application Insights

One of the most important operational requirements for software is that your company understand what the application is doing and can triage responses to errors. This is generally achieved via some form of logging, and there is a service in Azure for this, called Application Insights. It's a very sophisticated application health monitoring tool that combines out-of-the-box monitoring, like processor loads, RAM usage, and errors, with specific logging that the developer has to implement. While Azure Functions don't really have concerns with processor loads or RAM usage, it useful to know the average length of calls, how many instances are being spun up, and hourly spend.

In the next example, you will add Azure Application Insights integration to your previous two functions, to enable effective support.

...

Security with API Keys

The standard way of securing APIs on the Internet is through the use of keys and secrets, and a serverless API is no different. You should secure every function you create with at least function-level authorization, unless there is a compelling argument for it being public. You should definitely secure your data-input APIs and any output APIs with sensitive information on them. Public-facing APIs are an interesting case for serverless, because you are charged per request. This means that a malicious actor could DDoS your public function and hit you where it hurts the wallet. Friendly users with valid keys could inadvertently do this as well if they don't rate-limit their requests. A good solution to this, and a generally good solution for API's in general, is to use an API proxy. Microsoft has one called the Azure API Gateway, or there are other...

Summary

In this chapter, you learned how to deploy a serverless API backed by an infinitely scalable database and fronted by an infinitely scalable web application. You covered more of the nuts and bolts of connecting serverless code to other services, along with logging and security considerations. Having the serverless code implement the API may feel like an over-complication at the moment (why not call the Cosmos DB directly from the controller of the MVC client application?), but the benefits of it being loosely coupled to the web application while the functions are also loosely coupled to each other will become apparent later.

Now that you've covered the basics of creating a simple architecture, we can add some more interesting features and components in the next chapter.

Left arrow icon Right arrow icon

Key benefits

  • Provides information on integration of Azure products
  • Plan and implement your own serverless backend to meet tried-and-true development standards
  • Includes step-by-step instructions to help you navigate advanced concepts and application integrations

Description

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.

Who is this book for?

This book is ideal for back-end developers or engineers who want a quick hands-on introduction to developing serverless applications within the Microsoft ecosystem.

What you will learn

  • 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

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jul 25, 2018
Length: 100 pages
Edition : 1st
Language : English
ISBN-13 : 9781789531176
Vendor :
Microsoft
Concepts :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want

Product Details

Publication date : Jul 25, 2018
Length: 100 pages
Edition : 1st
Language : English
ISBN-13 : 9781789531176
Vendor :
Microsoft
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
£16.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
£169.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just £5 each
Feature tick icon Exclusive print discounts
£234.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just £5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total £ 91.97
Cloud Native Architectures
£36.99
Professional Azure SQL Database Administration
£41.99
Beginning Serverless Architectures with Microsoft Azure
£12.99
Total £ 91.97 Stars icon

Table of Contents

4 Chapters
Introduction to Azure Functions Chevron down icon Chevron up icon
Deploying Azure Serverless Chevron down icon Chevron up icon
Architecting Serverless Solutions Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.