Try for free Book a demo

Monitoring Durable Functions with Solutions from Turbo360

Turbo360

6 Mins Read | Last modified on July 26th, 2024

Monitoring Durable Functions solutions with Serverless360

Durable Functions

Durable Function is an extension of Azure Functions which allows us to write stateful functions in serverless computing environments. It facilitates users to define stateful workflows by writing the orchestrator workflow. 

The orchestrator function provides you with more control for building workflows in comparison to a designer for Microsoft Flow or Logic Apps.

Durable Functions vs Logic Apps

Logic App

Users can run a business workflow in Azure using the Logic App services. Moreover, Logic App is a logical container for one workflow where the user can define using triggers and actions. The trigger instantiates a workflow, which consists of one or many activities (actions). For instance, a user can trigger a workflow by sending an HTTP request or schedule a workflow every hour to retrieve data from a public website. The latter is a natural, straightforward, and excellent use-case for a Logic App when you need to process the data and persist it in a database in Azure such as Cosmos DB.

Durable Functions

With Azure Durable Functions, user can write stateful workflows in a new function type called an orchestrator function. This orchestration function provides more control for building workflows than using, for instance, a designer for Microsoft Flow or Logic Apps.

The critical difference with Logic Apps and Durable Functions is user can write code and have fewer restrictions in the later. With Logic Apps, the user is being bound to triggers and actions it provides. The action offers a wide variety of flow control, connectivity, behavior, and message handling, but still less flexibility than with code.

To know more check, Durable Functions or Logic Apps – Turbo360

Key Concepts of the Azure Durable Functions

Utilizing the Azure Durable Functions would require a clear understanding of the concepts below

  • The Orchestrator Client
  • The Orchestrator Function
  • The Activity Function
  • Bindings
  • Checkpoints and replays

This blog “Introduction to Azure Durable Functions” can help acquire more knowledge on the key concepts.

Types of Triggers in Azure Durable Functions

  • Durable Functions HTTP starter trigger
  • Durable Functions activity triggers
  • Durable Functions orchestrator trigger

Durable Functions HTTP starter trigger gets triggered whenever it receives an HTTP request to perform the orchestration. 

Durable Functions activity triggers run whenever the activity is addressed by an orchestration function.

Durable Functions orchestrator trigger is an orchestrator function that invokes activity function in a sequence  

Managing Durable Functions – Solutions with Turbo360

Using the Turbo360 portal, user can manage and monitor the Azure Durable Functions effectively. If the user is shipping a function to maintenance the major concern would be on operations like enable/disable, testing the function, accessing invocation logs, invoke functions, managing keys, etc. Let’s look how Turbo360 deals with such requirements effectively.

To start off with, the user can associate the Function App containing the Durable Function to the appropriate Business Application to rightly represent the business context. Once associated, the user can navigate to the list of functions and perform bulk operations for disabling or enabling function. This operation can also be done directly by the enable or disable option provided.

Durable Functions

An Azure Function may hold several functions or durable functions, it is now possible to test Azure Functions right from the Turbo360 portal. This reduces time spent on switching between portals.

Managing Durable Functions

User can not only access the invocation logs but also filter them to locate the specific record. It is also possible to get the details of an invocation by clicking on the Invocation ID.

Test Azure Functions
access invocation logs

The user can be rest assured regarding the security, by creating keys at the Function level. If there is a key created for a Function, then the Function expects the key to behave as a header to authorize any Http request. If no key is created, then Http requests do not require any authorization. Turbo360 now provides the capability to manage keys at the Function level.

Invocation ID

Azure Function supports different types of triggers like Http, Service Bus Queue, Timer, etc. There may be scenarios where an invocation of the Function fails, and the user needs to revoke it. There is no possibility to do it rather than posting the message of the failed invocation to the Trigger of the Function (this is not feasible in Timer triggered Function). Turbo360 provides the capability to invoke the Function by sending a message to the Trigger. The User can achieve this by providing the Trigger details in the Invoke Function screen and by sending the message. For instance, if the Function is a Service Bus Queue triggered, the user can provide the Queue connection details and post the message. In good order, the Triggers supported in Turbo360 are Service Bus Queue, Service Bus Topic, Event Grid and Http.

manage keys at the Function level

In-Addition to the Business Application dashboard Turbo360 also provides Function App Default dashboards for each Function App associated with the Business Application. In each default dashboard, the user can view the default widgets with the following key metrics being highlighted.

  • Function Execution Count
  • Connections
  • Requests
  • Data Out
  • Data In
  • Function Execution Units
  • Average Response Time
  • Http Errors

All these widgets are plotted for 7 days by default. Users can modify these widgets based on their requirements. All the operational capabilities available on the Business Application dashboard are possible here as well.

Triggers supported in Turbo360

Azure Durable Function App Monitoring

Turbo360 offers a range of monitors to facilitate monitoring Azure Durable functions both at the function level and at the Function App level. Let us explore the various monitoring solutions from Serverelss360 to achieve extensive monitoring of Azure Durable Functions.

Azure Durable Function App State Monitoring

Turbo360 owns exceptional monitoring capabilities that keep the users informed about the health status and functionality of the resources. If the user wants to monitor the status of the Durable Functions state within the Monitor settings.

Rules can be configured for an Azure Function App to carry out monitoring based on an extensive set of metrics. If the requirement is to monitor any errors encountered by the Azure Function App , then configure through system profile with HTTP Server Errors being monitored against appropriate warning and error threshold values.

Monitoring-settings-performance
Monitoring-settings-status

Wrap Up

I hope, this blog helps you to acquire a better knowledge of what Durable Functions are and how it can be better managed and monitored using Turbo360.

Also, check out this blog Azure Durable Functions – Patterns & Best Practices for a better understanding on Durable Functions patterns.

This article was originally published on Jul 22, 2020. It was most recently updated on Jul 26, 2024.

Advanced Cloud Management Platform - Request Demo CTA

Related Articles