Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Azure Serverless Computing

You're reading from   Mastering Azure Serverless Computing A practical guide to building and deploying enterprise-grade serverless applications using Azure Functions

Arrow left icon
Product type Paperback
Published in Nov 2019
Publisher Packt
ISBN-13 9781789951226
Length 362 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Massimo Bonanni Massimo Bonanni
Author Profile Icon Massimo Bonanni
Massimo Bonanni
Lorenzo Barbieri Lorenzo Barbieri
Author Profile Icon Lorenzo Barbieri
Lorenzo Barbieri
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

Preface 1. Section 1: Azure Functions 2.0 Fundamentals FREE CHAPTER
2. Developing and Running Azure Functions 3. Customizing Your Azure Functions 4. Programming Languages Supported in Azure Functions 5. Section 2: Azure Functions 2.0 Deployment and Automation
6. Deploying and Configuring Your Azure Functions 7. Leverage the Power of DevOps with Azure Functions 8. Testing and Monitoring 9. Serverless and Containers 10. Section 3: Serverless Orchestration, API Management, and Event Processing
11. Orchestration as Code - Durable Functions 12. Orchestration as Design - Logic Apps 13. Empowering Your Serverless API with API Management 14. High-Scale Serverless Event Processing with Event Grid 15. Section 4: Real-World Serverless Use Cases
16. Best Practices and Use Cases for Azure Serverless Computing 17. Assessments 18. Another Book You May Enjoy

Creating a custom binding

You need to create a custom trigger when you want to run your Azure Function as a reaction to your custom events. In the example we saw in the previous section, we would like to run our function when the temperature of a city rises by a threshold: exceeding the threshold represents our custom event.

You must create a custom binding, instead, when you want to interact with an external data source within your Azure Function and you want to demand at runtime the responsibility for the creation and life cycle management of the binding. In that case, your function receives the instance of the binding from the runtime and doesn't care about its creation or release.

In fact, you also can interact with an external source by creating your data access class inside the body of the Azure Function (for example, using the constructor), but in this scenario, you...

lock icon The rest of the chapter is locked
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.
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 $19.99/month. Cancel anytime
Banner background image