Building Serverless Apps with Azure Functions and Cosmos DB

Building Serverless Apps with Azure Functions and Cosmos DB

Leverage Azure functions and Cosmos DB for building serverless applications


This eBook includes

Formats : PDF, EPUB (Downlodable)

Pages : 474

ISBN : 9789389328387

Language : English

About the Book

Book description

Key Features

  • Expert-led coverage on integrating Azure functions
  • Industry-proven examples and best practices on implementation of Azure Cosmos DB
  • Learn to work on performance optimization and error handling
  • Integration of Azure function with other Azure services

This book provides examples to start with Azure functions and Azure Cosmos DB. It demonstrates the features available in both of the mentioned Azure services and discusses them in detail with some real-world examples. Reading a csv file and write to a Cosmos DB table store, Read emails using Microsoft Graph API and save them in a Cosmos DB, Cosmos DB trigger function to send SMS notifications to clients, A queue trigger to create new nodes in the Cosmos DB graph data store are some of them. You will be able to see the above case studies with code samples implemented in C# .NET Core, TypeScript, and Python. It consists of a very basic example, two intermediate samples, then and an advanced level one.

You will experience the triggers and input/output bindings available for a function, like queue trigger, blob trigger, and Cosmos DB trigger to name a few. Also, you will be able to see some interesting features available in Azure functions like performance optimizations, scalability of a function app, geographical distribution of the function in different locations, error handling, writing unit tests for the functions to avoid breaking changes, how to ensure a function app is secure, and then how to deploy a function, and monitor and troubleshoot a function app.

At the end of this book, you will gain strong experience in using Azure functions and how to manage serverless applications seamlessly without any failure with utmost performance.

What you will learn

You will be able to create an Azure function and integrate it with many Azure services including the Azure Cosmos DB

You will get experience implementing a function using programming languages like C# .NET Core, TypeScript, and Python.

You will get hands-on experience on the performance optimizing of a function, how to scale them, how to apply security to the function app, error handling and testing in a function.

Who this book is for

This book is for developers who want to get the knowledge and experience in Azure Functions and Azure Cosmos DB. If you have a programming knowledge of .NET, TypeScript, Python, or any other programming language, it will be enough to understand the concepts and samples in this book. If you have worked with a cloud technology or have experience in any of the Azure cloud services, then it will be a definite advantage.

Table of Contents

1. Beginning Azure Function Apps

2. Your First Azure Function App

3. Let’s Get Started with Cosmos DB

4. Structure Your Data in Cosmos DB

5. Your First Cosmos DB

6. Serverless Design Patterns

7. Performance and Scalability of a Function App

8. Geo-Distribution in a Function App

9. Error Handling and Testing

10. Secure Your Function App

11. Deployments in a Function App

12. Monitor and Troubleshoot Function Apps

13. Azure Functions with Cosmos DB Table API

14. Azure Functions with Cosmos DB SQL API

15. Cosmos DB Trigger in Azure Function

16. Azure Functions with Cosmos DB Gremlin API

Building Serverless Apps with Azure Functions and Cosmos DB

eBook Preview

Author Details

BPB Publications

BPB Publications

BPB is Asia's largest publishers of Computer & IT books. For the last 63 years BPB has been a friend, philosopher and guide for programmers, developers, hardware technicians, IT Professionals who have made things happen in the IT World.

Our students work
with the Best

Related eBooks

View More

Annual Membership

Become a valued member of Tutorials Point and enjoy unlimited access to our vast library of top-rated Video Courses

Subscribe now
People having fun around a laptop

Online Certifications

Master prominent technologies at full length and become a valued certified professional.

Explore Now
People having fun around a laptop

Talk to us