Inside the architecture: How c... Note

Inside the architecture: How connectors work with Azure Functions

Azure Connectors simplify integrating various services by handling authorization, event delivery, and connection management, allowing developers to focus on core business logic. The platform leverages Azure's existing 1,000+ managed connectors, which power Logic Apps and Power Automate, by providing a new direct interface for application code. This architecture introduces a control plane called the Connector Namespace, which exposes connections and trigger configurations as Azure resources, enabling robust access control and lifecycle management via ARM. A runtime layer acts as a proxy, translating SDK calls into API Hub operations and transforming trigger configurations into system-managed workflows for event handling.A Functions Connector extension, comprising host and worker components, facilitates event reception via webhooks or polling, integrating seamlessly with the Functions scale controller. The platform also includes a code generator that produces typed SDKs for .NET, Python, and Node.js from live connector metadata, complete with VS Code tooling for setup. For outbound operations, the generated SDK clients send HTTPS requests to the connection's runtime URL, which the platform resolves to the backing API Hub connection, ensuring secure and controlled access. Inbound events from service triggers—like a new email—are managed by system-generated Logic Apps workflows that handle subscriptions, polling, and deliver events to the Function App.Event delivery to the Function App can occur through webhooks, where the workflow engine calls the Function App's dedicated /runtime/webhooks/connector route, or through poll delivery, where events are written to an Azure Storage queue. Poll delivery enhances resilience by allowing work to accumulate safely and supports Functions' target-based scaling by reporting queue depth. The Functions host extension manages transport and scaling, registering a connectorTrigger binding for functions, while language-specific worker extensions deserialize payloads into typed objects for the application handler. Batched processing, configurable across languages, allows functions to efficiently handle multiple events per invocation, with settings to control batch size, concurrency, and scaling thresholds.